Skip to main content

the ioc container useful for Interface oriented programming

Project description

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

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

ghoshell_container-0.3.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

ghoshell_container-0.3.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for ghoshell_container-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ff2d17374e74867588226814ba197d50b61c7c391277c5005176923434a7e894
MD5 bfd65b84e4d98170a66866f08b567b67
BLAKE2b-256 791f8726773470ce686879ddd1dbff3b0df8cdd64a3a5b59a1961e9c5cbc6be7

See more details on using hashes here.

File details

Details for the file ghoshell_container-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ghoshell_container-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 baf0d497fcc217e454615c7a3e438bc05c6cfa5167bbc22c1fda90cc5ad1af65
MD5 60f3ede20cd405e192a02b16f7e9b2b1
BLAKE2b-256 29941918758a93f79715dc72a573315949a9e9e66c368660c0bff02410a1aea7

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