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.
> python setup.py install
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))
please report bugs here on github.
- Rico Schiekel <fire at downgra dot de>
- Alexander Bernauer <alex at copton dot net>
- Strappy - http://github.com/asgeir/strappy/
- SpringPython - http://springpython.webfactional.com/
- snake-guice - http://code.google.com/p/snake-guice/
- Pinsor - http://code.google.com/p/pinsor/