Skip to main content

An easy-to-use Argument Parser that executes functions from string inputs

Project description

Parsegument

An easy to use Argument Parsing and Command Routing library

Read The Docs: https://ryanstudio.dev/docs/parsegument

Installation

pip install parsegument

Quick Start

import parsegument as pg
parser = pg.Parsegumenter() # Create Parsegumenter

group1 = pg.CommandGroup("group1") # Define a Group
parser.add_child(group1) # Add the Group to the main Parsegumenter

@group1.command # Add decorator to create command
def foo(bar:str):
    print(bar)

parser.execute("group1 foo bar_string") # Execute string

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

parsegument-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

parsegument-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file parsegument-0.2.0.tar.gz.

File metadata

  • Download URL: parsegument-0.2.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for parsegument-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ff81fea063a3c270f9b419fd8fd63bfca30927190ad186ee142d0b8af1231e94
MD5 78a4b1d062d258d14529c4527d649efc
BLAKE2b-256 48a13ca4e46e00cdb0df924588e4feec24acd3733e16a9f431cb05d64b1dc6f1

See more details on using hashes here.

File details

Details for the file parsegument-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: parsegument-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for parsegument-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e365be8819226e358c3341acf9277530ac3f6fb09480dfdfbc1872c2d9dcaf31
MD5 17ff82b12173c29a063fea5a765deb1e
BLAKE2b-256 f8905c8f8d5eef481bf23b8e3f9ee78b6b92393f7d1eb341750c2fd6b1ab0697

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