Skip to main content

A modern Python web framework filled with asynchronous salsa.


python pypi downloads travis black codecov license Join the chat at https://gitter.im/bocadilloproject/bocadillo

Bocadillo

Bocadillo is a Python web framework that provides a sane toolkit for quickly building performant web applications and services, while encouraging best practices and keeping developer experience in mind.

Under the hood, it uses the Starlette ASGI toolkit and the lightning-fast uvicorn ASGI server.

Read the documentation

Quick start

Install it:

pip install bocadillo

Build something:

# api.py
import bocadillo

api = bocadillo.API()

@api.route("/")
async def index(req, res):
    # Use a template from the ./templates directory 
    res.html = await api.template("index.html")

@api.route("/greet/{person}")
async def greet(req, res, person):
    res.media = {"message": f"Hi, {person}!"}

if __name__ == "__main__":
    api.run()

Launch:

python api.py

Make requests!

curl http://localhost:8000/greet/Bocadillo
{"message": "Hi, Bocadillo!"}

Hungry for more? Head to the docs.

Contributing

See CONTRIBUTING for contribution guidelines.

Changelog

See CHANGELOG for a chronological log of changes to Bocadillo.

Roadmap

To see what has already been implemented for the next release, see the Unreleased section of our changelog.

Metadata

Release files for bocadillo 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bocadillo 0.10.0
File Size Uploaded Provenance Actions
bocadillo-0.10.0.tar.gz 25.1 kB Without provenance Details for bocadillo-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bocadillo 0.10.0
File Interpreter ABI Platform Actions
bocadillo-0.10.0-py3-none-any.whl Python 3 none any Details for bocadillo-0.10.0-py3-none-any.whl

Total release size: 58.3 kB

Release files / bocadillo-0.10.0.tar.gz

Download URL bocadillo-0.10.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a3d05022b3989a85426bd5afe97b044029c477d74e53fa3ee1dec11500ed7a48
BLAKE2b-256 checksum
How to use checksums
e6341a1c7276e529ddfbce7279df8d25329196e76198bca81e13f9ab23962b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

Release files / bocadillo-0.10.0-py3-none-any.whl

Download URL bocadillo-0.10.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc4acf007e093c01268e26ec0554a41b78c219df957d6dfa8e8b7948b29ea7db
BLAKE2b-256 checksum
How to use checksums
14ef7c8c137f090f55646b899743789b779ae2b972268fa7faef44f4acf8d6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

Security for bocadillo 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page