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.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

bocadillo-0.18.0-py3-none-any.whl (65.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bocadillo-0.18.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d429e04a8e3cb5ed1a7ef54b5ca0ea057d6f26e283b5ec00fe3250809751d9e7
MD5 5877b8d29ecad9df5c1980df20a4d3f8
BLAKE2b-256 823ebb8e126386804703b057cf58cf0b5a717057486673b9e8f3a3887e5fa17b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bocadillo-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 65.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9affd54e6d5a09ab67c906b27898c96f23290737b3a95240912f6352625d3719
MD5 6659baca2f56b4102c566aabb345bc33
BLAKE2b-256 1f20264e14f921bc450a97a37eeda0cd234e779d1ff6691b0a641d63b2b09b14

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