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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for argformat-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f254832491c8760aa348d7bacade7e3c8116f4f02b448a0651921130fce36f |
|
MD5 | a8f6827a78743f5d4cbb2bdc4597b859 |
|
BLAKE2b-256 | 733fb47189401e2e755b78ce52eb9bbd2c75f19342bc29b3c59874b54924fa50 |