Skip to main content

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


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.dev7.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

monkey.ioc-1.0.0.dev7-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page