Simple IOC framework agile as a monkey.
Project description
Monkey IoC is a simple framework for inversion of control by dependency injection.
It works with a registry of named elements whose definitions have been loaded from a JSON file.
- Supported types:
string
boolean
integer, float and complex
date, time and datetime
object
list, set, tuple and range
dictionary
JSON map
- reference to :
another definition
an environment variable
a Python class
a Python module
Installation guide
pip install monkey.ioc
User guide
from monkey.ioc.core import Registry registry = Registry() registry.load('config.json') my_object = registry.get('myObjectID')
Logging
Logger name for Registry instances is monkey.ioc.core.Registry
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
monkey.ioc-1.0.0.dev2.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for monkey.ioc-1.0.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b38adb3171e6f9281399686a76c1dfb1d30346337eeede21cd6894423c8e70 |
|
MD5 | e0590261bbc00215db4db38fbe28727d |
|
BLAKE2b-256 | a6a5d8098647267152c65b5c154b46d2c1a8532abc8f54d66470ddd82cfee3ec |