Provides a structured formatter for the argparse module
Project description
argformat
Provides a more structured formatter for python's argparse module.
Installation
pip install argformat
Usage
Simply import the StructuredFormatter
and set it as the argparse formatter_class
:
Example
import argparse
from argformat import StructuredFormatter
# Parse arguments
parser = argparse.ArgumentParser(
prog = <Your program>,
description = <Your description>,
formatter_class=StructuredFormatter
)
# Add your arguments normally...
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
argformat-0.0.2.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for argformat-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02392b2f07c7633b540c54e9004cf8e1825af4f08d834f26f0901d3b6bf0a6d5 |
|
MD5 | 2cd3b8d2045e641b9be613cd1e39ab9f |
|
BLAKE2b-256 | f63463119fb109fddb5b2c533aa9522998d1c8a1d9039b3fe7fb7104306377d4 |