Unkey.py

Latest version: v0.7.2

Safety actively analyzes 625786 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.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` and `ExcHandlerT` types no longer include `Optional`,
and instead are wrapped in `Optional` in the function signature.

---

0.7.1

Not secure
Fixes

- Fix invalid docs link.

---

0.7.0

Not secure
Additions

- Add `protected` decorator for verifying keys easily in web frameworks.

Changes

- `Client` constructor parameter `api_key` is now optional.

---

0.6.1

Not secure
Changes

- Inner return type of `KeyService.update_remaining` is now correctly
`Optional`.

---

0.6.0

Not secure
Additions

- Add `Refill`, `RefillInterval`, and `UpdateOp` models/enums.
- Add `id` property onto `ApiKeyVerification`.
- Add `refill` property onto `ApiKeyMeta` and `ApiKeyVerification`.
- Add serialization methods for new properties and models.
- Add support for `refill` when creating and updating a key.
- Add `update_remaining` method to `KeyService` and corresponding `Route`.

---

0.5.0

Not secure
Breaking Changes

- `verify_key` now requires an `api_id` parameter.
- `list_keys` no longer accepts the `offset` parameter.

Additions

- Add `Conflict` variant to `ErrorCode`.
- Add `get_key` method to `KeyService`.
- Add `cursor` parameter to `list_keys`.

Bugfixes

- Fix invalid default used when ratelimit was not passed in `create_key`.

Changes

- Refactor internal routes to use new API endpoints.

---

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.