Metadata-Version: 2.4
Name: crypticorn_utils
Version: 2.2.2
Summary: Shared utilities for the Crypticorn APIs
Author-email: Crypticorn <timon@crypticorn.com>
License-Expression: MIT
Project-URL: Changelog, https://github.com/crypticorn-ai/util-libraries/releases
Classifier: Topic :: Scientific/Engineering
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi<1.0.0,>=0.115.0
Requires-Dist: click<9.0.0,>=8.0.0
Requires-Dist: psutil<8.0.0,>=7.0.0
Requires-Dist: setuptools<81.0.0,>=80.0.0
Requires-Dist: prometheus-client<1.0.0,>=0.22.0
Requires-Dist: crypticorn<4.0.0,>=2.17.0
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: python-semantic-release==9.21.0; extra == "dev"
Requires-Dist: pytest==8.3.5; extra == "dev"
Requires-Dist: pytest-asyncio==0.26.0; extra == "dev"
Requires-Dist: pytest-cov==6.1.1; extra == "dev"
Requires-Dist: python-dotenv==1.0.1; extra == "dev"
Requires-Dist: PyJWT==2.10.0; extra == "dev"
Requires-Dist: httpx>=0.27.0; extra == "dev"
Dynamic: license-file

This module serves as a central place for providing utilities for our Python backends.

To install the package, run:
```bash
pip install crypticorn-utils
```
or for development:
```bash
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
