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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ghoshell_container-0.3.0.dev3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ghoshell_container-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 02528a47d20bd1005bde575f2ff7e9b11f383c42b75b4ae3b2b883d130b77164
MD5 ff9893247a4f551b618cb5389794111e
BLAKE2b-256 c7ddeefee10dd6df2a84e9c96b3ff1781fcd1338424eccf9ad8a994b6f4fdb70

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