- Support Python 3.13
- When a 403 response is received with a
Retry-After
orx-ratelimit-reset
header that would result in the next retry attempt being aftertotal_wait
is exceeded, don't retry.
- Migrated from setuptools to hatch
- Added a
set_headers
argument to theClient
constructor for explicitly setting or not setting headers on sessions - Added
timeout
arguments to the request methods - Added
allow_redirects
argument toClient.request()
andEndpoint.request()
- Adjusted the type hints on
PrettyHTTPError
to indicate that theresponse
attribute is always non-None
- A session-wide
Accept
header can now be specified when constructing aClient
without having to use a customSession
- Added a
headers
argument to theClient
constructor for setting arbitrary additional headers without having to use a customSession
- Gave
Client
aclose()
method
- The
version
argument tomake_user_agent()
is now optional - The
url
argument tomake_user_agent()
is now actually optional
- Fix the type annotation on
Client.__enter__
to support subclassing
Initial release