Parse parameter lists in argparse arguments, e.g. --arg sub1 sub2=val ...
Project description
argparse_subargs
Parse parameter lists in argparse arguments, e.g. --arg sub1 sub2=val ...
- On PyPI: https://pypi.org/project/argparse-subargs/
- On GitHub: https://github.com/v-r-b/argparse_subargs
This module defines:
class SubargParser
Parser for structured sub-arguments of argparse arguments. The subarguments can be positional arguments or keyword-arguments, e.g.: myprog.py --print Welcome Message name=Michael role=brother
class SubargAction
Action class to be used with a SubargParser instance. To do so, use arguments action=SubargAction and subarg_parser= when calling add_parameter() method of ArgumentParser.
class SubargHelpFormatter
Formatter for help when using action=SubargAction in add_parameter() of ArgumentParser.
class PSubarg
Positional subarg description with __eq__ operator.
class KWSubarg
Keyword subarg description with __eq__ operator.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for argparse_subargs-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 498c2a738763ed0c5d8f49b8e309087069aca01b97419f4294939ae04a44962e |
|
MD5 | 7142a1a3df58a3a4e8f6fc54aef07d1a |
|
BLAKE2b-256 | 515eeaaff3634582060dd832e701e7d8350604bd6fd99f28a0a313b4d758ddeb |