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 details)
Built Distribution
File details
Details for the file django_typer-0.5.0b0.tar.gz
.
File metadata
- Download URL: django_typer-0.5.0b0.tar.gz
- Upload date:
- Size: 227.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ce91e2f3e1077e550f41ec22cf3d7803f1be82bf5a066a7074fd43c3e2bfff |
|
MD5 | ae5f386511beed5183d4bb79be133fcf |
|
BLAKE2b-256 | 8ac38886a83898ea8ac7c1f5783d301f140303bc581175f70006da4dd4f8b3c4 |
File details
Details for the file django_typer-0.5.0b0-py3-none-any.whl
.
File metadata
- Download URL: django_typer-0.5.0b0-py3-none-any.whl
- Upload date:
- Size: 310.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58cb06581570759884ca10a4b8878b97d727cbcf883b9b529116de06f85858b7 |
|
MD5 | a65c403937893b7d01b1c9f234ad87ab |
|
BLAKE2b-256 | 38138ed7feeaa3ea2843c4a3e30d73e6046b870e2b530c37567614c497280d3a |