Pre-release
This release is a pre-release and may not be stable for production use.
Monkey IOC
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.
Metadata
Release files for monkey.ioc 1.0.0.dev7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| monkey.ioc-1.0.0.dev7.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| monkey.ioc-1.0.0.dev7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / monkey.ioc-1.0.0.dev7.tar.gz
| Download URL | monkey.ioc-1.0.0.dev7.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b181e34cb10c08acde5d9594ce2db5ade0c04e7a674ffef922b79d53312f504d
|
|
BLAKE2b-256 checksum How to use checksums |
034f2eb8c0a02553a2b299e9a5fe40b756f9e971b9f878d304d3b4befbf2ef94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / monkey.ioc-1.0.0.dev7-py3-none-any.whl
| Download URL | monkey.ioc-1.0.0.dev7-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a345d099f950b4517106f3d6f6ce9ccc25b84d0542eed2e80c650b918bc673b6
|
|
BLAKE2b-256 checksum How to use checksums |
e3d5fd7dd8d7ba5f2a009db32ef34b3be4c5030e3a64c8677459f3210fd5e0cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|