bamboo
Supported Interfaces
- WSGI
- ASGI v3.0 (HTTP, WebSocket and Lifespan)
Installing
- Python: >= 3.7
python -m pip install bamboo-core
Usage
以下は簡単な実装例です.
from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor
app = WSGIApp()
@app.route("hello")
class MockEndpoint(WSGIEndpoint):
def do_GET(self) -> None:
self.send_body(b"Hello, World!")
if __name__ == "__main__":
WSGITestExecutor.debug(app)
上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます.
API documentation
API ドキュメントはこちら.
Examples
upsidedown
リクエストされた文字列を逆順に反転させて返すアプリケーションです.
image_traffic
アクセスに対して静的な画像を返すアプリケーションです.
tweets
CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません.
Metadata
Release files for bamboo-core 0.10.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bamboo-core-0.10.5.tar.gz | 48.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bamboo_core-0.10.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.2 kB
Release files / bamboo-core-0.10.5.tar.gz
| Download URL | bamboo-core-0.10.5.tar.gz |
|---|---|
| Size | 48.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9987a6279e4b877afadaf341d451f6d2fb3efa8d1c543339c993ad8f2ce91293
|
|
BLAKE2b-256 checksum How to use checksums |
ed37bc4768b7aaf62b583e8063c054590ad6038dd346ee7bf5196efc5f631f9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / bamboo_core-0.10.5-py3-none-any.whl
| Download URL | bamboo_core-0.10.5-py3-none-any.whl |
|---|---|
| Size | 61.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77beb129af6b36156e84c976aeb5b1a662709906aaf213dbc731b22d6ef03ccb
|
|
BLAKE2b-256 checksum How to use checksums |
2c3ebe3e75a77c422d4a762dd39df044e570596bdf035bd4076871ea8b7b817b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|