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.5.0b0.tar.gz
(227.9 kB
view hashes)
Built Distribution
django_typer-0.5.0b0-py3-none-any.whl
(310.3 kB
view hashes)
Close
Hashes for django_typer-0.5.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58cb06581570759884ca10a4b8878b97d727cbcf883b9b529116de06f85858b7 |
|
MD5 | a65c403937893b7d01b1c9f234ad87ab |
|
BLAKE2b-256 | 38138ed7feeaa3ea2843c4a3e30d73e6046b870e2b530c37567614c497280d3a |