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.1.0b0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for django_typer-0.1.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac07f097c2ded3530467be57e4e0047ecc01d0374025a80422b939e3d17ea4d |
|
MD5 | 25f947f967aa44ed27ef7ef7d5ca116e |
|
BLAKE2b-256 | 44d0b99b22eb44f7cf3ab38618d2785c75af339b5bf4ac0cad76786901f04201 |