Skip to main content

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.)

Metadata

Release files for pyeasycore 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyeasycore 1.0.0
File Size Uploaded
pyeasycore-1.0.0.tar.gz 22.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyeasycore 1.0.0
File Interpreter ABI Platform
pyeasycore-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.3 kB

Release files / pyeasycore-1.0.0.tar.gz

Download URL pyeasycore-1.0.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd7153ed30ffcf4ae3e9d27669a9243c1924e5ebf6030f0ec1f642cf25e85f89
BLAKE2b-256 checksum
How to use checksums
ca71086bcbd24a716b86d3831c79f1463aa2f269ba701dfb9326dccae75a86ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/6.17.0-1022-azure

Release files / pyeasycore-1.0.0-py3-none-any.whl

Download URL pyeasycore-1.0.0-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b015cc788c14b474369b6f0ae42e0755da3095a976373973566b22131ede381
BLAKE2b-256 checksum
How to use checksums
2159b6d1e320922ebd98543af67895ba14fb5230e0e68538b563a25b182dd95e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page