New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bamboo-core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bamboo-core

General purpose server framework in Python

  • 0.10.5
  • PyPI
  • Socket score

Maintainers
1

bamboo

bamboo PyPI version License

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 のような投稿アプリです.認証機能は実装されていません.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc