Skip to main content

ASGI Toolkit to build web applications

Project description

https://raw.githubusercontent.com/klen/asgi-tools/develop/.github/assets/asgi-tools.png

asgi-tools – Is a really lightweight ASGI Toolkit to build ASGI applications faster.

Tests Status Documentation Status PYPI Version Python Versions

Documentation is here: https://klen.github.io/asgi-tools

ASGI-Tools is designed to be used as an ASGI Toolkit to quickly build really lightweight ASGI applications/middlewares/tools.

For instance these middlewares were built with the library:

Features:

Requirements

  • python >= 3.8

ASGI-Tools belongs to the category of ASGI web frameworks, so it requires an ASGI HTTP server to run, such as uvicorn, daphne, or hypercorn.

Installation

asgi-tools should be installed using pip:

pip install asgi-tools

A Quick Example

You can use any of ASGI-Tools components independently.

Dispite this ASGI-Tools contains App helper to quickly build ASGI applications. For instance:

Save this to app.py.

from asgi_tools import App

app = App()

@app.route('/')
async def hello(request):
    return "Hello World!"

Run it with uvicorn

$ uvicorn app:app

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/asgi-tools/issues

Contributing

Development of the project happens at: https://github.com/klen/asgi-tools

License

Licensed under a MIT license.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

asgi-tools-0.76.0.tar.gz (47.6 kB view hashes)

Uploaded Source

Built Distributions

asgi_tools-0.76.0-cp311-cp311-win_amd64.whl (357.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

asgi_tools-0.76.0-cp311-cp311-musllinux_1_1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

asgi_tools-0.76.0-cp311-cp311-musllinux_1_1_aarch64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

asgi_tools-0.76.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

asgi_tools-0.76.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

asgi_tools-0.76.0-cp311-cp311-macosx_10_9_x86_64.whl (374.8 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

asgi_tools-0.76.0-cp311-cp311-macosx_10_9_universal2.whl (492.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

asgi_tools-0.76.0-cp310-cp310-win_amd64.whl (357.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

asgi_tools-0.76.0-cp310-cp310-musllinux_1_1_x86_64.whl (962.5 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

asgi_tools-0.76.0-cp310-cp310-musllinux_1_1_aarch64.whl (953.7 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

asgi_tools-0.76.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (951.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

asgi_tools-0.76.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (945.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

asgi_tools-0.76.0-cp310-cp310-macosx_10_9_x86_64.whl (373.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

asgi_tools-0.76.0-cp310-cp310-macosx_10_9_universal2.whl (490.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

asgi_tools-0.76.0-cp39-cp39-win_amd64.whl (358.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

asgi_tools-0.76.0-cp39-cp39-musllinux_1_1_x86_64.whl (966.0 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

asgi_tools-0.76.0-cp39-cp39-musllinux_1_1_aarch64.whl (957.9 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ ARM64

asgi_tools-0.76.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (955.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

asgi_tools-0.76.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (948.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

asgi_tools-0.76.0-cp39-cp39-macosx_10_9_x86_64.whl (374.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

asgi_tools-0.76.0-cp39-cp39-macosx_10_9_universal2.whl (492.2 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

asgi_tools-0.76.0-cp38-cp38-win_amd64.whl (358.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

asgi_tools-0.76.0-cp38-cp38-musllinux_1_1_x86_64.whl (995.2 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

asgi_tools-0.76.0-cp38-cp38-musllinux_1_1_aarch64.whl (984.9 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ ARM64

asgi_tools-0.76.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (963.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

asgi_tools-0.76.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (953.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

asgi_tools-0.76.0-cp38-cp38-macosx_10_9_x86_64.whl (376.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

asgi_tools-0.76.0-cp38-cp38-macosx_10_9_universal2.whl (496.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page