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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bocadillo-0.18.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5a8b2767084c72ae82e6460215cf70d56b931ed05c399515d9e4dbe90d4d43d0
MD5 06162eddc0005911b31c8c71f0d084bc
BLAKE2b-256 f130c1bcc0f2df4241e8880029762a6864c318c1817d9a1ee770261b0fb17e46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bocadillo-0.18.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b05bdf4e8afadedbba2874ea561e091b932b88095f7d1baba43bf6824984444
MD5 0df4095aec8ce8d74ec03eab7b6c95a6
BLAKE2b-256 94961205f9f80e98042cb75561f170b43653e719b8788dc983d2b33830aae629

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