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.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for argformat-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf7e31f3c193162ef7f8733734db4e614e3a23f0bdadf7af4ccffa82e882991 |
|
MD5 | 31483b76fe6b306a3011133e96cb34ed |
|
BLAKE2b-256 | 97d991d224156b2af42aae50e1f8830213515b05411e88baa9ced745ae7d9973 |