Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crypticorn_utils-2.0.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crypticorn_utils-2.0.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file crypticorn_utils-2.0.0.tar.gz.

File metadata

  • Download URL: crypticorn_utils-2.0.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for crypticorn_utils-2.0.0.tar.gz
Algorithm Hash digest
SHA256 39e9d506e5b5930842ea9b51c9f7d6cadc1732907006b1d8ce116b22795273b1
MD5 78c643e413aac1a0294b759c5a7171d4
BLAKE2b-256 90716ccf1a86cef2624f6c614977b3efd8bd035afb1f63b23ac2f0e13a55135b

See more details on using hashes here.

Provenance

The following attestation bundles were made for crypticorn_utils-2.0.0.tar.gz:

Publisher: deploy.yml on crypticorn-ai/python-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crypticorn_utils-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crypticorn_utils-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52c8505ae509c7a7b9637d51594d7cc326f210245283438fa9a701c4c6f09b37
MD5 0c3e0a876848f098ae6522c5f88eeaae
BLAKE2b-256 1cf69010b6fde2442005fe8eda5bb32644e1e121c81d1e770f55eec9ecc1c0ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for crypticorn_utils-2.0.0-py3-none-any.whl:

Publisher: deploy.yml on crypticorn-ai/python-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page