My own very simple python service locator
Project description
It’s a simple service locator that I made for use.
Installation
pip install bbibbi
Usage
from bbibbi import container, Symbol SERVICE_SYMBOL = Symbol("SomeService") class Service: def ten(self) -> int: return 10 container.register(SERVICE_SYMBOL, Service()) service: Service = container.get(SERVICE_SYMBOL) assert service.ten() == 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bbibbi-0.1.4.tar.gz
(2.9 kB
view hashes)
Built Distribution
bbibbi-0.1.4-py3-none-any.whl
(3.6 kB
view hashes)