valberg / django-registries

A structured way to register implementations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Registries

Tests Documentation pre-commit.ci status PyPI - Version PyPI - Python Version


django-registries is a structured way to create registries of implementations.

Let’s say you have a project that needs to be able to send emails. You want to be able to use different email backends, depending on the situation. You could create a registry for that and register different implementations of the EmailBackendInterface. Then, you could use the registry to get the implementation you want to use.

Table of Contents

Installation

pip install django-registries

Development

git clone
cd django-registries
pip install hatch
hatch run tests:cov
hatch run tests:typecheck

Documentation

https://django-registries.readthedocs.io/en/latest/

License

django-registries is distributed under the terms of the MIT license.

About

A structured way to register implementations

License:MIT License


Languages

Language:Python 100.0%