Skip to main content

parguments

A simple cli args parser for Python.

Useful for creating command-line scripts.

Example

"""
catsup v1.0

Usage:
    catsup init [<path>]
    catsup build
    catsup deploy
    catsup -h | --help
    catsup --version

Options:
    -h --help             Show this screen and exit.
    -s --settings=<file>  path to config file. [default: config.json]
"""
from parguments import Parguments

parguments = Parguments(__doc__, version='1.0')

@parguments.command
def init(path):
  """
  Usage:
    catsup init [<path>]

  Options:
    -h --help             Show this screen and exit.
    -s --settings=<file>  path to setting file. [default: config.json]
  """
  pass

@parguments.command
def build(settings):
  """
  Usage:
    catsup build [-s <file>|--settings=<file>]

  Options:
    -h --help             Show this screen and exit.
    -s --settings=<file>  path to setting file. [default: config.json]
  """
  pass

@parguments.command
def deploy(settings):
  """
  Usage:
    catsup deploy [-s <file>|--settings=<file>]

  Options:
    -h --help             Show this screen and exit.
    -s --settings=<file>  path to setting file. [default: config.json]
  """
  pass

if __name__ == '__main__':
  parguments.run()

Documents at http://parguments.rtfd.org/

Release files for parguments 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parguments 0.3.2
File Size Uploaded
parguments-0.3.2.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parguments 0.3.2
File Interpreter ABI Platform
parguments-0.3.2-py2.7.egg Legacy Egg format - - Details

Total release size: 14.0 kB

Release files / parguments-0.3.2.tar.gz

Download URL parguments-0.3.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a58340fa8578aba50243e57399ec9efaf77f5e0c47c2c3435ec38d9cefec528f
BLAKE2b-256 checksum
How to use checksums
3118fc5de25e446e16088eed5ca9fc9953645ab8cf6e3e50f90f85c2a0bdd1b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / parguments-0.3.2-py2.7.egg

Download URL parguments-0.3.2-py2.7.egg
Size 9.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
b8676bd877596233d82ae29359eb22a62bc6f06793cfe4d6c3b880ea73a02060
BLAKE2b-256 checksum
How to use checksums
3b9854faf9a63762973f25f5475aadcfdcf9c7e4b2462cff91bdd203eb0f41a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page