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

You Might Also Like
Let your volunteer coordinators do their best work. Icon
Let your volunteer coordinators do their best work.

For non-profit organizations requiring a software solution to keep track of volunteers

Stop messing with tools that aren’t designed to amplify volunteer programs. With VolunteerMatters, it’s a delight to manage everything in one place.
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

Be the first to post a review of Aglyph!

Additional Project Details

Intended Audience

Developers, Architects

Programming Language

Python

Related Categories

Python Frameworks, Python Libraries

Registered

2006-04-05