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.2.1.tar.gz (18.0 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.2.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypticorn_utils-2.2.1.tar.gz
  • Upload date:
  • Size: 18.0 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.2.1.tar.gz
Algorithm Hash digest
SHA256 2d93d1ae31eda4305032f632bdc93b4a15ca59d46014fe0d71e62d5808f59674
MD5 dd70f1544210f3caaf06bdcd78909355
BLAKE2b-256 5b1c7d6a63d2bb4b901f184fc1e2a9c6df38d2c202763f3bef27031b1ff48d32

See more details on using hashes here.

Provenance

The following attestation bundles were made for crypticorn_utils-2.2.1.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.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for crypticorn_utils-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b3cbc638345af9f01f46a11bba8bc1d53e53a40dfdd314492aa5b661fd79a7
MD5 02ec9661f68f9a404878c6ba326865a8
BLAKE2b-256 a88082a5cabc877e1089afab3d157cc6ad40aaf717765ff01d93c9a76e38ea8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for crypticorn_utils-2.2.1-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