Skip to main content

A Python module for maangin cli arguments,alternative to argument parser

Project description

pyargman

pyargman is a lightweight Python module for managing command-line arguments,

Features

  • Simple API for building command-line arguments
  • Supports duplicate and boolean arguments
  • Easy conversion to CLI list or string format

Installation

Install pyargman using pip:

pip install pyargman

install from github

git clone https://github.com/its-me-abi/pyargman.git
cd pyargman

Quick Start

Below is an example demonstrating how to use pyargman to manage and convert CLI arguments:

from pyargman import ArgManager

# Initialize argument manager for a CLI command (e.g., "java")
a = ArgManager("java")

# Add arguments
a.set_arg("--helo_duplicate", 1)
a.set_arg("--helo_duplicate", 2)  # Supports duplicate arguments
a.set_arg("--helo_boolean_value", True)  # Argument without a value
a.set_arg("script_path_like", True)

# Convert arguments to list and string formats
print("Converted to CLI list:", a.tolist())
print("Converted to CLI string:", a.toString())

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Developed and maintained by its-me-abi.

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

pyargman-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pyargman-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pyargman-0.0.1.tar.gz.

File metadata

  • Download URL: pyargman-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pyargman-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8fab91e2e161b86d44ef8a18b6c333e45d12fc3efd37e5bc14a51d64bfdb2b24
MD5 f39bc2c33b24690a5339c3aa30b0d602
BLAKE2b-256 047b5819edcc30a11f480ebe9ed1acd5055fa62bbcf41fa8fc830b39a6793005

See more details on using hashes here.

File details

Details for the file pyargman-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyargman-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pyargman-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b291506f5047c8fc1e7b48b671de839a493e9055eb6686dedb356ff804c7ab6
MD5 288bf4d62ae0383ed1acf50980ab652f
BLAKE2b-256 467972d9dab8d5db8605b4c479455447dbcbe711a9768e7408731b790d533b09

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