FastAPI DI
This library to integrate pyject into fastapi to use di
Install
pip install fastapidi
Using
from fastapidi import FastAPIDI, get_dependency
class Test:
def test(self):
return "123"
app = FastAPIDI()
app.container.add_singleton(Test, Test)
@app.get("/")
async def test(dependency: Test = get_dependency(Test)):
return dependency.test()
Metadata
Release files for fastapidi 0.1.3
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 |
|---|---|---|---|---|
| fastapidi-0.1.3.tar.gz | 2.1 kB | Without provenance | Details for fastapidi-0.1.3.tar.gz |
Release files / fastapidi-0.1.3.tar.gz
| Download URL | fastapidi-0.1.3.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09626de1e1630be899765f0b64025fa1bb113e4b0ed90e2d0dd3947661bd4c56
|
|
BLAKE2b-256 checksum How to use checksums |
8ffba174398cc3b3ec3dbbf8050cb6cd08c7f93d4c284b30c058ce3d8e637ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for fastapidi 0.1.3
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.