Releases: Jonxslays/unkey.py
Releases · Jonxslays/unkey.py
v0.7.2
Fixes
- Fix race condition for concurrent requests using the
protected
decorator.
Additions
- The
Client
can now be used as an async context manager which starts
and closes the client automatically.
Changes
- The
InvalidKeyHandlerT
andExcHandlerT
types no longer includeOptional
,
and instead are wrapped inOptional
in the function signature.
Diff: v0.7.1...v0.7.2
Changelog: v0.7.2
v0.7.1
v0.7.0
v0.6.1
v0.6.0
Additions
- Add
Refill
,RefillInterval
, andUpdateOp
models/enums. - Add
id
property ontoApiKeyVerification
. - Add
refill
property ontoApiKeyMeta
andApiKeyVerification
. - Add serialization methods for new properties and models.
- Add support for
refill
when creating and updating a key. - Add
update_remaining
method toKeyService
and correspondingRoute
.
Diff: v0.5.0...v0.6.0
Changelog: v0.6.0
v0.5.0
Breaking Changes
verify_key
now requires anapi_id
parameter.list_keys
no longer accepts theoffset
parameter.
Additions
- Add
Conflict
variant toErrorCode
. - Add
get_key
method toKeyService
. - Add
cursor
parameter tolist_keys
.
Bugfixes
- Fix invalid default used when ratelimit was not passed in
create_key
.
Changes
- Refactor internal routes to use new API endpoints.
Diff: v0.4.3...v0.5.0
Changelog: v0.5.0
v0.4.3
v0.4.2
v0.4.1
Changes
UNDEFINED
is now guaranteed to be a singleton, preventingid(obj)
mismatches.
Bugfixes
Client.start()
now correctly initializes a new client session if called
after closing the client previously.
Additions
- Tests :).
Diff: v0.4.0...v0.4.1
Changelog: v0.4.1