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.2.0.tar.gz (9.6 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.2.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeasycore-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f0d44ae2538fc8bff7d0cf30c2d68bdcdc4b1503604129dda69eab112bd1f26c
MD5 25498fe7d7167cdbc3200b8750f80778
BLAKE2b-256 7d72fb8bcc6305c138c6f2387ee51d360b2255843ffe3618da2a339098bb6203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeasycore-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3cdc866e38a525000ce67065cd538c217cf33e438f86198fdf9e9556c562f4
MD5 7b7e21f0dc326797aaa4fb00137a50dd
BLAKE2b-256 1503a7c35c618bea7d5f2650fa4b4a9f4b9e4ab79029bd24526b78aa9bc97f2a

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