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
Convert CentOS to Red Hat Enterprise Linux on Azure Icon
Convert CentOS to Red Hat Enterprise Linux on Azure

Go beyond legacy Linux and streamline your CentOS migration journey by moving mission-critical workloads to Red Hat Enterprise Linux on Azure.

CentOS Linux is experiencing End of Life on June 30th, leading to potential gaps in security. With Red Hat Enterprise Linux on Azure, IT Teams can seamlessly migrate mission-critical CentOS Linux workloads knowing they don’t have to compromise on security, scalability, reliability, and simplifying cloud management. Securely accelerate innovation and unlock a competitive edge with enterprise-grade modern cloud infrastructure.
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