{"id":16807603,"url":"https://github.com/cofin/litestar-socketify","last_synced_at":"2025-08-02T07:13:54.976Z","repository":{"id":197691796,"uuid":"699138943","full_name":"cofin/litestar-socketify","owner":"cofin","description":"Socketify plugin for Litestar","archived":false,"fork":false,"pushed_at":"2023-10-08T16:14:26.000Z","size":91,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T03:04:30.524Z","etag":null,"topics":["litestar","litestar-api","litestar-framework","socketify"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cofin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-02T02:12:38.000Z","updated_at":"2024-12-24T20:05:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd1f65a3-9c63-493c-acce-69a280ff51de","html_url":"https://github.com/cofin/litestar-socketify","commit_stats":null,"previous_names":["cofin/litestar-socketify"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofin%2Flitestar-socketify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofin%2Flitestar-socketify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofin%2Flitestar-socketify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofin%2Flitestar-socketify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cofin","download_url":"https://codeload.github.com/cofin/litestar-socketify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244003807,"owners_count":20382273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["litestar","litestar-api","litestar-framework","socketify"],"created_at":"2024-10-13T09:54:13.906Z","updated_at":"2025-03-17T08:41:51.289Z","avatar_url":"https://github.com/cofin.png","language":"Makefile","readme":"# Litestar Socketify Plugin\n\n\u003e [!WARNING]\n\u003e Socketify currently has an issue with [ASGI lifespans](https://github.com/cirospaciari/socketify.py/issues/135). This plugin should be considered experimental.\n\n## Installation\n\n```shell\npip install litestar-socketify\n```\n\n## Usage\n\nHere is a basic application that demonstrates how to use the plugin.\n\n```python\nfrom __future__ import annotations\n\nfrom litestar import Controller, Litestar, get\n\nfrom litestar_socketify import SocketifyPlugin\n\n\nclass SampleController(Controller):\n    @get(path=\"/sample\")\n    async def sample_route(self ) -\u003e dict[str, str]:\n        \"\"\"Sample Route.\"\"\"\n        return {\"sample\": \"hello-world\"}\n\n\napp = Litestar(plugins=[SocketifyPlugin()], route_handlers=[SampleController])\n\n```\n\nNow, you can use the standard Litestar CLI and it will run with Socketify instead of Uvicorn.\n\n```shell\n❯ litestar --app examples.basic:app run\nUsing Litestar app from env: 'examples.basic:app'\nStarting socketify server process ──────────────────────────────────────────────\n┌──────────────────────────────┬──────────────────────┐\n│ Litestar version             │ 2.1.1                │\n│ Debug mode                   │ Disabled             │\n│ Python Debugger on exception │ Disabled             │\n│ CORS                         │ Disabled             │\n│ CSRF                         │ Disabled             │\n│ OpenAPI                      │ Enabled path=/schema │\n│ Compression                  │ Disabled             │\n└──────────────────────────────┴──────────────────────┘\n...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofin%2Flitestar-socketify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcofin%2Flitestar-socketify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofin%2Flitestar-socketify/lists"}