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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for baguette-0.3.1.tar.gz
Algorithm Hash digest
SHA256 fc477d97f71406eb7f172e16aa4e1b81e9f5997320a287c6af4f8ee00a34e455
MD5 3103a78dc60d1dab7b1c158f9d8b0845
BLAKE2b-256 7d159189ba2d11cb0a7fe3db7d95160da0f85bfd47c50f7b7c20c3214f48829a

See more details on using hashes here.

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

Hashes for baguette-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 513cf273d311abed746fff29a83a437168a82f3323f9b655f8acb43b8cd085b2
MD5 9b6aa2a9d0b7abdbbe3e85310c347603
BLAKE2b-256 9d0fae02668664f0f3edb59e815769ae968d2de19701188f459e6ff8576022b5

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