Skip to main content
PyPI version info Supported Python versions Lint and test workflow status Documentation build status Code coverage Code style: Black Discord support server

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.

Release files for baguette 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baguette 0.3.1
File Size Uploaded
baguette-0.3.1.tar.gz 29.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baguette 0.3.1
File Interpreter ABI Platform
baguette-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size:62.9 kB

Release files / baguette-0.3.1.tar.gz

Download URL baguette-0.3.1.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc477d97f71406eb7f172e16aa4e1b81e9f5997320a287c6af4f8ee00a34e455
BLAKE2b-256 checksum
How to use checksums
7d159189ba2d11cb0a7fe3db7d95160da0f85bfd47c50f7b7c20c3214f48829a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / baguette-0.3.1-py3-none-any.whl

Download URL baguette-0.3.1-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
513cf273d311abed746fff29a83a437168a82f3323f9b655f8acb43b8cd085b2
BLAKE2b-256 checksum
How to use checksums
9d0fae02668664f0f3edb59e815769ae968d2de19701188f459e6ff8576022b5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page