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.tar.gz (16.7 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-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghoshell_container-0.3.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for ghoshell_container-0.3.0.tar.gz
Algorithm Hash digest
SHA256 afb652970092494c73c37fd4ee6ec555421d7fb276a4dd084a94650aebae255c
MD5 3cd8607138c0425f1bc0654b66392867
BLAKE2b-256 b7b2a25c85b480109c9cd104b351c67fba3d5776555a74b25656975d0d4c1972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ghoshell_container-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59f87728a7d386ce753a9ca0237414943791c4d66acfe7907426a1d10f0f8e8c
MD5 a17f0a9442aa1c41b82bd8b3198cee52
BLAKE2b-256 b211a4f85ef839a3f622c262034ac0c12a7c44d32954bc9d8b5803d96dd6817b

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