Skip to main content

A Python DI/component project

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oneday-0.2.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

oneday-0.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file oneday-0.2.0.tar.gz.

File metadata

  • Download URL: oneday-0.2.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for oneday-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d380346da50e15768cb84f99e0477569fa4567701c3e24476a250d5ca79b6baa
MD5 23ed2aa2fcf99290712c9bb497063929
BLAKE2b-256 adb69cb31785a990758b0fe98b82daa157544997523efff3af66fabdfd85c308

See more details on using hashes here.

File details

Details for the file oneday-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: oneday-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for oneday-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc157e41fc09c72249cba2c6e938d38ee1462429c78605ae06dabd5e1463b797
MD5 0cebf0774ae8f931ee7fd8e4666b482d
BLAKE2b-256 9044a50f1d4d1ed5ab5307ea284873fa5448d9eb13014f2b20945be915d40132

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page