Skip to main content

Asynchronous web framework.

Project description

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.

Project details


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.3.1.tar.gz (29.2 kB view hashes)

Uploaded Source

Built Distribution

baguette-0.3.1-py3-none-any.whl (33.6 kB view hashes)

Uploaded Python 3

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