Skip to main content
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)

Metadata

Release files for oneday 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oneday 0.2.0
File Size Uploaded
oneday-0.2.0.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oneday 0.2.0
File Interpreter ABI Platform
oneday-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 kB

Release files / oneday-0.2.0.tar.gz

Download URL oneday-0.2.0.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d380346da50e15768cb84f99e0477569fa4567701c3e24476a250d5ca79b6baa
BLAKE2b-256 checksum
How to use checksums
adb69cb31785a990758b0fe98b82daa157544997523efff3af66fabdfd85c308
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / oneday-0.2.0-py3-none-any.whl

Download URL oneday-0.2.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc157e41fc09c72249cba2c6e938d38ee1462429c78605ae06dabd5e1463b797
BLAKE2b-256 checksum
How to use checksums
9044a50f1d4d1ed5ab5307ea284873fa5448d9eb13014f2b20945be915d40132
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page