Skip to main content

Use Typer to define the CLI for your Django management commands.

Project description

MIT license PyPI version fury.io PyPI pyversions PyPI djversions PyPI status Documentation Status Code Cov Test Status Code Style

django-typer

Use Typer to define the CLI for your Django management commands. Provides a TyperCommand class that inherits from django.core.management.BaseCommand and allows typer-style annotated function handlers. All of the BaseCommand functionality is preserved, so that TyperCommand can be a drop in replacement.

from django_typer import TyperCommand


class Command(TyperCommand):

    help = 'A command that uses Typer'

    def handle(self, arg1: str, arg2: str, arg3: float = 0.5, arg4: int = 1):
        ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_typer-0.2.0b0.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

django_typer-0.2.0b0-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page