Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A dependency injection system for python

Project Description

Fang is a dependency injection library for Python.

Fang adds dependency injection in Pythonic way, without requiring the elements more usually seen in “big OO” languages. Particularly:

  • dependencies are specified by identifier strings, rather than strict interface classes or types.
  • the constructs which meet dependencies (resource providers) are just functions, not factory classes.
  • the dependencies which a piece of code needs and the dependencies it can provide are both declared concisely with decorators.
  • the linking of dependents and resource providers is done at run-time in Python, not with a custom-built configuration language.

The pieces used are small and easy to understand: the total library is less than 300 lines. But it’s clear and simple enough to serve as a foundation for other features (eg dependency graphs, interface verification), which can enabled or added on a per-project basis.

Release History

Release History

This version
History Node

0.7.6

History Node

0.7.5

History Node

0.7.4

History Node

0.7.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fang-0.7.6-py34-none-any.whl (6.9 kB) Copy SHA256 Checksum SHA256 py34 Wheel Sep 23, 2016
fang-0.7.6.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Sep 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting