Skip to main content

Bamboo

A lightweight, readable Python API framework. Simple by design.

Bamboo is an ASGI micro-framework you can read in one sitting and fully understand. No magic. No hidden complexity. Just clean, honest Python.

Install

pip install bambooapi-framework

Quickstart

from bambooapi import Bamboo, Response

app = Bamboo()

@app.get("/")
async def home(request):
    """Welcome message."""
    return {"message": "Hello from Bamboo"}

@app.post("/notes")
async def create_note(request):
    """Create a note."""
    data = await request.json()
    return Response({"note": data}, status=201)

Run it:

uvicorn myapp:app

Then visit http://localhost:8000/docs for the interactive API docs.

Features

  • GET, POST, PUT, DELETE routing
  • Path parameters: /notes/{note_id}
  • Async request body and JSON parsing
  • Auto-generated OpenAPI spec at /openapi.json
  • Interactive docs page at /docs
  • Zero dependencies beyond an ASGI server

Philosophy

The entire framework fits in one file you can read in an afternoon. If you can read it, you can understand it. If you can understand it, you can trust it.

License

MIT

Metadata

Release files for bamboo-framework 0.1.7

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

Source distribution (sdist)

Source distribution for bamboo-framework 0.1.7
File Size Uploaded
bamboo_framework-0.1.7.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bamboo-framework 0.1.7
File Interpreter ABI Platform
bamboo_framework-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / bamboo_framework-0.1.7.tar.gz

Download URL bamboo_framework-0.1.7.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
db5771dba18f3790ef9264863e4f2c618cd5061b0143a1c1423898afeb25e13d
BLAKE2b-256 checksum
How to use checksums
271d0467cf50e1c02e6bca3945d6acb06add4c9b89ec9e2c3d7f30026f40e08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / bamboo_framework-0.1.7-py3-none-any.whl

Download URL bamboo_framework-0.1.7-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c170de53a010f25630421117ebf8f417ab60a6be0eb0e9bdbe3ef07e6f9eb802
BLAKE2b-256 checksum
How to use checksums
3efb00ab5773f98335adcdab6dc358f39c78ef1e5aed4f44ff98a90e5e51e0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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