A readable DSL on top of argparse
Project description
argsl
A readable DSL on top of argparse. Define your CLI like:
from argsl import argsl
args = argsl("""
--name|-n <str!> # Required
--age|-a <int=42> # Optional with default
--debug|-d <flag> # Boolean flag
filename <path!> # Required positional
""")
No more boilerplate, just clear CLI definitions.
CLI Entry Point
You can also run:
argsl --name Alice --debug
To test the built-in DSL runner (self-test).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
argsl-0.1.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
argsl-0.1.1-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file argsl-0.1.1.tar.gz.
File metadata
- Download URL: argsl-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c1945bfca9050e0f119c5abdd0f35e7adda610241fd9d770083e1c3adb38ff
|
|
| MD5 |
4ee70121ad824c96b84729f64cebc587
|
|
| BLAKE2b-256 |
8446c47a8ce0b195240943e8cd685d1292380145f28f69bc830c3e1c6fab5996
|
File details
Details for the file argsl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: argsl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca62906cf3f817c0cff0fd4f78de0524f3ffc0c1fa859b862da4960a924fb82e
|
|
| MD5 |
3b74174cdb1ac004130f5e99eef48600
|
|
| BLAKE2b-256 |
bb5a22d87ffde70d25a64a2b69b07f84cf6377f6443d9e9e43c3d51b005e6dbb
|