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.

  • Auth: Authentication and authorization for APIs with API key and JWT bearer token support
  • Ansi Colors: ANSI color codes for terminal text formatting and colorful console output
  • Decorators: Utility decorators for model manipulation, including partial_model for optional fields
  • Enums: Common enumerations for type safety and consistency
  • Errors: Comprehensive error handling system with HTTP exceptions and error content structures
  • Exceptions: Custom exception classes and error handling utilities
  • Logging: Logging configuration and utilities for consistent formatting
  • Middleware: API middleware components for request/response processing
  • Mixins: Reusable functionality components for class mixing
  • Pagination: Utilities for paginated API responses and cursor-based pagination
  • Router: API routing utilities and components
  • Scopes: Authorization scope definitions and management for API access control
  • Urls: URL management utilities including base URLs, service endpoints, and API versioning
  • Utils: General utility functions and helper methods
  • Warnings: Warning handling and custom warning types
  • Metrics: Shared metrics collection from APIs for visualization

Changelog

v0.2.0 (2025-08-13)

Features

  • Deprecate partial_model decorator and update warning mechanism (18ad112)

Refactoring

  • Update deprecation warnings to use CrypticornDeprecatedSince01 for consistency across modules (aa27472)

v0.1.2 (2025-07-22)

Bug Fixes

  • Failing scope comparison in some environments (004495d)

v0.1.1 (2025-07-20)

v0.1.1-rc.2 (2025-07-18)

Bug Fixes

  • Change verify api key request (11af6c2)

Testing

v0.1.1-rc.1 (2025-07-02)

Bug Fixes

  • Assign correct status code to invalid coupon (e4068ac)

  • Make read coupons scope public (6f5f213)

v0.1.0 (2025-06-27)

v0.1.0-rc.1 (2025-06-23)

Documentation

Features

Unreleased

Documentation

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-0.2.0.tar.gz (32.5 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-0.2.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for crypticorn_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c6b01b5a3e7d5f4fd7aa6d48655d12211e53a3b3b67df724db280d8e94e53a46
MD5 0eba7554affed443e2e955ddb4f727ed
BLAKE2b-256 8195a4a2c381d5d121236512853f6f75c6f1921c0a53bf665218b22c8d3b6947

See more details on using hashes here.

Provenance

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

Publisher: deploy.yml on crypticorn-ai/util-libraries

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-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crypticorn_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40b38c6cac247f25c520d386355076496d5e0ed9948aba9ebdc51f0627baa648
MD5 6ae38a9e979f1c0363768ed198076e70
BLAKE2b-256 e2e7c3c3fee9604546b9e95fb39bf1b6e0ed7d7241219f682272bbe43bb90532

See more details on using hashes here.

Provenance

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

Publisher: deploy.yml on crypticorn-ai/util-libraries

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