My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

This project is deprecated as of November 2010

At Lingospot, we now use simpler ways to do the same sort of dependency inversion. The approach remains the same: pass a component's dependencies in as function parameters, rather than statically importing them.


Presentation Slides: Dependency Inversion in Python

Dependency Inversion is necessary to write testable, modular and reusable libraries.

Here are slides with more information about Dependency Inversion & Dippy.


Dippy (deprecated)

Dippy is a simple library to make Dependency Inversion easier in Python.

About Dippy

  • Dippy provides similar benefits to Java Dependency Injection frameworks, while avoiding some of the complexity.
  • Dippy libraries are Python functions, and library dependencies are simply passed in as normal function parameters.
  • Dippy's dependency annotations make it easy to wire together components by building up environments.
  • Dippy is orthogonal to Python's class & type system. This makes it easy to add to existing projects.
Powered by Google Project Hosting