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.0.tar.gz (2.9 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for argsl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e693b1734173ec19c5df20c7b5e280af7be77466129b0a08360b01e6a7fac695
MD5 6c5f9e80a15b299b7bd1be128dd76134
BLAKE2b-256 42df9ae3773346c497630b3e0f6da1c845b7dbd5223c7c4cb56f603e5676939c

See more details on using hashes here.

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

Hashes for argsl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93f43514fa025e694d36cf6140d65890739732f351fa06b8b0bec501a13d4b1b
MD5 db978600c453bbd427aaa54b5d498c92
BLAKE2b-256 cb9ba1b0153469d4f949edb08feea30a288d3781d380315fc2c627622310f6c9

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