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

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.0.dev1.tar.gz (16.5 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.0.dev1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file ghoshell_container-0.3.0.dev1.tar.gz.

File metadata

File hashes

Hashes for ghoshell_container-0.3.0.dev1.tar.gz
Algorithm Hash digest
SHA256 ee51bd810cc6aa86d30fac1c052561f1d91e3ff6527441cf2712aadff36e4599
MD5 dfc2ad2e4898eccdeb01aec05267b2f0
BLAKE2b-256 ea358f23548ec26c48760824089596e1417901a1fa95327ffa0597ebb0240f28

See more details on using hashes here.

File details

Details for the file ghoshell_container-0.3.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for ghoshell_container-0.3.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6efa52d46c27670a2ce8eb55e7436502c5959f09aeb91742da9f3110e2eb7c09
MD5 49f6473dc14bf0855cb40f382dddab72
BLAKE2b-256 65d9ab952f6229fc53c5eb9a6fd1fbe7b501de5705a7913eb828f140244f1997

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