Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Aglyph is a Dependency Injection framework for Python.

Project description

* supports type 2 (setter) and type 3 (constructor) dependency injection
* can assemble *prototype*, *singleton*, *borg*, and *weakref* components
* supports templates (i.e. component inheritance) and lifecycle methods
* works with any kind of object creation pattern you'll encounter:
* constructor
* factory function or method
* object creation hidden behind attribute or property access
* is configured declaratively, either programmatically through a fluent API or
using a simple XML syntax (see the `Aglyph DTD
<https://github.com/mzipay/Aglyph/blob/master/resources/aglyph-context.dtd>`_)
* is non-intrusive:
* only one dependency (`Autologging
<http://ninthtest.info/python-autologging/>`_) beyond the Python standard
library
* does not require modification of existing source code (i.e. no
decorators, specific naming conventions, or any other kind of
syntactic "magic" necessary)
* can inject not only 3rd-party dependencies, but also **dependents**
* runs on Python 2.7 and 3.4+ using the same codebase
* is proactively tested on `CPython <https://www.python.org/>`_,
`Jython <http://www.jython.org/>`_, `IronPython <http://ironpython.net/>`_,
`PyPy <http://pypy.org/>`_, and
`Stackless Python <https://bitbucket.org/stackless-dev/stackless/wiki/Home>`_
* is fully logged *and traced* for ease of troubleshooting (note: tracing is
disabled by default, and can be activated by setting an environment variable)

Release history Release notifications

This version
History Node

3.0.0

History Node

2.1.1

History Node

2.1.0

History Node

2.0.0

History Node

1.1.1

History Node

1.1.0

History Node

0.8

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Aglyph-3.0.0-1.noarch.rpm (335.0 kB) Copy SHA256 hash SHA256 RPM any Mar 16, 2018
Aglyph-3.0.0-1.src.rpm (420.9 kB) Copy SHA256 hash SHA256 RPM any Mar 16, 2018
Aglyph-3.0.0.linux-x86_64.tar.gz (75.8 kB) Copy SHA256 hash SHA256 Dumb Binary any Mar 16, 2018
Aglyph-3.0.0-py2.py3-none-any.whl (45.2 kB) Copy SHA256 hash SHA256 Wheel 3.6 Mar 16, 2018
Aglyph-3.0.0.tar.gz (412.7 kB) Copy SHA256 hash SHA256 Source None Mar 16, 2018
Aglyph-3.0.0.win32.exe (504.2 kB) Copy SHA256 hash SHA256 Windows Installer any Mar 16, 2018
Aglyph-3.0.0.win-amd64.exe (633.7 kB) Copy SHA256 hash SHA256 Windows Installer any Mar 16, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page