Shared utilities for the Crypticorn APIs
Project description
This module serves as a central place for providing utilities for our Python backends.
To install the package, run:
pip install crypticorn-utils
or for development:
pip install -e .[dev]
- Auth: Authentication and authorization for APIs with API key, JWT bearer token, and basic auth support
- Exceptions: Comprehensive error handling system with HTTP/WebSocket exceptions and standardized error responses
- Logging: Logging configuration and utilities for consistent formatting across services
- Middleware: API middleware components for request/response processing
- Pagination: Utilities for paginated API responses with cursor-based pagination, filtering, and sorting
- Metrics: Prometheus metrics collection for HTTP requests, response times, and sizes
- Types: Environment definitions (prod/dev/local/docker) and base URL management
- Utils: General utility functions including random ID generation, datetime conversion, and optional imports
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crypticorn_utils-3.0.0.tar.gz.
File metadata
- Download URL: crypticorn_utils-3.0.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9d418a00bc37001ae949613f2d440fa58110eee64c1f1b1caeafc0fc2183712
|
|
| MD5 |
1f8cf073c0409bf6df5ceab681ec8ab4
|
|
| BLAKE2b-256 |
035eee204cceceaf2bc3687ec4b8d8a1dd8b7a4522c236391ff7d01c0c45f188
|
Provenance
The following attestation bundles were made for crypticorn_utils-3.0.0.tar.gz:
Publisher:
deploy.yml on crypticorn-ai/python-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crypticorn_utils-3.0.0.tar.gz -
Subject digest:
a9d418a00bc37001ae949613f2d440fa58110eee64c1f1b1caeafc0fc2183712 - Sigstore transparency entry: 819825811
- Sigstore integration time:
-
Permalink:
crypticorn-ai/python-utils@97d9dce8016604012da1c2ba6ae55b635f52c8e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/crypticorn-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@97d9dce8016604012da1c2ba6ae55b635f52c8e8 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file crypticorn_utils-3.0.0-py3-none-any.whl.
File metadata
- Download URL: crypticorn_utils-3.0.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a689a132f0a86cfa8013c9a5b48b0e9abf20c4313519629964cd9bcd7e175dc
|
|
| MD5 |
46ef497be21369db0aa816aa11f339fa
|
|
| BLAKE2b-256 |
921c6a0f66b194396f57d111074739de2a6b7301429500730f27fff3fe691d64
|
Provenance
The following attestation bundles were made for crypticorn_utils-3.0.0-py3-none-any.whl:
Publisher:
deploy.yml on crypticorn-ai/python-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crypticorn_utils-3.0.0-py3-none-any.whl -
Subject digest:
5a689a132f0a86cfa8013c9a5b48b0e9abf20c4313519629964cd9bcd7e175dc - Sigstore transparency entry: 819825814
- Sigstore integration time:
-
Permalink:
crypticorn-ai/python-utils@97d9dce8016604012da1c2ba6ae55b635f52c8e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/crypticorn-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@97d9dce8016604012da1c2ba6ae55b635f52c8e8 -
Trigger Event:
workflow_run
-
Statement type: