{"id":27113,"library":"litestar-granian","title":"Litestar Granian Plugin","description":"Granian plugin for Litestar, providing a CLI command to run Litestar apps with the Granian ASGI/RSGI server. Version 0.15.0 exposes Granian commands directly through the Litestar CLI. Release cadence is irregular.","status":"active","version":"0.15.0","language":"python","source_language":"en","source_url":"https://github.com/cofin/litestar-granian","tags":["litestar","granian","asgi","server","plugin"],"install":[{"cmd":"pip install litestar-granian","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"LitestarGranian","correct":"from litestar_granian import LitestarGranian"}],"quickstart":{"code":"from litestar import Litestar\nfrom litestar_granian import LitestarGranian\n\napp = Litestar()\n\nif __name__ == \"__main__\":\n    # Run using the plugin's CLI or directly via Granian\n    LitestarGranian(app).run()","lang":"python","description":"Create a Litestar app and serve it with the Granian plugin."},"warnings":[{"fix":"Migrate to using direct CLI commands instead of `ProcessManager`.","message":"Version 0.13.0 removed the process manager. If you relied on `ProcessManager`, upgrade with caution.","severity":"breaking","affected_versions":">=0.13.0"},{"fix":"Update all CLI invocations to use `--ws` instead of `--websockets`.","message":"The CLI parameter for websockets changed from `--websockets` to `--ws` in v0.14.1. Old scripts using `--websockets` will break.","severity":"gotcha","affected_versions":">=0.14.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install litestar-granian` to install it.","cause":"The library is not installed.","error":"ModuleNotFoundError: No module named 'litestar_granian'"},{"fix":"Use `from litestar_granian import LitestarGranian` (capital L and G).","cause":"Importing incorrectly, possibly as `from litestar_granian import LitestarGranian` but typo or wrong casing.","error":"AttributeError: module 'litestar_granian' has no attribute 'LitestarGranian'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}