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
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
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