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.3.0b0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

django_typer-0.3.0b0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file django_typer-0.3.0b0.tar.gz.

File metadata

  • Download URL: django_typer-0.3.0b0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.1.0

File hashes

Hashes for django_typer-0.3.0b0.tar.gz
Algorithm Hash digest
SHA256 f4599a3cf1123c94c3b3f4204109e6be98ecaeafec4381c0b3928985a0993542
MD5 ffc16f9f316bbecabf80dc9420d283c1
BLAKE2b-256 9422ad8fd174b2a391b0e9659a03679857fd7747ccb22742f52ad736210b86f7

See more details on using hashes here.

File details

Details for the file django_typer-0.3.0b0-py3-none-any.whl.

File metadata

  • Download URL: django_typer-0.3.0b0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.1.0

File hashes

Hashes for django_typer-0.3.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3da2610a1dfa7c4942d70a3c0f050cefde05dfb9642b1fd89fb0d7fb687225b
MD5 75043b01747c0889777c6a779bda83b5
BLAKE2b-256 5797c81e4eaa614dcf9280ba050ab06d4f279afdf9fe55b78e56db3794b7ae66

See more details on using hashes here.

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