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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file monkey.ioc-1.0.0.dev7.tar.gz.

File metadata

  • Download URL: monkey.ioc-1.0.0.dev7.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for monkey.ioc-1.0.0.dev7.tar.gz
Algorithm Hash digest
SHA256 b181e34cb10c08acde5d9594ce2db5ade0c04e7a674ffef922b79d53312f504d
MD5 609888057aaed5f1d772aecca61dd896
BLAKE2b-256 034f2eb8c0a02553a2b299e9a5fe40b756f9e971b9f878d304d3b4befbf2ef94

See more details on using hashes here.

File details

Details for the file monkey.ioc-1.0.0.dev7-py3-none-any.whl.

File metadata

File hashes

Hashes for monkey.ioc-1.0.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 a345d099f950b4517106f3d6f6ce9ccc25b84d0542eed2e80c650b918bc673b6
MD5 99e0ec8e9c409d5b9e4aa08efbd71a9f
BLAKE2b-256 e3d5fd7dd8d7ba5f2a009db32ef34b3be4c5030e3a64c8677459f3210fd5e0cd

See more details on using hashes here.

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