Skip to main content

Lightweight Dependency Injection and Application Runtime Core for Python.

Project description

ForgeCore

Lightweight Dependency Injection and Application Runtime Core for Python.

ForgeCore is a framework engine — not just a DI container. It provides the foundation for building web frameworks, CLI tools, bots, trading systems, and AI agents in Python.


Features

  • Explicit DI container — no magic auto-registration
  • Constructor autowiring via type hints
  • Singleton, Transient, and Scoped lifecycles
  • Thread-safe scoped instances via threading.local()
  • Circular dependency detection with clear error messages
  • Optional injection (Cache | None = None)
  • Service binding — abstraction to implementation mapping
  • Custom factory support
  • Application kernel with boot pipeline
  • Service provider system for modular registration
  • Lifecycle hooks (on_start, on_stop)
  • Event system with subscribe, emit, and unsubscribe
  • Plugin system for runtime extension

Requirements

  • Python 3.12+

Installation

pip install forgecore

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

forge_core_di-0.2.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

forge_core_di-0.2.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forge_core_di-0.2.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for forge_core_di-0.2.0.tar.gz
Algorithm Hash digest
SHA256 00f79b4a332828e64ea59458f48170ad1f78727a53364cf2d8e57880e18904b4
MD5 f02ba24b18dbe1f0cea3f5fa46201cf7
BLAKE2b-256 ee05966bfaf00990ffea1cef9be4972f6db33036550a1f4d4ef0dcae4b1ac5b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forge_core_di-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for forge_core_di-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edd7ae3efc0cd6a22d840ba43a1c98501c0cbe7847b629f9e7f0a5c08658bf00
MD5 06a4156996f95fcc441d36e9b478ff0e
BLAKE2b-256 493a5f7e3fe33230083ead2d7a20977292b5cb1a35a31bb3a9549641a323a93b

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