{"id":23283,"library":"async-typer","title":"async-typer","description":"A lightweight async wrapper around Typer that allows defining Typer commands using async functions. Version 0.1.10 requires Python >=3.10 and <4.0. Released as needed.","status":"active","version":"0.1.10","language":"python","source_language":"en","source_url":"https://github.com/tmastny/async-typer","tags":["typer","async","cli","async-typer"],"install":[{"cmd":"pip install async-typer","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"async-typer wraps Typer; Typer must be installed.","package":"typer","optional":false}],"imports":[{"note":"Common mistake: trying to import from the module path instead of top-level.","wrong":"from async_typer.async_typer import AsyncTyper","symbol":"AsyncTyper","correct":"from async_typer import AsyncTyper"}],"quickstart":{"code":"import asyncio\nfrom async_typer import AsyncTyper\n\napp = AsyncTyper()\n\n@app.command()\nasync def greet(name: str):\n    \"\"\"Greet someone.\"\"\"\n    await asyncio.sleep(1)\n    print(f\"Hello, {name}!\")\n\nif __name__ == \"__main__\":\n    app()","lang":"python","description":"Basic async command using AsyncTyper."},"warnings":[{"fix":"If you need advanced Typer features, stick to synchronous Typer or wrap async calls manually.","message":"AsyncTyper does not support all Typer features like callback or dependency injection. Use only async commands with simple parameters.","severity":"gotcha","affected_versions":"<=0.1.10"},{"fix":"Pin the version and test after upgrades.","message":"The library is in early development. The API may change without notice.","severity":"deprecated","affected_versions":"<=0.1.10"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install async-typer'","cause":"async-typer not installed.","error":"ModuleNotFoundError: No module named 'async_typer'"},{"fix":"Add 'async' to the function definition.","cause":"Defined a sync function instead of async with @app.command().","error":"TypeError: Command function is not async"},{"fix":"Use regular Typer for callbacks or implement a sync wrapper.","cause":"Using @app.callback() which isn't supported for async functions.","error":"async-typer expects async functions for commands, but typer's callback is sync"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}