Skip to main content

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...

Metadata

Release files for argformat 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argformat 0.0.3
File Size Uploaded
argformat-0.0.3.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for argformat 0.0.3
File Interpreter ABI Platform
argformat-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / argformat-0.0.3.tar.gz

Download URL argformat-0.0.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
db78669f9c5b9c55e2f8784049aa00959a6848c600372087e57f0e78669f6e0d
BLAKE2b-256 checksum
How to use checksums
c7410bc445d0f55f85ea79ca02157c709055828c367c6f91a73d5f9665790bee
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / argformat-0.0.3-py3-none-any.whl

Download URL argformat-0.0.3-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf7e31f3c193162ef7f8733734db4e614e3a23f0bdadf7af4ccffa82e882991
BLAKE2b-256 checksum
How to use checksums
97d991d224156b2af42aae50e1f8830213515b05411e88baa9ced745ae7d9973
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page