Skip to main content

# argstat Beautiful printer for arguments (argparse) inspired by youngnam

## Install ` $ pip install argstat `

## Example 1 ` >>> from argstat import Argstat # ① >>> import argparse >>> >>> parser = argparse.ArgumentParser() >>> input_args = parser.add_argument_group('Input args') >>> input_args.add_argument('--train_target', type=str, >>> default='C', choices=['C', 'C+E']) >>> input_args.add_argument('--test_target', type=str, >>> default='C', choices=['C', 'C+E']) >>> input_args.add_argument('--rec_size', type=int, default=111) >>> input_args.add_argument('--input_size', type=int, default=222) >>> input_args.add_argument('--num_vital', type=int, default=333) >>> input_args.add_argument('--cut_window', type=int, default=444) >>> input_args.add_argument('--skip_prob', type=float, default=555) >>> input_args.add_argument('--skip_mask', type=int, default=666) >>> input_args.add_argument('--target_vital', type=int, default=777) >>> >>> train_args = parser.add_argument_group('Train args') >>> train_args.add_argument('--num_epochs', type=int, default=888) >>> train_args.add_argument('--batch_size', type=int, default=999) >>> train_args.add_argument('--lr', type=float, default=0.1234) >>> >>> base_args = parser.add_argument_group('Base args') >>> base_args.add_argument('--save_path', type=str, default='test long path') >>> base_args.add_argument('--weight_path', type=str) >>> base_args.add_argument('--gpu', type=str, default='1234') >>> base_args.add_argument('--device', type=str) >>> base_args.add_argument('--mode', type=str, default='base', >>> choices=['base', 'single']) # ② >>> >>> argstat = Argstat(parser) >>> print (argstat) `

<img width=”250” alt=”screenshot” src=”https://user-images.githubusercontent.com/3329885/45678036-8eb8b100-bb70-11e8-8205-94c7dcd604a1.png”>

## Example 2 ` >>> ① ~ ② >>> argstat = Argstat(parser, False) >>> print (argstat) `

## Example 3 ` >>> ① ~ ② >>> from six.moves import cStringIO as StringIO >>> argstat = Argstat(parser) >>> print (argstat.print_to(StringIO(), False).getvalue()) `

## Example 4 ` >>> ① ~ ② >>> argstat = Argstat(parser) >>> print (argstat.jsonify()) `

## Example 5 ` >>> ① ~ ② >>> argstat = Argstat(parser) >>> with open("path","w") as fp: >>> argstat.print_to(fp, False) `

Metadata

Release files for argstat 0.1.0

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

Source distribution (sdist)

Source distribution for argstat 0.1.0
File Size Uploaded Provenance
argstat-0.1.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for argstat 0.1.0
File Interpreter ABI Platform
argstat-0.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 8.0 kB

Release files / argstat-0.1.0.tar.gz

Download URL argstat-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4a3e402a877d5e8381d811d0c9748f5ab38b53ac5f2a04e994871290ba759c12
BLAKE2b-256 checksum
How to use checksums
27a55b26d2cccb8b7c07c065062b1d09271e9b20d4aa2050f4f4869bc3b8e8d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

Release files / argstat-0.1.0-py2-none-any.whl

Download URL argstat-0.1.0-py2-none-any.whl
Size 4.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d693da29dc1fda18b3481f906d5c028136d86c84c172b3630345bf90684cc232
BLAKE2b-256 checksum
How to use checksums
a6d81287056ae905090d4e5f1a6d4184128211e418ad3ab61af4c9969c0a9b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

Security for argstat 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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