Skip to main content

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


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)

Uploaded Source

Built Distribution

argformat-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for argformat-0.0.3.tar.gz
Algorithm Hash digest
SHA256 db78669f9c5b9c55e2f8784049aa00959a6848c600372087e57f0e78669f6e0d
MD5 762a136775a69546db9ab3f34da4294e
BLAKE2b-256 c7410bc445d0f55f85ea79ca02157c709055828c367c6f91a73d5f9665790bee

See more details on using hashes here.

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

Hashes for argformat-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf7e31f3c193162ef7f8733734db4e614e3a23f0bdadf7af4ccffa82e882991
MD5 31483b76fe6b306a3011133e96cb34ed
BLAKE2b-256 97d991d224156b2af42aae50e1f8830213515b05411e88baa9ced745ae7d9973

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page