locust breaking changes
Updated December 4, 2026
On this page
Latest version 2.48.0, released December 2, 2026. Source repository
Its 2.46.1 release drops Python 3.10. Python end of life dates.
locust 2.47.0 breaking changes
- Removed
locust.contrib.fasthttp.LocustUserAgent.redirect_resonse_codes
LocustUserAgent.redirect_resonse_codes was removed in locust 2.47.0 pypi.org - Behavior changed
stats.reset
The /stats/reset endpoint of the web UI is POST-only now; callers using other HTTP methods must switch to POST. github.com - Behavior changed
stop
The /stop endpoint of the web UI is POST-only now; callers using other HTTP methods must switch to POST. github.com
locust 2.46.7 breaking changes
- Removed
locust.clients.requests_version
locust.clients.requests_version was removed in locust 2.46.7 pypi.org - Behavior changed
The headers dict passed by the caller is no longer changed by the package. Code that relied on the dict being updated in place must read its own copy instead. github.com - Behavior changed
base_url
Percent-encoded credentials in the host URL are now decoded, and base_url keeps IPv6 brackets. Code that parsed these values from base_url may need adjusting. github.com - Behavior changed
constant_throughput
Calls passing a zero or negative rate to constant_throughput() now fail instead of being accepted. Pass a positive rate. github.com - Behavior changed
new_dispatch
Calls passing a zero or negative spawn_rate to new_dispatch() now fail instead of being accepted. Pass a positive spawn_rate. github.com - Behavior changed
swarm
A negative spawn_rate sent to the /swarm endpoint is now rejected rather than reported as a successful start. Send a non-negative spawn_rate. github.com - Signature changed
locust.clients.RequestKwargs.timeout
Was timeout: float | tuple[float, float] | tuple[float, None] | None; now timeout: float | tuple[float | None, float | None] | None. pypi.org - Signature changed
locust.clients.RESTKwargs.timeout
Was timeout: float | tuple[float, float] | tuple[float, None] | None; now timeout: float | tuple[float | None, float | None] | None. pypi.org
locust 2.46.6 breaking changes
- Removed
locust.stats.median_from_dict
locust.stats.median_from_dict was removed in locust 2.46.6 pypi.org - Signature changed
locust.contrib.fasthttp.FastHttpUser
Was class FastHttpUser(User); now class FastHttpUser(User, RestMixin['RestResponseContextManager']). pypi.org - Signature changed
locust.contrib.fasthttp.FastHttpUser.rest
Was def rest(self, method, url, headers: dict | None = None, **kwargs) -> Generator[RestResponseContextManager]; now def rest(self, method, url, headers: dict | None = None, **kwargs) -> Generator[RestResponseT]. pypi.org - Signature changed
locust.contrib.fasthttp.FastHttpUser.rest_
Was def rest_(self, method, url, name=None, **kwargs) -> Generator[RestResponseContextManager]; now def rest_(self, method, url, name=None, **kwargs) -> Generator[RestResponseT]. pypi.org - Signature changed
locust.FastHttpUser
Was class FastHttpUser(User); now class FastHttpUser(User, RestMixin['RestResponseContextManager']). pypi.org - Signature changed
locust.FastHttpUser.rest
Was def rest(self, method, url, headers: dict | None = None, **kwargs) -> Generator[RestResponseContextManager]; now def rest(self, method, url, headers: dict | None = None, **kwargs) -> Generator[RestResponseT]. pypi.org - Signature changed
locust.FastHttpUser.rest_
Was def rest_(self, method, url, name=None, **kwargs) -> Generator[RestResponseContextManager]; now def rest_(self, method, url, name=None, **kwargs) -> Generator[RestResponseT]. pypi.org - Signature changed
locust.HttpUser
Was class HttpUser(User); now class HttpUser(User, RestMixin[RestResponseContextManager]). pypi.org - Signature changed
locust.user.users.HttpUser
Was class HttpUser(User); now class HttpUser(User, RestMixin[RestResponseContextManager]). pypi.org
locust 2.46.2 breaking changes
- Signature changed
locust.stats.StatsEntry.__init__
Was def __init__(self, stats: RequestStats | None, name: str, method: str, use_response_times_cache: bool = False); now def __init__(self, stats: RequestStats, name: str, method: str, use_response_times_cache: bool = False). pypi.org - Signature changed
locust.stats.StatsEntry.unserialize
Was @classmethod def unserialize(cls, data: StatsEntryDict) -> StatsEntry; now @classmethod def unserialize(cls, data: StatsEntryDict, stats: RequestStats) -> StatsEntry. pypi.org
locust 2.46.1 breaking changes
- Removed
Locust 2.46.1 no longer supports Python 3.10. Users on Python 3.10 should upgrade their Python version before installing this release. github.com
locust 2.45.0 breaking changes
- Removed
--csv-full-history
The --csv-full-history option is no longer available for workers started with --processes. github.com - Behavior changed
stats.requests
The release notes say the /stats/requests endpoint changed and the version was bumped to minor for that reason, but do not describe the change. Check the endpoint's output before relying on it. github.com
Older versions
12 older versions, each with its first changes. Sign up to see every change
Show 12 older versions
locust 2.44.4 breaking changes
- Behavior changed
parse_timespan
Timespan strings that were only partially valid are now rejected by parse_timespan. Code that passed such strings must now pass fully valid timespans. github.com
locust 2.44.1 breaking changes
- Signature changed
locust.main.setup_opentelemetry
Was def setup_opentelemetry() -> bool; now def setup_opentelemetry(locustfile: str, profile: str | None) -> bool. pypi.org - Signature changed
locust.opentelemetry.setup_opentelemetry
Was def setup_opentelemetry() -> bool; now def setup_opentelemetry(locustfile: str, profile: str | None) -> bool. pypi.org
locust 2.44.0 breaking changes
- Removed
locust.contrib.fasthttp.ResponseContextManager.__dict__
ResponseContextManager.__dict__ was removed in locust 2.44.0 pypi.org - Removed
locust.contrib.fasthttp.RestResponseContextManager.__dict__
RestResponseContextManager.__dict__ was removed in locust 2.44.0 pypi.org
And 2 more in this version.
locust 2.43.4 breaking changes
- Signature changed
locust.contrib.mqtt.MqttClient.__init__
Was def __init__(self, *args, environment: Environment, client_id: str | None = None, protocol: MQTTProtocolVersion = mqtt.MQTTv311, **kwargs); now def __init__(self, *args, environment: Environment, client_id: str | None = None, protocol... pypi.org
locust 2.43.0 breaking changes
- Removed
locust.main.locust_cloud_version
locust.main.locust_cloud_version was removed in locust 2.43.0 pypi.org - Removed
locust.main.locust_exporter_version
locust.main.locust_exporter_version was removed in locust 2.43.0 pypi.org
And 4 more in this version.
locust 2.42.2 breaking changes
- Signature changed
locust.argument_parser.ui_extra_args_dict
Was def ui_extra_args_dict(args=None, parsed_options=None) -> dict[str, dict[str, Any]]; now def ui_extra_args_dict(args=None) -> dict[str, dict[str, Any]]. pypi.org
locust 2.42.1 breaking changes
- Signature changed
locust.argument_parser.ui_extra_args_dict
Was def ui_extra_args_dict(args=None) -> dict[str, dict[str, Any]]; now def ui_extra_args_dict(args=None, parsed_options=None) -> dict[str, dict[str, Any]]. pypi.org
locust 2.41.3 breaking changes
- Signature changed
locust.contrib.milvus.BaseClient.create_collection
Was def create_collection(self, schema, index_params) -> None; now def create_collection(self, schema, index_params, **kwargs) -> None. pypi.org - Signature changed
locust.contrib.milvus.MilvusV2Client.create_collection
Was def create_collection(self, schema, index_params); now def create_collection(self, schema, index_params, **kwargs). pypi.org
locust 2.40.3 breaking changes
- Behavior changed
ResponseContextManager.raise_for_status
raise_for_status() now considers whether failure() or success() was already called on the response context manager. Code that relied on it always recording a failure for error responses may now see different results. github.com - Signature changed
locust.contrib.fasthttp.ErrorResponse
Was class ErrorResponse; now class ErrorResponse(FastResponse). pypi.org
And 11 more in this version.
locust 2.40.2 breaking changes
- Removed
locust.clients.LocustResponse
locust.clients.LocustResponse was removed in locust 2.40.2 pypi.org - Removed
locust.clients.ResponseContextManager.__dict__
ResponseContextManager.__dict__ was removed in locust 2.40.2 pypi.org
And 24 more in this version.
locust 2.40.1 breaking changes
- Removed
locust.pytestplugin
locust.pytestplugin was removed in locust 2.40.1 pypi.org - Renamed
locust.pytestplugin.fastsession
Use pytest_locust.plugin.fastsession instead. pypi.org
And 4 more in this version.
locust 2.40.0 breaking changes
- Removed
locust.contrib.fasthttp.Environment
locust.contrib.fasthttp.Environment was removed in locust 2.40.0 pypi.org - Removed
locust.contrib.fasthttp.FastHttpSession.environment
FastHttpSession.environment was removed in locust 2.40.0 pypi.org
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.