Aglyph is a Dependency Injection framework for Python, supporting type 2 (setter) and type 3 (constructor) injection.

Aglyph runs on CPython (http://www.python.org/) 2.7 and 3.4+, 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 using a fluent API.

Features

  • supports templates (i.e. component inheritance) and lifecycle methods
  • works with any kind of object creation pattern you'll encounter (constructor, factory function/method, attribute/property access, import)
  • non-intrusive wiring style (no decorators, naming conventions, or any other syntactic "magic" needed)
  • if it can be imported, it can be injected (even 3rd party libs, Java/.NET classes)
  • fully logged and traced

Project Activity

See All Activity >

Categories

Frameworks, Libraries

License

MIT License

Follow Aglyph

Aglyph Web Site

Other Useful Business Software
The Secure Workspace for Remote Work Icon
The Secure Workspace for Remote Work

Venn isolates and protects work from any personal use on the same computer, whether BYO or company issued.

Venn is a secure workspace for remote work that isolates and protects work from any personal use on the same computer. Work lives in a secure local enclave that is company controlled, where all data is encrypted and access is managed. Within the enclave – visually indicated by the Blue Border around these applications – business activity is walled off from anything that happens on the personal side. As a result, work and personal uses can now safely coexist on the same computer.
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
2
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

User Reviews

  • Aglyph is perfect! Thanks.
    1 user found this review helpful.
  • Good work:)
Read more reviews >

Additional Project Details

Intended Audience

Developers, Architects

Programming Language

Python

Related Categories

Python Frameworks, Python Libraries

Registered

2006-04-05