Unkey-py

Latest version: v0.4.2

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

Scan your dependencies

0.4.2

Additions

- Add `RatelimitState` model.
- Add `ratelimit` and `expires` fields to `ApiKeyVerification`.

---

0.4.1

Changes

- `UNDEFINED` is now guaranteed to be a singleton, preventing `id(obj)` mismatches.

Bugfixes

- `Client.start()` now correctly initializes a new client session if called
after closing the client previously.

Additions

- Tests :).

---

0.4.0

Additions

- Add `UNDEFINED`, `UndefinedOr`, and `UndefinedNoneOr` types.
- Add `update_key` method to key service.
- Add `name` parameter to the `create_key` method.

Changes

- Refactor existing methods to use the new `UNDEFINED` type.

---

0.3.0

Bugfixes

- Remove debug print statement in `list_keys`.

Additions

- Add `ErrorCode` enum.
- Add `remaining` parameter to `create_key`.
- Add `remaining` field to `ApiKeyVerification` and `ApiKeyMeta` models.
- Add `code` field to `ApiKeyVerification` model.
- Add `code` field to `HttpResponse` model.

Changes

- Update status code for `revoke_key` to 200 OK.

---

0.2.0

Additions

- Add `Client`, `KeyService` and `ApiService`.
- Add `Serializer`, and other necessary base services.
- Add relevant models.
- Add support for all publicly documented endpoints:
- Get API
- List Keys
- Create Key
- Verify Key
- Revoke Key

---

0.1.0

- Initial release!

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.