Skip to main content

A small package with functions to manage program arguments

Project description

arg.py Version 0.0.1 Https://GitHub.com/techeditorsrc/arg

This module for managing application arguments or custom arguments from string.

Output is dictionary:

self.arg_list={ "args":[], "options":[] }

Items from list "args" is dictionary: { "type":"item type", "src":"source data", "value":"parsed data" }

Items from list "options" is string values what begin from "-" character

Item types can be: "option": where string begin from "-" character "list": where string converted to an array "data": where not matched as an "option" or a "list"

Parsing parameters is dictionary with keys: "case_sensetive" for values with type "option" "list" for values with other type from "option" can be converted to an array "list_by" is default character for conversion "value" to an array "args" is string with custom arguments, it will select for parsing if not empty

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

arg-package-0.0.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

arg_package-0.0.1-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page