{"library":"sonora","title":"Sonora","type":"library","description":"A WSGI and ASGI compatible gRPC-web implementation. Version 0.2.3 supports Python >=3.7,<4.0. Provides middleware for integrating gRPC-web clients with Python web frameworks like Flask (WSGI) or Starlette (ASGI).","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install sonora"],"cli":null},"imports":["from sonora.wsgi import SonoraWSGIMiddleware","from sonora.asgi import SonoraASGIMiddleware","from sonora import client"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/public/sonora","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sonora/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from flask import Flask\nfrom sonora.wsgi import SonoraWSGIMiddleware\n\napp = Flask(__name__)\n\n# Placeholder gRPC handler (replace with actual implementation)\ndef my_grpc_handler(request):\n    return {}\n\nsonora_app = SonoraWSGIMiddleware(app, handler=my_grpc_handler)\n\nif __name__ == '__main__':\n    from wsgiref.simple_server import make_server\n    server = make_server('localhost', 5000, sonora_app)\n    server.serve_forever()","lang":"python","description":"Basic WSGI integration with Flask.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}