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

Uploaded Source

Built Distribution

argformat-0.0.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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