Skip to main content

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 factories
  • ecelery: Celery task utilities with correlation ID support
  • elogger: Logging with correlation ID tracking
  • ehttpx: HTTPX logging patches
  • env_settings: Pydantic settings for common services
  • connectors: API connector utilities
  • abstractions: Common patterns (Singleton, etc.)

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

pyeasycore-0.4.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeasycore-0.4.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file pyeasycore-0.4.0.tar.gz.

File metadata

  • Download URL: pyeasycore-0.4.0.tar.gz
  • Upload date:
  • Size: 14.7 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

Hashes for pyeasycore-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3aceb836a54d7b35456dc830d9871b1fea66006a29fe69fcae75d644ae1091b8
MD5 330ad19db6bc3bcef2bd656bbdaa5a56
BLAKE2b-256 52dcf3f5fa48f47f53259773cd5a6a75168ba302a8a63c100a0baee8f8986bbd

See more details on using hashes here.

File details

Details for the file pyeasycore-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyeasycore-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 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

Hashes for pyeasycore-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00ba83f135b618de6f0822aeadf809dcf212898045f150bc6023573eaee9cd75
MD5 3b29de341926714825dde4768ea0c2cd
BLAKE2b-256 7409b58589759d3de53ab6fb956a599ace0c075e7fa6eeb9a4bcb1cf1f5ef64f

See more details on using hashes here.

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