dependable
Dependency injection system extracted from fastapi
import asyncio
from random import random
from dependable import dependant, Depends
@dependant
async def main(*, choice: int = Depends(random)) -> None:
print(choice)
asyncio.run(main())
More on examples
Installation
poetry add dependable # pip install dependable
Python 3.6
- Backport require of async-exit-stack and async_generator
poetry add async-exit-stack async_generator # pip install async-exit-stack async_generator
Development
docker build -t dependable .
docker run --rm -v $(pwd):/usr/src/app dependable scripts/dev
References
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for dependable 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dependable-0.1.0.tar.gz | 6.8 kB | Without provenance | Details for dependable-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dependable-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dependable-0.1.0-py3-none-any.whl |
Total release size: 14.4 kB
Release files / dependable-0.1.0.tar.gz
| Download URL | dependable-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6c22fb38156d97b1e0f105af24d78322cae4ba02e1395d72b3bbd090190f2b0
|
|
BLAKE2b-256 checksum How to use checksums |
faedc10f171f908f7c672676da37015f940160f6b9955fc6d3cc335d76ccaaeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/4.19.121-linuxkit
|
Release files / dependable-0.1.0-py3-none-any.whl
| Download URL | dependable-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
354659894ff8dad88719517579f14b2177ddf6d784972509a72807b6101c3546
|
|
BLAKE2b-256 checksum How to use checksums |
0c338da8202eda98b3915217424cc264ef4de788d83342576caed184c2c741a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/4.19.121-linuxkit
|
Security for dependable 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.