Pre-release
This release is a pre-release and may not be stable for production use.
Quart Injector
Dependency injecetion for quart apps.
🛠 Installing
poetry add quart-injector
🎓 Usage
import typing
import quart
import injector
import quart_injector
Greeting = typing.NewType("Greeting", str)
def configure(binder: injector.Binder) -> None:
binder.bind(Greeting, to="Hello")
app = quart.Quart(__name__)
@app.route("/<name>")
@app.route("/", defaults={"name": "World"})
async def greeting_view(greeting: injector.Inject[Greeting], name: str) -> str:
return f"{greeting} {name}!"
quart_injector.wire(app, configure)
📚 Help
See the Documentation or ask questions on the Discussion board.
⚖️ Licence
This project is licensed under the MIT licence.
All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.
📝 Meta
This project uses Semantic Versioning.
Release files for quart-injector 0.0.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quart-injector-0.0.0b1.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quart_injector-0.0.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / quart-injector-0.0.0b1.tar.gz
| Download URL | quart-injector-0.0.0b1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5909726a7499aeb4c50961efb1902df08914b3e283df7e5b2822c9713e439200
|
|
BLAKE2b-256 checksum How to use checksums |
dbe451737e60114d975e8705246afbbfbc19d8c3d2c3c50abcd98b6fac72eaaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0b1 CPython/3.10.4 Linux/5.10.76-linuxkit
|
Release files / quart_injector-0.0.0b1-py3-none-any.whl
| Download URL | quart_injector-0.0.0b1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4de9a3e22ac15785809270e4d2f4f86b56a15596edb024522b06b2de33cb7fdb
|
|
BLAKE2b-256 checksum How to use checksums |
0788f1a11d348e49e48009e9377ff499a31ecafe3674614d67d81337df976116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0b1 CPython/3.10.4 Linux/5.10.76-linuxkit
|