Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A modern, tasty Python web framework filled with salsa. 🌮

Project description


license pypi travis

Inspired by Responder, Bocadillo is a take on building a web framework taking the best parts of Falcon and Flask.

Under the hood, it uses Starlette as an ASGI toolkit and uvicorn as an ASGI server.

Quick start

Write your first app:

import bocadillo

api = bocadillo.API()

async def greet(req, resp, x: int, y: int): = {'result': x + y}

if __name__ == '__main__':

Run it:

# or directly using uvicorn:
uvicorn app:api
INFO: Started server process [81910]
INFO: Waiting for application startup.
INFO: Uvicorn running on (Press CTRL+C to quit)

Make some requests!

curl http://localhost:8000/add/3/5
{"result": 5}



Bocadillo is available on PyPI:

pip install bocadillo


  • ASGI-compatible
  • Flask-inspired decorator-based routing
  • Formatted string route patterns
  • Falcon-inspired passing of request and response
  • Send JSON using
  • Class-based views
  • Response headers


  • Status codes
  • HTTP error exceptions
  • Template rendering
  • Static assets
  • Bocadillo CLI


See CONTRIBUTING for contribution guidelines.

Project details

Download files

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

Files for bocadillo, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size bocadillo-0.1.0-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bocadillo-0.1.0.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page