Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dependency injecetion for quart apps

NotificationsYou must be signed in to change notification settings

artisanofcode/python-quart-injector

Repository files navigation

Dependency injecetion for quart apps.

🛠 Installing

poetry add quart-injector

🎓 Usage

importtypingimportquartimportinjectorimportquart_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)

📚 Help

See theDocumentation or ask questions on theDiscussion board.

⚖️ Licence

This project is licensed under theMIT licence.

All documentation and images are licenced under theCreative Commons Attribution-ShareAlike 4.0 International License.

📝 Meta

This project usesSemantic Versioning.

About

Dependency injecetion for quart apps

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp