Bocadillo
Bocadillo is a Python web framework that provides a sane toolkit for quickly building performant web applications and services, while encouraging best practices and keeping developer experience in mind.
Under the hood, it uses the Starlette ASGI toolkit and the lightning-fast uvicorn ASGI server.
Quick start
Install it:
pip install bocadillo
Build something:
# app.py
from bocadillo import App, Templates
app = App()
templates = Templates(app)
@app.route("/")
async def index(req, res):
# Use a template from the ./templates directory
res.html = await templates.render("index.html")
@app.route("/greet/{person}")
async def greet(req, res, person):
res.media = {"message": f"Hi, {person}!"}
if __name__ == "__main__":
app.run()
Launch:
python app.py
Make requests!
curl http://localhost:8000/greet/Bocadillo
{"message": "Hi, Bocadillo!"}
Hungry for more? Head to the docs.
Contributing
See CONTRIBUTING for contribution guidelines.
Changelog
See CHANGELOG for a chronological log of changes to Bocadillo.
Roadmap
For a list of short, mid and long-term feature ideas currently in our scope, see the Roadmap.
To see what has already been implemented for the next release, see the Unreleased section of our changelog.
Credits
Logo:
- Designed by Florimond Manca.
- Sandwich icon designed by macrovector.
Metadata
Release files for bocadillo 0.12.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bocadillo-0.12.5.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bocadillo-0.12.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.2 kB
Release files / bocadillo-0.12.5.tar.gz
| Download URL | bocadillo-0.12.5.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82e813eca55a25efad1153182333f9bb269d2443b94010ce370fb884b0960afc
|
|
BLAKE2b-256 checksum How to use checksums |
c1bfa9edd6b51fff5beb60af4ed130552b0330ae5191b3efe830320b5968a785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / bocadillo-0.12.5-py3-none-any.whl
| Download URL | bocadillo-0.12.5-py3-none-any.whl |
|---|---|
| Size | 36.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c694cc752316818b13dd12cf72c5f8e5e382aa5cdea68c1de776b72d6052f625
|
|
BLAKE2b-256 checksum How to use checksums |
07bccab69a5a8c982aae82bec43dbf069797dfb27e72e4eeae399681ad910e10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|