Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Depedency Injection Framework for Python
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
example/simple_application
guppy
test
.gitignore
AUTHORS
LICENCE
README.markdown
setup.py

README.markdown

guppy - Dependency Injection Framework for Python

guppy tries to provide a simple, intuitive and pythonic dependency injection (inversion of control) framework.

guppy is a derivered work of this ioc pseudo container.

installation

> python setup.py install

usage examples

every python object can be registered using the FeatureBroker features with a unique identifier.

> import guppy
> guppy.features.Provide('an.identifier', 23)

the registration must be take place before a consumer can require the object.

those consumers can also define the protocol, interface and/or type which the provided object must implement.

> assert 23 == guppy.RequiredFeature('an.identifier', guppy.isInstanceOf(int))

bug reporting

please report bugs here on github.

license

GPLv2

authors

  • Rico Schiekel <fire at downgra dot de>
  • Alexander Bernauer <alex at copton dot net>

similar projects

Something went wrong with that request. Please try again.