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.5.0.tar.gz
(18.8 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.5.0.tar.gz.
File metadata
- Download URL: pyeasycore-0.5.0.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.14.4 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d767a54c847098306b79b6c24d11f7f55e1601360c0391f3a2517603d58b505
|
|
| MD5 |
7ecd8bb29408c336266223f2e7b482a1
|
|
| BLAKE2b-256 |
e83038efa0525bf10a82860eb3afefe8b33388445268c363263efa1f4143e38d
|
File details
Details for the file pyeasycore-0.5.0-py3-none-any.whl.
File metadata
- Download URL: pyeasycore-0.5.0-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.14.4 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f2680a3cd64f17d74dff22de90ba4ada777cdcf72d644eef3b124acd1e7d92e
|
|
| MD5 |
b8fcdc58f9821b59b765416e487a783f
|
|
| BLAKE2b-256 |
61ee36b0ff5865fb67f62dc715e1e01406323011afed672ea0f4382d68714c7f
|