{"id":15437433,"url":"https://github.com/dlax/pyramid-asgi","last_synced_at":"2026-05-31T16:31:57.987Z","repository":{"id":141729126,"uuid":"140539959","full_name":"dlax/pyramid-asgi","owner":"dlax","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-11T10:10:59.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T10:31:13.091Z","etag":null,"topics":["asgi","pyramid"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlax.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-11T07:44:50.000Z","updated_at":"2018-07-11T10:11:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"05de0901-2af1-4325-aef4-7d6f4e40d3c9","html_url":"https://github.com/dlax/pyramid-asgi","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"9451cfd9b8ba5c879147ce0a6a50146bc2938351"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dlax/pyramid-asgi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlax%2Fpyramid-asgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlax%2Fpyramid-asgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlax%2Fpyramid-asgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlax%2Fpyramid-asgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlax","download_url":"https://codeload.github.com/dlax/pyramid-asgi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlax%2Fpyramid-asgi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33739861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asgi","pyramid"],"created_at":"2024-10-01T18:56:53.767Z","updated_at":"2026-05-31T16:31:57.972Z","avatar_url":"https://github.com/dlax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pyramid ASGI\n============\n\n.. image:: https://travis-ci.org/dlax/pyramid-asgi.svg?branch=master\n    :target: https://travis-ci.org/dlax/pyramid-asgi\n\nGetting Started\n---------------\n\n`pyramid_asgi` provides a wrapper to transform Pyramid WSGI applications into\nASGI applications. It also provides configurator methods to register ASGI\nconsumers.\n\nHere is a simple example that defines a wrapped Pyramid application using\n`pyramid_asgi.PyramidWsgiToAsgi` and registers a \"websocket\" consumer under\nthe ``/ws`` route path.\n\n.. code-block:: python\n\n    from asgiref.wsgi import WsgiToAsgiInstance\n    from pyramid.config import Configurator\n    from pyramid_asgi import PyramidWsgiToAsgi\n\n\n    class WebsocketConsumer(WsgiToAsgiInstance):\n        \"\"\"ASGI consumer for websocket protocol.\"\"\"\n\n        async def __call__(self, receive, send):\n            while True:\n                message = await receive()\n                if message[\"type\"] == \"websocket.connect\":\n                    await send({\"type\": \"websocket.accept\"})\n                if message[\"type\"] == \"websocket.receive\":\n                    text = message.get(\"text\")\n                    if text:\n                        await send({\"type\": \"websocket.send\",\n                                    \"text\": text})\n\n\n    def main(global_config, **settings):\n        config = Configurator(settings=settings)\n        config.scan()\n        config.include('pyramid_asgi')\n        config.add_consumer(WebsocketConsumer, 'websocket', '/ws')\n        app = config.make_wsgi_app()\n        return PyramidWsgiToAsgi(app)\n\n\nThis example can then be run through an ASGI server, like `uvicorn\n\u003chttps://www.uvicorn.org/\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlax%2Fpyramid-asgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlax%2Fpyramid-asgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlax%2Fpyramid-asgi/lists"}