{"id":23074,"library":"django-typer","title":"django-typer","description":"Use Typer to define the CLI for your Django management commands. Supports the full Typer interface including subcommands, arguments, options, and rich output. Current version 3.7.2, requires Python 3.10+, actively maintained with frequent releases.","status":"active","version":"3.7.2","language":"python","source_language":"en","source_url":"https://github.com/django-commons/django-typer","tags":["django","cli","typer","management-commands","python"],"install":[{"cmd":"pip install django-typer","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required Django project","package":"django","optional":false},{"reason":"CLI framework","package":"typer","optional":false},{"reason":"Rich output formatting","package":"rich","optional":true}],"imports":[{"note":"Do not use BaseCommand; use TyperCommand instead.","wrong":"from django.core.management import BaseCommand","symbol":"TyperCommand","correct":"from django_typer import TyperCommand"}],"quickstart":{"code":"from django_typer import TyperCommand\nimport typer\n\nclass Command(TyperCommand):\n    def handle(self):\n        typer.echo(\"Hello from django-typer!\")\n","lang":"python","description":"Define a management command by subclassing TyperCommand instead of BaseCommand."},"warnings":[{"fix":"Upgrade to Python 3.10 or higher.","message":"django-typer drops support for Python versions below 3.10 starting from v3.0.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Always subclass TyperCommand in management commands.","message":"Commands must use TyperCommand, not BaseCommand. Mixing them may cause unexpected behavior.","severity":"gotcha","affected_versions":"all"},{"fix":"Update to django-typer >=3.6.0 and install typer (not typer-slim).","message":"django-typer uses typer internally; ensure the typer version is compatible. Versions before 3.6.0 used typer-slim.","severity":"gotcha","affected_versions":"<3.6.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install latest: pip install --upgrade django-typer; import from django_typer (not django_typer.management).","cause":"Incorrect import path or old django-typer version (<2.0).","error":"AttributeError: module 'django_typer' has no attribute 'TyperCommand'"},{"fix":"Change to: from django_typer import TyperCommand; class Command(TyperCommand): ...","cause":"Command class inherits from BaseCommand instead of TyperCommand.","error":"django.core.management.base.SystemCheckError: SystemCheckError: ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}