Asynchronous web framework.
Project description
baguette is an asynchronous web framework for ASGI servers.
Installation
Python 3.6 or higher is required.
Run the following command:
pip install baguette
Quickstart
Create an application, in example.py:
from baguette import Baguette
app = Baguette()
@app.endpoint("/")
async def index(request):
return "<h1>Hello world</h1>"
Run the server with uvicorn (pip install uvicorn):
uvicorn example:app
Contribute
Support
If you are having issues, please let me know by joining the discord support server at https://discord.gg/8HgtN6E
License
The project is licensed under the MIT license.
Links
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
baguette-0.0.2.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file baguette-0.0.2.tar.gz
.
File metadata
- Download URL: baguette-0.0.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb26dd12d4e1afd9e3bfee1cf16e2d938985a065c4b10e7162dbaa594dc82936 |
|
MD5 | b57ac41dd77c71aa8512b97ffc2c72dd |
|
BLAKE2b-256 | 2fcbed66124b841ceeeeb5cfd68ff58c14823a85e8015464a6587beea99a78f0 |
File details
Details for the file baguette-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: baguette-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03b6b7fa65619248b81ce13293efac39cdc208c9256bc5e68cee2f9c0d75f2a7 |
|
MD5 | 5aef6e3730290c7d7c1c4766b3f906b8 |
|
BLAKE2b-256 | 89b2357d67017f3d3f43c1afa4bd1236e3651d6b2287bb61fc4bf90dc7e2c4e6 |