---
title: "locust 2.47.0 Breaking Changes on PyPI | Since.dev"
description: "What each locust release removed, renamed or changed: 93 breaking changes in 18 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/locust
last_updated: 2026-12-04
---

# locust breaking changes

locust 2.47.0 (October 21, 2026) is its newest release with breaking changes, 3 of them. The first: Removed locust.contrib.fasthttp.LocustUserAgent.redirect_resonse_codes. Every breaking API change we have recorded in locust on PyPI: 93 breaking changes in 18 versions. Below, its 18 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.48.0`, released December 2, 2026. [Source repository](https://github.com/locustio/locust)

Its 2.46.1 release drops [Python 3.10](https://since.dev/calendar/python/3.10.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.40.0](#v-2-40-0) to [2.47.0](#v-2-47-0): 88 breaking changes in 17 versions.

## locust 2.47.0 breaking changes

locust 2.47.0, released October 21, 2026: 3 breaking changes.

- **Removed** `locust.contrib.fasthttp.LocustUserAgent.redirect_resonse_codes`  

LocustUserAgent.redirect_resonse_codes was removed in locust 2.47.0 [pypi.org](https://pypi.org/project/locust/2.47.0/)
- **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](https://github.com/locustio/locust/releases/tag/2.47.0)
- **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](https://github.com/locustio/locust/releases/tag/2.47.0)

## locust 2.46.7 breaking changes

locust 2.46.7, released October 4, 2026: 8 breaking changes.

- **Removed** `locust.clients.requests_version`  

locust.clients.requests_version was removed in locust 2.46.7 [pypi.org](https://pypi.org/project/locust/2.46.7/)
- **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](https://github.com/locustio/locust/releases/tag/2.46.7)
- **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](https://github.com/locustio/locust/releases/tag/2.46.7)
- **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](https://github.com/locustio/locust/releases/tag/2.46.7)
- **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](https://github.com/locustio/locust/releases/tag/2.46.7)
- **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](https://github.com/locustio/locust/releases/tag/2.46.7)
- **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](https://pypi.org/project/locust/2.46.7/)
- **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](https://pypi.org/project/locust/2.46.7/)

## locust 2.46.6 breaking changes

locust 2.46.6, released September 17, 2026: 9 breaking changes.

- **Removed** `locust.stats.median_from_dict`  

locust.stats.median_from_dict was removed in locust 2.46.6 [pypi.org](https://pypi.org/project/locust/2.46.6/)
- **Signature changed** `locust.contrib.fasthttp.FastHttpUser`  

Was class FastHttpUser(User); now class FastHttpUser(User, RestMixin\['RestResponseContextManager'\]). [pypi.org](https://pypi.org/project/locust/2.46.6/)
- **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](https://pypi.org/project/locust/2.46.6/)
- **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](https://pypi.org/project/locust/2.46.6/)
- **Signature changed** `locust.FastHttpUser`  

Was class FastHttpUser(User); now class FastHttpUser(User, RestMixin\['RestResponseContextManager'\]). [pypi.org](https://pypi.org/project/locust/2.46.6/)
- **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](https://pypi.org/project/locust/2.46.6/)
- **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](https://pypi.org/project/locust/2.46.6/)
- **Signature changed** `locust.HttpUser`  

Was class HttpUser(User); now class HttpUser(User, RestMixin\[RestResponseContextManager\]). [pypi.org](https://pypi.org/project/locust/2.46.6/)
- **Signature changed** `locust.user.users.HttpUser`  

Was class HttpUser(User); now class HttpUser(User, RestMixin\[RestResponseContextManager\]). [pypi.org](https://pypi.org/project/locust/2.46.6/)

## locust 2.46.2 breaking changes

locust 2.46.2, released July 24, 2026: 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](https://pypi.org/project/locust/2.46.2/)
- **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](https://pypi.org/project/locust/2.46.2/)

## locust 2.46.1 breaking changes

locust 2.46.1, released July 21, 2026: 1 breaking change.

- **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](https://github.com/locustio/locust/releases/tag/2.46.1)

## locust 2.45.0 breaking changes

locust 2.45.0, released July 9, 2026: 2 breaking changes.

- **Removed** `--csv-full-history`  

The --csv-full-history option is no longer available for workers started with --processes. [github.com](https://github.com/locustio/locust/releases/tag/2.45.0)
- **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](https://github.com/locustio/locust/releases/tag/2.45.0)

## Older versions

12 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### locust 2.44.4 breaking changes

locust 2.44.4, released June 18, 2026: 1 breaking change.

- **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](https://github.com/locustio/locust/releases/tag/2.44.4)

### locust 2.44.1 breaking changes

locust 2.44.1, released June 1, 2026: 2 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](https://pypi.org/project/locust/2.44.1/)
- **Signature changed** `locust.opentelemetry.setup_opentelemetry`  

Was def setup_opentelemetry() -> bool; now def setup_opentelemetry(locustfile: str, profile: str | None) -> bool. [pypi.org](https://pypi.org/project/locust/2.44.1/)

### locust 2.44.0 breaking changes

locust 2.44.0, released May 11, 2026: 4 breaking changes.

- **Removed** `locust.contrib.fasthttp.ResponseContextManager.__dict__`  

ResponseContextManager.\_\_dict\_\_ was removed in locust 2.44.0 [pypi.org](https://pypi.org/project/locust/2.44.0/)
- **Removed** `locust.contrib.fasthttp.RestResponseContextManager.__dict__`  

RestResponseContextManager.\_\_dict\_\_ was removed in locust 2.44.0 [pypi.org](https://pypi.org/project/locust/2.44.0/)

And 2 more in this version.

### locust 2.43.4 breaking changes

locust 2.43.4, released April 1, 2026: 1 breaking change.

- **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](https://pypi.org/project/locust/2.43.4/)

### locust 2.43.0 breaking changes

locust 2.43.0, released December 30, 2025: 6 breaking changes.

- **Removed** `locust.main.locust_cloud_version`  

locust.main.locust_cloud_version was removed in locust 2.43.0 [pypi.org](https://pypi.org/project/locust/2.43.0/)
- **Removed** `locust.main.locust_exporter_version`  

locust.main.locust_exporter_version was removed in locust 2.43.0 [pypi.org](https://pypi.org/project/locust/2.43.0/)

And 4 more in this version.

### locust 2.42.2 breaking changes

locust 2.42.2, released November 6, 2025: 1 breaking change.

- **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](https://pypi.org/project/locust/2.42.2/)

### locust 2.42.1 breaking changes

locust 2.42.1, released October 27, 2025: 1 breaking change.

- **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](https://pypi.org/project/locust/2.42.1/)

### locust 2.41.3 breaking changes

locust 2.41.3, released October 1, 2025: 2 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](https://pypi.org/project/locust/2.41.3/)
- **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](https://pypi.org/project/locust/2.41.3/)

### locust 2.40.3 breaking changes

locust 2.40.3, released September 11, 2025: 13 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](https://github.com/locustio/locust/releases/tag/2.40.3)
- **Signature changed** `locust.contrib.fasthttp.ErrorResponse`  

Was class ErrorResponse; now class ErrorResponse(FastResponse). [pypi.org](https://pypi.org/project/locust/2.40.3/)

And 11 more in this version.

### locust 2.40.2 breaking changes

locust 2.40.2, released September 8, 2025: 26 breaking changes.

- **Removed** `locust.clients.LocustResponse`  

locust.clients.LocustResponse was removed in locust 2.40.2 [pypi.org](https://pypi.org/project/locust/2.40.2/)
- **Removed** `locust.clients.ResponseContextManager.__dict__`  

ResponseContextManager.\_\_dict\_\_ was removed in locust 2.40.2 [pypi.org](https://pypi.org/project/locust/2.40.2/)

And 24 more in this version.

### locust 2.40.1 breaking changes

locust 2.40.1, released September 5, 2025: 6 breaking changes.

- **Removed** `locust.pytestplugin`  

locust.pytestplugin was removed in locust 2.40.1 [pypi.org](https://pypi.org/project/locust/2.40.1/)
- **Renamed** `locust.pytestplugin.fastsession`  

Use pytest_locust.plugin.fastsession instead. [pypi.org](https://pypi.org/project/locust/2.40.1/)

And 4 more in this version.

### locust 2.40.0 breaking changes

locust 2.40.0, released September 5, 2025: 5 breaking changes.

- **Removed** `locust.contrib.fasthttp.Environment`  

locust.contrib.fasthttp.Environment was removed in locust 2.40.0 [pypi.org](https://pypi.org/project/locust/2.40.0/)
- **Removed** `locust.contrib.fasthttp.FastHttpSession.environment`  

FastHttpSession.environment was removed in locust 2.40.0 [pypi.org](https://pypi.org/project/locust/2.40.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
