Metadata-Version: 2.1
Name: oneday
Version: 0.2.0
Summary: A Python DI/component project
Home-page: https://github.com/duyixian1234/oneday
Author: Yixian Du
Author-email: duyixian1234@qq.com
License: BSD License
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7

oneday
======

A Python DI/component project.

Example
-------

>>> from import Component
>>> class A:
            pass
>>> a = A()
>>> Component.add(a)
>>> Component.get(A) is a
True
>>> @Service.register
     class B:
        def __init__(self, a: A):
            self.a = a
>>> b = Component.create(B)
>>> b.a is a
True

Install
-------

.. code-block:: shell
pip install oneday

Author
------
Yixian Du (duyixian1234@qq.com)

