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.3.1.tar.gz (12.5 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.3.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeasycore-0.3.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for pyeasycore-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1aab85d76f8d68cc449da513f8f4fede5eaada96841def51af876a29855ef93b
MD5 f806e8c042a7682d6bf72b00e7a2583f
BLAKE2b-256 37578287666630305a14221101f0c7667d7ac021f183529efea2757db0636e09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeasycore-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for pyeasycore-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f107451b706878441ee35fdf91678f908ccef27471cf917699e8a6fa14c8cf5f
MD5 47c877902b7cf19fe766fd9b5e20dd45
BLAKE2b-256 b9f151befdf0ac381268fb3b478325240f7d53375431cf694f05c36a65897521

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