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
setandget, and type check byfetch,force_fetchalias: set alias for contractbindwith factory function, subclass, instance e.t.c- dict interface
- factory class
Providerregistrar boostrapandshutdown- container bloodline inheritance
make: recursively dependencies injection for classcall: recursively dependencies injection for functionget_containerandset_containerby contextvarsdepends: function decoratorInject: class property injectionDeclaredContainer: auto bindings by property
see them in examples
Todo list
- check dependencies versions
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ghoshell_container-0.3.1.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghoshell_container-0.3.1.tar.gz.
File metadata
- Download URL: ghoshell_container-0.3.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff2d17374e74867588226814ba197d50b61c7c391277c5005176923434a7e894
|
|
| MD5 |
bfd65b84e4d98170a66866f08b567b67
|
|
| BLAKE2b-256 |
791f8726773470ce686879ddd1dbff3b0df8cdd64a3a5b59a1961e9c5cbc6be7
|
File details
Details for the file ghoshell_container-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ghoshell_container-0.3.1-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baf0d497fcc217e454615c7a3e438bc05c6cfa5167bbc22c1fda90cc5ad1af65
|
|
| MD5 |
60f3ede20cd405e192a02b16f7e9b2b1
|
|
| BLAKE2b-256 |
29941918758a93f79715dc72a573315949a9e9e66c368660c0bff02410a1aea7
|