Skip to main content

Fast, highly-concurrent and scalable web APIs for everyone

Project description

Build status Test coverage pypi version code style

Mentioned in awesome-asyncio @bocadillopy on Twitter


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bocadillo-0.18.2.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

bocadillo-0.18.2-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

Details for the file bocadillo-0.18.2.tar.gz.

File metadata

  • Download URL: bocadillo-0.18.2.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for bocadillo-0.18.2.tar.gz
Algorithm Hash digest
SHA256 9c63d6cde887dcc61473ccda6f8ad9c6669a1a81da4663d018bed67f1597c165
MD5 2681c81fbb63a88009a024bfd46a263f
BLAKE2b-256 2957d807439372a74daa78655f5c1a9b4a5849ba0ab0589e03584e1241cb3e15

See more details on using hashes here.

File details

Details for the file bocadillo-0.18.2-py3-none-any.whl.

File metadata

  • Download URL: bocadillo-0.18.2-py3-none-any.whl
  • Upload date:
  • Size: 65.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for bocadillo-0.18.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c30cb155d8dd83835bee8f88dc4c01814045e6598246527c3b99815a90c4b165
MD5 ab632c668b25ab44fd753ef31706d3ea
BLAKE2b-256 e6b08bf04ac6c759d36c0e1682f20faca835867f3e8244af07e437920982a685

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