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

Uploaded Source

Built Distribution

asgi_tools-0.47.9-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asgi-tools-0.47.9.tar.gz
  • Upload date:
  • Size: 24.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.47.9.tar.gz
Algorithm Hash digest
SHA256 1490d23283eac0bce71c111e901cb8e69586d6d87294bf14e19d68464ab742b0
MD5 226606bd2d18cd5b79b3683aff04384a
BLAKE2b-256 f2c443edfd091076fe056b0ea2c842a621e6523a118aae1fbd8296aec59c036c

See more details on using hashes here.

File details

Details for the file asgi_tools-0.47.9-py3-none-any.whl.

File metadata

  • Download URL: asgi_tools-0.47.9-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • 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.47.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e0523a9913f0cc37adeef36aa881691250363a73b7d1b35d18d695c3964c4d
MD5 7c795ecb8c3992c33e69ef654bdc3500
BLAKE2b-256 776e4586d2b1c5ad2e7a8ce9e047a5a799fb3b917ed839d0649b6405801db888

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