Skip to main content

Is a toolkit to build ASGI applications faster

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.7

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.49.4.tar.gz (243.2 kB view details)

Uploaded Source

Built Distributions

asgi_tools-0.49.4-cp39-cp39-win_amd64.whl (391.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

asgi_tools-0.49.4-cp39-cp39-manylinux1_x86_64.whl (901.9 kB view details)

Uploaded CPython 3.9

asgi_tools-0.49.4-cp39-cp39-macosx_10_14_x86_64.whl (414.1 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

asgi_tools-0.49.4-cp38-cp38-win_amd64.whl (391.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

asgi_tools-0.49.4-cp38-cp38-manylinux1_x86_64.whl (943.4 kB view details)

Uploaded CPython 3.8

asgi_tools-0.49.4-cp38-cp38-macosx_10_14_x86_64.whl (412.8 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

asgi_tools-0.49.4-cp37-cp37m-win_amd64.whl (387.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

asgi_tools-0.49.4-cp37-cp37m-manylinux1_x86_64.whl (911.5 kB view details)

Uploaded CPython 3.7m

asgi_tools-0.49.4-cp37-cp37m-macosx_10_14_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

Details for the file asgi-tools-0.49.4.tar.gz.

File metadata

  • Download URL: asgi-tools-0.49.4.tar.gz
  • Upload date:
  • Size: 243.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi-tools-0.49.4.tar.gz
Algorithm Hash digest
SHA256 6913db9c9c1f6bd33dbc536135152afc71fc2e8dde2ce041fd5dc0fcbecda360
MD5 a7e65b8e5e2ca0f9ef62dfe598f26829
BLAKE2b-256 7940c601b73c3c616d93b636d77842729f7699747e14875accaa051246c2776a

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 391.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 56c4c386615b01dd9cf09911e796e76340d5a78bc0514c77fa65f768d86d666c
MD5 fecd9d26b481c41d9258e37372946e62
BLAKE2b-256 71b82d5cafb40e180a165d560d88d50ace9d8391cabeed1a0c8cee26886d77a4

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 901.9 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 51aaf68fc10a571c0059093eee1fc9f82fec836d0733dc98ba1998c0f8598cc9
MD5 abf6d8133789cd2f0026c453d646e42c
BLAKE2b-256 7cc6310dc6d2dd7293222ecda9866abf6b449e16947c44f52468797d836fb7f0

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 414.1 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b541e52a4fd08b6bdfb4348d2766f2b3ae16bcae07ce5e203b6eb2ade8214455
MD5 cbbf23b3e471962abf5e1b3c49ee4f32
BLAKE2b-256 592d0bd4a3bf921f117b155a9b4d1924b9aa9f975bf345b2e8968db367ac576e

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 391.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 35df9d84de8ee64a0a107c5d5f2540354a2de3f3e33675501e87a33af146450e
MD5 2ebe2c59e6d8831cec954de8d44c10d6
BLAKE2b-256 d80ce9b1fe733bc3dabe4c01bd3ca220dd5325f3c3e7e1e61965e40f34327175

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 943.4 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f55cd559106584851495899517359147914fea0b82df849e0fc887cfff5c4598
MD5 6b610bf360d0f2c78d3f6d25d56280e1
BLAKE2b-256 af2a21a9b260a511fe836f8fded823fe671702d860621d27dd899d59195db3bd

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 412.8 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d6c1303ee34c297a3a03b365137e98de7f4abfb7b92fff39917616ccf699d782
MD5 6e9873da078e8f7136b99655909b689d
BLAKE2b-256 159940e7c05ae2a86494776f791845a19c53a06bec26e34f73a2e81c4e8f5385

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 387.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 59625b1cebda1534aa616d107f29a9c853272715be2c5ef8eaf8686358a12cc4
MD5 5a90ea7731d1633ff987d0b7bd018332
BLAKE2b-256 02c8e1a539f6f54d5f4df93c8f9dd92e251fe0cf0a1eb0537a4586581807c7c4

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 911.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f1ddb1d29c2d74fe2a612f8fda2bee0c88d1ebda31814d41451351870c3ccc44
MD5 7d2ea16752e4422534ceab80750bb398
BLAKE2b-256 9de3cd313d7a4d96bc23fbeeb509a2f92a6722bbd868df10992200d66b3d890a

See more details on using hashes here.

File details

Details for the file asgi_tools-0.49.4-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: asgi_tools-0.49.4-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 409.9 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for asgi_tools-0.49.4-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 853b80bcd5be549f340891ba2d218a60082f4d2b9b535cd4382b73876073701b
MD5 58157986bc4523dc9c27ccc30cd23b97
BLAKE2b-256 8d3767b65ab09c24d65dd5a79b28d51213205133cf13e3c6cebacc3189142443

See more details on using hashes here.

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