Skip to content

xfire/guppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Depedency Injection Framework for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages