NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2103 most downloaded on PyPI
The hassle-free way to integrate analytics into any python application.
Last release 5 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 6 months
Nearly every release is documented
notes for 11 of 11 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
12 releases · first in 2022
One column per quarter.
This release changes retry behaviour and adds two request headers. Please read the upgrade note before upgrading.
This release changes retry behaviour and adds two request headers. Please read the upgrade note before upgrading.
This release sends two request headers that earlier versions did not:
Authorization (HTTP Basic, carrying your write key) and X-Retry-Count
(sent on retries only). If traffic to Segment passes through a proxy, gateway
or WAF that allowlists request headers, add both before upgrading or uploads
will be rejected.
oauth_manager is configured, and dropped otherwise.Retry-After header is honoured on any retryable response, not only 429. Numeric seconds and the RFC 7231 HTTP-date formats are both accepted, and the value is capped at 300 seconds.Retry-After are retried for up to max_rate_limit_duration and do not consume the retry count. A Retry-After that will not fit in what is left of the budget ends the episode rather than being shortened: retrying inside the window the server asked for sends a request it has already declined to serve, and the budget would be spent by then anyway. Other failures use exponential backoff from 500ms to a 60 second ceiling, limited by max_retries and by max_total_backoff_duration as an upper bound.max_rate_limit_duration (default 1800) and max_total_backoff_duration (default 43200).flush() and shutdown() are bounded by the same limits, and a pending retry does not delay shutdown.Authorization: Basic header. It remains in the request body, so no server-side change is required. Deployments using OAuth continue to send Authorization: Bearer.X-Retry-Count is sent on retries, allowing the server to distinguish a retry from a first attempt. It is omitted on the first attempt.host values.Full Changelog: 2.3.6...2.4.0
Update and widen PyJWT version to address security issue
Enhanced retry logic in segment/analytics/consumer.py by adding detailed debug logs for each retry attempt and logging an error when all retries are e
Fix for proxy values not being used
- Update time handling and OAuth
Updating version to create a release wheel without the outdated /analytics files
- Fixing dependency for JWT
Adding Python 3.10 and 3.11 classifiers by @mvinogradov-wavefin
Update project to use GitHub Actions
Specifying milliseconds as the isoformat rather than the default microseconds in timestamp
Removing remaining string_type references
- Remove Python 2 support - Remove six package
Your coding agent can read these notes before it upgrades. Set up the MCP server →