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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

asgi_tools-0.48.7-cp39-cp39-manylinux1_x86_64.whl (901.4 kB view details)

Uploaded CPython 3.9

asgi_tools-0.48.7-cp39-cp39-macosx_10_14_x86_64.whl (414.2 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

asgi_tools-0.48.7-cp38-cp38-manylinux1_x86_64.whl (945.4 kB view details)

Uploaded CPython 3.8

asgi_tools-0.48.7-cp38-cp38-macosx_10_14_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

asgi_tools-0.48.7-cp37-cp37m-win_amd64.whl (387.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

asgi_tools-0.48.7-cp37-cp37m-manylinux1_x86_64.whl (911.4 kB view details)

Uploaded CPython 3.7m

asgi_tools-0.48.7-cp37-cp37m-macosx_10_14_x86_64.whl (410.0 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: asgi-tools-0.48.7.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.48.7.tar.gz
Algorithm Hash digest
SHA256 faf8be3cae76235ba73e7d90ad4aeb5ef0589336b010daa3f12f6b7298771b27
MD5 fb8524fb3621a844f1e1c5f67d396a74
BLAKE2b-256 abe81cf89017be39faa117991263f949882ad30e44876c1ba1749f6730a91b9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-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.48.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fe941ce7f497c5b9e0dd53cb0601533291dfbc8278ea6937853da20018c31208
MD5 5b937cfef1da4e2f7a135741ee256c85
BLAKE2b-256 f61e4b5d64bb3e32a48c83d2ea64035a9d60f6dfa5efca38ffb3117142ce1892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 901.4 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.48.7-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 08fb1ee9f9b48bc282d9cfc712474da5e77816327d24c334b24c0f13aedcdcbd
MD5 ca5d8312b94ac0c39b8bae51322ffdd9
BLAKE2b-256 be4de979bbc0e9f6416f336aa2c938712f6f88a1bd2ad33251204ddecff2d5b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 414.2 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.48.7-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2eb12a028268506197c04aa19fa72a8eee778a5b1a3e40cfde32e69bc3dee810
MD5 941ce08a1bbf1dc57be1a2566f6cdbab
BLAKE2b-256 32c0d44889223d66e8aba4b70e78175b3599db8670aacafbc3bbc5749f0a4521

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-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.48.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0e3cde149558b32f746b1a5fac4831b03ba39153fdf4d68f3ef285cada6dc401
MD5 694e2a57a043b330224828af127a163d
BLAKE2b-256 c61d5803d94d07488d2bf28b4c510139cd4f5bc3e9ff8c925510d2c9cdb550e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 945.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.48.7-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ed7216429e054ace5c754a9df42fe31ddea337f61decb3a7a425b710c2aab2d1
MD5 25731f69923c966680deae2d92c49b0c
BLAKE2b-256 d6c5f3e387660e6424ba51580ee8ea0a0ec6a1bae59c1124950a84ff960bca50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 413.0 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.48.7-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b40c20efde22a189829e37ec2c7a78a79401e123a202e82548cbaaba23d436de
MD5 e094ae7a89e13474cb5065f2004f0e57
BLAKE2b-256 a6a3070a58547a6167f9c89329a99371855312bea0ace3dc66cb517c41548397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 387.2 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.48.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5427f733b7c5725dbb3c47d6599a58b32a083757e84153e77f3a16b0d23468b3
MD5 e3eb9fc86444855972f42d244b8222d6
BLAKE2b-256 27edeb90a7732d41eef86583ef9ff5dd44482ea47fd114f183a7a335928d2e4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 911.4 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.48.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 48c643daf05d53a869513c7ea91d775f83a654dede4b7eb2615c57e3181d856e
MD5 3abc3826851d6e0df257709cb5d62c03
BLAKE2b-256 3dfe810f79f7bfbf253c23d3cc6e122dd4737f4a95725be30c4f257b27cc7a1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asgi_tools-0.48.7-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 410.0 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.48.7-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 cf690f8dbc2c7bbda3f864ffbaa7ebf96ae35176aaf4f50cf995a05d548185f6
MD5 2468c9b15b844a3805344a9debbf6afc
BLAKE2b-256 5c50a06bb3a48103d9f8d69a3328f0dfe74155cda199bbd26c2d8101bb95e458

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