Skip to main content
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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quart-injector-0.0.0b1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quart_injector-0.0.0b1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file quart-injector-0.0.0b1.tar.gz.

File metadata

  • Download URL: quart-injector-0.0.0b1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.10.76-linuxkit

File hashes

Hashes for quart-injector-0.0.0b1.tar.gz
Algorithm Hash digest
SHA256 5909726a7499aeb4c50961efb1902df08914b3e283df7e5b2822c9713e439200
MD5 a58b5b497f6c9c5a008ba522dad28422
BLAKE2b-256 dbe451737e60114d975e8705246afbbfbc19d8c3d2c3c50abcd98b6fac72eaaf

See more details on using hashes here.

File details

Details for the file quart_injector-0.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: quart_injector-0.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.10.76-linuxkit

File hashes

Hashes for quart_injector-0.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4de9a3e22ac15785809270e4d2f4f86b56a15596edb024522b06b2de33cb7fdb
MD5 d674f44c69258f1339413875538d171f
BLAKE2b-256 0788f1a11d348e49e48009e9377ff499a31ecafe3674614d67d81337df976116

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.0b1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page