Metadata-Version: 2.1
Name: bbibbi
Version: 0.1.4
Summary: My own very simple python service locator
Home-page: https://github.com/sagnol/bbibbi
Author: sagnol
Author-email: samcom@naver.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Project-URL: Repository, https://github.com/sagnol/bbibbi
Description-Content-Type: text/x-rst

bbibbi
======

It's a simple service locator that I made for use.


.. end-of-readme-intro

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


