Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
Dependency injecetion for quart apps
NotificationsYou must be signed in to change notification settings
artisanofcode/python-quart-injector
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Dependency injecetion for quart apps.
poetry add quart-injectorimporttypingimportquartimportinjectorimportquart_injectorGreeting=typing.NewType("Greeting",str)defconfigure(binder:injector.Binder)->None:binder.bind(Greeting,to="Hello")app=quart.Quart(__name__)@app.route("/<name>")@app.route("/",defaults={"name":"World"})asyncdefgreeting_view(greeting:injector.Inject[Greeting],name:str)->str:returnf"{greeting}{name}!"quart_injector.wire(app,configure)
See theDocumentation or ask questions on theDiscussion board.
This project is licensed under theMIT licence.
All documentation and images are licenced under theCreative Commons Attribution-ShareAlike 4.0 International License.
This project usesSemantic Versioning.
About
Dependency injecetion for quart apps
Topics
Resources
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.