Fast, highly-concurrent and scalable web APIs for everyone
Project description
NOTICE
Bocadillo is now UNMAINTAINED. This repository will be archived by November 2019. We recommend users to migrate to other well-supported alternatives, such as Starlette or FastAPI. Please see #334 for more information.
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
File details
Details for the file bocadillo-0.18.3.tar.gz
.
File metadata
- Download URL: bocadillo-0.18.3.tar.gz
- Upload date:
- Size: 42.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e5c20a4b2da4d8c6266c0a0cb5b8b224e0cdbf1ffb97f06050ef05d27be383 |
|
MD5 | dd1c0f240445dcbbea35ec809aa79a2e |
|
BLAKE2b-256 | f36086722c2f09b7e426b81f95620b01c641350f5cd75df1e959419e6d3ea7c7 |
File details
Details for the file bocadillo-0.18.3-py3-none-any.whl
.
File metadata
- Download URL: bocadillo-0.18.3-py3-none-any.whl
- Upload date:
- Size: 65.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f745e359530f0c1b7f2da8fc260de9fa997fc831ba21d57d1feb6a5cc85dda |
|
MD5 | eaf12886bdbc13658f0d526258991401 |
|
BLAKE2b-256 | c909b7b71f43e7b879c9eb0532fc296faffd7213e3c1142c560a648a0ccd88d0 |