Share reusable Python modules across your team’s Locust tests.
import
them from your Locust tests. Create a module like custom_logger.py
and then import it with import custom_logger
at the top of your locustfile.
.py
. They are team-scoped and available to every worker at runtime.utils.py
→ import utils
auth_v2.py
) if making breaking changesPOST /api/v2/library
to create modules programmaticallyGET /api/v2/library
to list modules