Fast, highly-concurrent and scalable web APIs for everyone
Project description
Documentation: https://bocadilloproject.github.io
Bocadillo is a Python async web framework that makes building performant and highly concurrent web APIs fun and accessible to everyone.
Requirements
Python 3.6+
Installation
pip install bocadillo
Example
from bocadillo import App, configure
app = App()
configure(app)
@app.route("/")
async def index(req, res):
res.json = {"hello": "world"}
Save this as app.py
, then start a uvicorn server (hot reload enabled!):
uvicorn app:app --reload
Say hello!
$ curl http://localhost:8000
{"hello": "world"}
Ready to dive in? Visit the documentation site.
Changelog
All changes to Bocadillo are recorded in the changelog. To see what's coming in the next release, read the Unreleased section.
Release notes may also be published as blog posts on Bocadillo News.
Contributing
Found a bug? A typo? Want to help build a new feature? We'd love to see your contributions! There are also many ways to contribute that don't include code: helping with issues, laying out new ideas, improving docs, etc.
Check out the Contributing guide to get started.
By the way, here is the Bocadillo Contributor Hall of Fame. 👨💻👩💻
Credits
Logo designed by Florimond Manca. Sandwich icon designed by macrovector.
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
Hashes for bocadillo-0.18.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c30cb155d8dd83835bee8f88dc4c01814045e6598246527c3b99815a90c4b165 |
|
MD5 | ab632c668b25ab44fd753ef31706d3ea |
|
BLAKE2b-256 | e6b08bf04ac6c759d36c0e1682f20faca835867f3e8244af07e437920982a685 |