Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argsl-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for argsl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e6c1945bfca9050e0f119c5abdd0f35e7adda610241fd9d770083e1c3adb38ff
MD5 4ee70121ad824c96b84729f64cebc587
BLAKE2b-256 8446c47a8ce0b195240943e8cd685d1292380145f28f69bc830c3e1c6fab5996

See more details on using hashes here.

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

Hashes for argsl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca62906cf3f817c0cff0fd4f78de0524f3ffc0c1fa859b862da4960a924fb82e
MD5 3b74174cdb1ac004130f5e99eef48600
BLAKE2b-256 bb5a22d87ffde70d25a64a2b69b07f84cf6377f6443d9e9e43c3d51b005e6dbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page