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.4.0b0.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for django_typer-0.4.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615ff16007b1f77998c24b18782d944dc8a33bfd2a8d56eedd23f28ef28de66b |
|
MD5 | d236d9b656e318542105e5147e8d6e3b |
|
BLAKE2b-256 | 35f016c5ac95950ccec0dad72735befbe33486e5f4c8b71ec4bf99ae8b95a494 |