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 details)
Built Distribution
File details
Details for the file django_typer-0.4.0b0.tar.gz
.
File metadata
- Download URL: django_typer-0.4.0b0.tar.gz
- Upload date:
- Size: 12.6 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 | bf7940582a8068a92be895f92cbfea1662100736f8276529b6f8eb5ef6cc7e44 |
|
MD5 | d04801e8d1888fa63808ecea18c3b448 |
|
BLAKE2b-256 | 390a27e7cd94d010db5c955a063ffe72524d4a21e2db864889179ab915365323 |
File details
Details for the file django_typer-0.4.0b0-py3-none-any.whl
.
File metadata
- Download URL: django_typer-0.4.0b0-py3-none-any.whl
- Upload date:
- Size: 12.4 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 | 615ff16007b1f77998c24b18782d944dc8a33bfd2a8d56eedd23f28ef28de66b |
|
MD5 | d236d9b656e318542105e5147e8d6e3b |
|
BLAKE2b-256 | 35f016c5ac95950ccec0dad72735befbe33486e5f4c8b71ec4bf99ae8b95a494 |