Asynchronous web framework.
Project description
baguette is an asynchronous web framework for ASGI servers.
Installation
Python 3.6 or higher is required.
Install baguette with pip:
pip install baguette
You also need an ASGI server to run your app like uvicorn or hypercorn. To install uvicorn directly with baguette, you can add the uvicorn argument:
pip install baguette[uvicorn]
Quickstart
Create an application, in example.py:
from baguette import Baguette
app = Baguette()
@app.route("/")
async def index(request):
return "<h1>Hello world</h1>"
Run the server with uvicorn:
uvicorn example:app
See uvicorn’s deployment guide for more deployment options.
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
Built Distribution
File details
Details for the file baguette-0.3.1.tar.gz
.
File metadata
- Download URL: baguette-0.3.1.tar.gz
- Upload date:
- Size: 29.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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc477d97f71406eb7f172e16aa4e1b81e9f5997320a287c6af4f8ee00a34e455 |
|
MD5 | 3103a78dc60d1dab7b1c158f9d8b0845 |
|
BLAKE2b-256 | 7d159189ba2d11cb0a7fe3db7d95160da0f85bfd47c50f7b7c20c3214f48829a |
File details
Details for the file baguette-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: baguette-0.3.1-py3-none-any.whl
- Upload date:
- Size: 33.6 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 513cf273d311abed746fff29a83a437168a82f3323f9b655f8acb43b8cd085b2 |
|
MD5 | 9b6aa2a9d0b7abdbbe3e85310c347603 |
|
BLAKE2b-256 | 9d0fae02668664f0f3edb59e815769ae968d2de19701188f459e6ff8576022b5 |