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 details)
Built Distribution
File details
Details for the file argformat-0.0.3.tar.gz
.
File metadata
- Download URL: argformat-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db78669f9c5b9c55e2f8784049aa00959a6848c600372087e57f0e78669f6e0d |
|
MD5 | 762a136775a69546db9ab3f34da4294e |
|
BLAKE2b-256 | c7410bc445d0f55f85ea79ca02157c709055828c367c6f91a73d5f9665790bee |
File details
Details for the file argformat-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: argformat-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf7e31f3c193162ef7f8733734db4e614e3a23f0bdadf7af4ccffa82e882991 |
|
MD5 | 31483b76fe6b306a3011133e96cb34ed |
|
BLAKE2b-256 | 97d991d224156b2af42aae50e1f8830213515b05411e88baa9ced745ae7d9973 |