Aglyph is a Dependency Injection framework for Python, supporting type 2 (setter) and type 3 (constructor) injection.
Project description
Aglyph runs on CPython (http://www.python.org/) 2.7 and 3.3+, and on recent versions of the PyPy (http://pypy.org/>), Jython (http://www.jython.org/), IronPython (http://ironpython.net/), and Stackless Python (http://www.stackless.com/) variants.
Aglyph can assemble “prototype” components (a new instance is created every time), “singleton” components (the same instance is returned every time), “borg” components (a new instance is created every time, but all instances of the same class share the same internal state), and “weakref” components (the same instance is returned as long as there is at least one “live” reference to the instance in the running application).
Aglyph can be configured using a declarative XML syntax, or programmatically in pure Python.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for Aglyph-2.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34da4168447c9938c47a1a58b6ffe535b1518b2fb7ea1378bf587da04586c0ed |
|
MD5 | 6e100bec4d486e2899a3b7fc0131b309 |
|
BLAKE2b-256 | a6d33ae6955a8558315b8fac5db98d13152c6fd3dde9c4d7b42397d4969540d4 |