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.2.0b0.tar.gz
(10.4 kB
view details)
Built Distribution
File details
Details for the file django_typer-0.2.0b0.tar.gz
.
File metadata
- Download URL: django_typer-0.2.0b0.tar.gz
- Upload date:
- Size: 10.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ca7e7ba9c36b07db37f0cc6aea9bcd73981b222ed33a7a6348865e015a86785 |
|
MD5 | 297b999e847cd9f64435b1defa3c698f |
|
BLAKE2b-256 | c6161bfe0fdec072573e0943ad8e0fa2fff2deaf989fc2d5fd59e767c919d5cf |
File details
Details for the file django_typer-0.2.0b0-py3-none-any.whl
.
File metadata
- Download URL: django_typer-0.2.0b0-py3-none-any.whl
- Upload date:
- Size: 9.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54532ad4c366c05439bb2e15726f17fce0bf3a5f30a738efd322aeb6d680d2b |
|
MD5 | a460b8ac8f34638f5ef4b3d040c9a048 |
|
BLAKE2b-256 | 6492f471aed4dd6be19a466a4d6445d7bcca79f7375d997f64dab4d7f72a93b0 |