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.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argformat-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file argformat-0.0.1.tar.gz.

File metadata

  • Download URL: argformat-0.0.1.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

Hashes for argformat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1bdea9c398d5afaf7b1ea4ae4e12a7859d60efbadd34e0e792776697fb91f833
MD5 66853cb60ae0569e8168c2a19d9dacee
BLAKE2b-256 cf6b521cac2fa317f7c78a56de677cb006b4944953ced760c55c1c96cc387dce

See more details on using hashes here.

File details

Details for the file argformat-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: argformat-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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

Hashes for argformat-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f254832491c8760aa348d7bacade7e3c8116f4f02b448a0651921130fce36f
MD5 a8f6827a78743f5d4cbb2bdc4597b859
BLAKE2b-256 733fb47189401e2e755b78ce52eb9bbd2c75f19342bc29b3c59874b54924fa50

See more details on using hashes here.

Supported by

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