locust.User
locust.HttpUser
locust.TaskSet
locust.task
locust.tag
locust.SequentialTaskSet
locust.wait_time
locust.clients.HttpSession
This class actually resides in the python-requests library, since that's what Locust is using to make HTTP requests, but it's included in the API docs for locust since it's so central when writing locust load tests. You can also look at the :pyResponse <requests.Response>
class at the requests documentation.
requests.Response
locust.clients.ResponseContextManager
locust.exception.InterruptTaskSet
locust.exception.RescheduleTask
locust.exception.RescheduleTaskImmediately
locust.env.Environment
Locust provides event hooks that can be used to extend Locust in various ways.
The following event hooks are available under :pyEnvironment.events <locust.env.Environment.events>
, and there's also a reference to these events under locust.events
that can be used at the module level of locust scripts (since the Environment instance hasn't been created when the locustfile is imported).
locust.event.Events
The event hooks are instances of the locust.events.EventHook class:
locust.event.EventHook
Note
It's highly recommended that you add a wildcard keyword argument in your event listeners to prevent your code from breaking if new arguments are added in a future version.
locust.runners.Runner
locust.runners.LocalRunner
locust.runners.MasterRunner
locust.runners.WorkerRunner
locust.web.WebUI
locust.stats.RequestStats
locust.stats.StatsEntry
locust.debug.run_single_user