Metadata-Version: 2.1
Name: bamboo-core
Version: 0.10.1
Summary: General purpose server framework in Python
Home-page: https://jjj999.github.io/bamboo
License: MIT
Author: jjj999
Author-email: jjj999to@gmail.com
Maintainer: jjj999
Maintainer-email: jjj999to@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Project-URL: Repository, https://github.com/jjj999/bamboo
Description-Content-Type: text/markdown

# Bamboo

[![Bamboo](docs/res/bamboo.png)](https://jjj999.github.io/bamboo/)
[![PyPI version](https://badge.fury.io/py/bamboo-core.svg)](http://badge.fury.io/py/bamboo-core)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/bamboo-core/)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://jjj999.github.io/bamboo)

## Supported Interfaces

- WSGI
- ASGI v3.0 (HTTP, WebSocket and Lifespan)

## Installling

* Python: >= 3.7

```
$ python -m pip install bamboo-core
```

## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/)

以下は簡単な実装例です．

```python
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 ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/)．

## Examples

### [upsidedown](https://github.com/jjj999/bamboo/tree/master/examples/upsidedown)

リクエストされた文字列を逆順に反転させて返すアプリケーションです．

### [image_traffic](https://github.com/jjj999/bamboo/tree/master/examples/image_traffic)

アクセスに対して静的な画像を返すアプリケーションです．

### [tweets](https://github.com/jjj999/bamboo/tree/master/examples/tweets)

CLI ベースの簡易的な Twitter のような投稿アプリです．認証機能は実装されていません．

