Skip to main content

Fast, highly-concurrent and scalable web APIs for everyone

Project description

Build status Test coverage pypi version code style

@bocadillopy on Twitter   Say Thanks!


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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bocadillo-0.17.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.17.0.tar.gz
Algorithm Hash digest
SHA256 ea7d0a8a9a2e70e5ec12301a49c36309210313ab79ea1c1d45d4aa205baa1a4a
MD5 23425afe5d3c218da7eacc59b289cd0c
BLAKE2b-256 1beaf84d18734f07fa193ecf5c76b3b3b0b54ce549ba3ac8cfb77f384c8fa2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bocadillo-0.17.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.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 022cf47f9678cd432e178fb3034d09d56ad82c17cc8ee78cff855fb0ac7534e6
MD5 370d2d6421072c4e38e6e48dbe9e199f
BLAKE2b-256 7cd06b894232987e9309d1797ec5fb50fe6b34ed3d971e1eb8029cdf8a4b0fab

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