Overview

hazrakah on PyPI hazrakah on Read the Docs

hazrakah (הזרקה) is a tiny but powerful DI library for Python.

Features

  • Supports Transient, Singleton and Instance registrations.

  • Registration targets can be a concrete type or a factory function.

  • Container is mutable by default, but can be frozen on-demand.

  • Hierarchical container scopes can be created, and scoped registrations are isolated to their respective scope.

Contents