Skip to main content

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_duplicate", 2 , delete = True)  # if there is already a value 2 then it willbe deleted                             
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())

responce would looks like
   converted to cli list  ['java', '--helo_duplicate', '1', '--helo_boolean_value', 'script_path_like']
   converted to cli string  java --helo_duplicate 1 --helo_boolean_value script_path_like
#

License

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

Author

Developed and maintained by its-me-abi.

Metadata

Release files for pyargman 0.0.4

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

Source distribution (sdist)

Source distribution for pyargman 0.0.4
File Size Uploaded Provenance Actions
pyargman-0.0.4.tar.gz 3.4 kB Without provenance Details for pyargman-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyargman 0.0.4
File Interpreter ABI Platform Actions
pyargman-0.0.4-py3-none-any.whl Python 3 none any Details for pyargman-0.0.4-py3-none-any.whl

Total release size: 7.1 kB

Release files / pyargman-0.0.4.tar.gz

Download URL pyargman-0.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2fdc9329f5ce7b748cbe3ac71b8ab30779c95e7c7fc67ede7528d459df37ec4a
BLAKE2b-256 checksum
How to use checksums
0fe6dfe1208086005efb119cf05f8a7829e4e66631268e453f79220dc1a6b7d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / pyargman-0.0.4-py3-none-any.whl

Download URL pyargman-0.0.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0c952e4bde313b2d15c114062df55bbf4642670204cccc1aa8c1d77f1fd62c3
BLAKE2b-256 checksum
How to use checksums
d5ed10577cfac6190cd73bd53316a6424b4f12890d309fbf92ca87d5ba4197c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for pyargman 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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