locust.core.Locust
locust.core.HttpLocust
locust.core.TaskSet
locust.core.task
locust.core.TaskSequence
locust.core.seq_task
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
The event hooks are instances of the locust.events.EventHook class:
locust.events.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.
The following event hooks are available under the locust.events module:
locust.events