Use Typer to define the CLI for your Django management commands.
Project description
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for django_typer-0.3.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3da2610a1dfa7c4942d70a3c0f050cefde05dfb9642b1fd89fb0d7fb687225b |
|
MD5 | 75043b01747c0889777c6a779bda83b5 |
|
BLAKE2b-256 | 5797c81e4eaa614dcf9280ba050ab06d4f279afdf9fe55b78e56db3794b7ae66 |