No project description provided
Project description
EasyCore
Core utilities for building small Python services with FastAPI and Celery.
Features
- FastAPI: Pre-configured app factory with router management and exception handlers
- Celery: Custom task class with correlation ID tracking for distributed tracing
- Logger: Correlation ID middleware and context management for request tracking
- HTTPX: Monkey patching for enhanced logging
- Settings: Pydantic-based settings for Redis, MongoDB, RabbitMQ, API, and more
- Abstractions: Singleton metaclass and common patterns
Installation
pip install easycore
Quick Start
from easycore import create_fastapi_api_app, create_celery_custom_task_class
# Create FastAPI app
app = create_fastapi_api_app(
service_name="my-service",
service_path="api/v1",
routers=[my_router],
custom_exc_handlers=None
)
# Create Celery custom task
CustomTask = create_celery_custom_task_class(logger)
Components
efastapi: FastAPI app factoriesecelery: Celery task utilities with correlation ID supportelogger: Logging with correlation ID trackingehttpx: HTTPX logging patchesenv_settings: Pydantic settings for common servicesconnectors: API connector utilitiesabstractions: Common patterns (Singleton, etc.)
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
pyeasycore-0.3.4.tar.gz
(14.0 kB
view details)
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 pyeasycore-0.3.4.tar.gz.
File metadata
- Download URL: pyeasycore-0.3.4.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3082814185695734d8a29cf4ad689f676c7866a85dcc9fa5fc5c8cdf67b1da38
|
|
| MD5 |
3c15e6ed6356b89a03885d85a0343488
|
|
| BLAKE2b-256 |
87a941f32b67fc19775cb8db47b703b64c7bf9e223a7490008111a3082347c90
|
File details
Details for the file pyeasycore-0.3.4-py3-none-any.whl.
File metadata
- Download URL: pyeasycore-0.3.4-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a07d6ee2b765c566be8f7918adf32b957f9bea20374a7068a5ab02cd434b83c
|
|
| MD5 |
01e3d8c8814d78dec11bd12329852d2a
|
|
| BLAKE2b-256 |
2f271399a70b66d6228e47efaa5e25f9978b0b683f3f0bc8a2518ee86c77082a
|