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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file argformat-0.0.2.tar.gz.
File metadata
- Download URL: argformat-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f714a5cdfb10c74351c42ca727e964875000e8cec81b2ffb28c8dfbde8a516ac
|
|
| MD5 |
304089e0a0c01e283fca148faf6ccdf0
|
|
| BLAKE2b-256 |
6b6405b0c2e2717d365593337c165a6837e72be0c56244870eaf220173f18536
|
File details
Details for the file argformat-0.0.2-py3-none-any.whl.
File metadata
- Download URL: argformat-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02392b2f07c7633b540c54e9004cf8e1825af4f08d834f26f0901d3b6bf0a6d5
|
|
| MD5 |
2cd3b8d2045e641b9be613cd1e39ab9f
|
|
| BLAKE2b-256 |
f63463119fb109fddb5b2c533aa9522998d1c8a1d9039b3fe7fb7104306377d4
|