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

Metadata

Release files for ghoshell-container 0.3.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 ghoshell-container 0.3.0
File Size Uploaded Provenance Actions
ghoshell_container-0.3.0.tar.gz 16.7 kB Without provenance Details for ghoshell_container-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 29.6 kB

Release files / ghoshell_container-0.3.0.tar.gz

Download URL ghoshell_container-0.3.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
afb652970092494c73c37fd4ee6ec555421d7fb276a4dd084a94650aebae255c
BLAKE2b-256 checksum
How to use checksums
b7b2a25c85b480109c9cd104b351c67fba3d5776555a74b25656975d0d4c1972
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

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

Download URL ghoshell_container-0.3.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59f87728a7d386ce753a9ca0237414943791c4d66acfe7907426a1d10f0f8e8c
BLAKE2b-256 checksum
How to use checksums
b211a4f85ef839a3f622c262034ac0c12a7c44d32954bc9d8b5803d96dd6817b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Security for ghoshell-container 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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