Skip to main content

Ghoshell Container

IoC container for GhostInShells.

IoC Container

GhostInShells follows the concept of interface-oriented programming to build the project. Most modules are divided into interface and implementation. Register and get implementations by IoC Container.

About IoC: Inverse of Control

Installation

pip install ghoshell-container

Features

  • set and get, and type check by fetch, force_fetch
  • alias: set alias for contract
  • bind with factory function, subclass, instance e.t.c
  • dict interface
  • factory class Provider registrar
  • boostrap and shutdown
  • container bloodline inheritance
  • make: recursively dependencies injection for class
  • call: recursively dependencies injection for function
  • get_container and set_container by contextvars
  • depends: function decorator
  • Inject : class property injection
  • DeclaredContainer: auto bindings by property

see them in examples

Todo list

  • check dependencies versions

Metadata

Release files for ghoshell-container 0.3.1

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

Source distribution (sdist)

Source distribution for ghoshell-container 0.3.1
File Size Uploaded
ghoshell_container-0.3.1.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ghoshell-container 0.3.1
File Interpreter ABI Platform
ghoshell_container-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.9 kB

Release files / ghoshell_container-0.3.1.tar.gz

Download URL ghoshell_container-0.3.1.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff2d17374e74867588226814ba197d50b61c7c391277c5005176923434a7e894
BLAKE2b-256 checksum
How to use checksums
791f8726773470ce686879ddd1dbff3b0df8cdd64a3a5b59a1961e9c5cbc6be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Release files / ghoshell_container-0.3.1-py3-none-any.whl

Download URL ghoshell_container-0.3.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf0d497fcc217e454615c7a3e438bc05c6cfa5167bbc22c1fda90cc5ad1af65
BLAKE2b-256 checksum
How to use checksums
29941918758a93f79715dc72a573315949a9e9e66c368660c0bff02410a1aea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3
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