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.0.tar.gz
(2.9 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.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file argsl-0.1.0.tar.gz.
File metadata
- Download URL: argsl-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e693b1734173ec19c5df20c7b5e280af7be77466129b0a08360b01e6a7fac695
|
|
| MD5 |
6c5f9e80a15b299b7bd1be128dd76134
|
|
| BLAKE2b-256 |
42df9ae3773346c497630b3e0f6da1c845b7dbd5223c7c4cb56f603e5676939c
|
File details
Details for the file argsl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: argsl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93f43514fa025e694d36cf6140d65890739732f351fa06b8b0bec501a13d4b1b
|
|
| MD5 |
db978600c453bbd427aaa54b5d498c92
|
|
| BLAKE2b-256 |
cb9ba1b0153469d4f949edb08feea30a288d3781d380315fc2c627622310f6c9
|