Skip to content

Commit 4041838

Browse files
vdavezclaude
andcommitted
Bump to v0.4.3 with changelog for rate limit handling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 14f7324 commit 4041838

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.3] - 2026-03-21
11+
12+
### Added
13+
- `TangoRateLimitError` now exposes `wait_in_seconds`, `detail`, and `limit_type` properties parsed from the API's 429 response body.
14+
- `RateLimitInfo` dataclass for structured access to rate limit headers (`X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`, and per-window daily/burst variants).
15+
- `TangoClient.rate_limit_info` property returns rate limit info from the most recent API response.
16+
17+
### Changed
18+
- `_request` now passes the full 429 response body to `TangoRateLimitError` (previously discarded), enabling callers to access `wait_in_seconds` and the specific limit type that was exceeded.
19+
1020
## [0.4.2] - 2026-03-04
1121

1222
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "tango-python"
7-
version = "0.4.2"
7+
version = "0.4.3"
88
description = "Python SDK for the Tango API"
99
readme = "README.md"
1010
requires-python = ">=3.12"

tango/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
TypeGenerator,
2929
)
3030

31-
__version__ = "0.4.1"
31+
__version__ = "0.4.3"
3232
__all__ = [
3333
"TangoClient",
3434
"TangoAPIError",

0 commit comments

Comments
 (0)