Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

argunparse is intended to perform approximate reverse of argparse

Project Description

The argunparse is intended to perform an approximate reverse of what argparse does. In short: generating string of command-line arguments from a dict and/or a list.

requirements

Python >= 3.5.

No other runtime dependencies.

However, building and running tests requires packages listed in test_requirements.txt.

Tested on Linux, OS X and Windows.

installation

For simplest installation use pip:

pip3 install argunparse

usage

Simple example of how argunparse works:

import argunparse

options = {
    'v': True,
    'long-flag': True,
    'o': 'out_file.txt',
    'log': 'log_file.txt'
    }
args = {
    'in_file.txt'
    }

unparser = argunparse.ArgumentUnparser()
print(unparser.unparse(*args, **options))

for more examples see examples.ipynb notebook.

Release History

Release History

This version
History Node

0.1.0

History Node

0.1.0.dev0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
argunparse-0.1.0-py3-none-any.whl (5.6 kB) Copy SHA256 Checksum SHA256 py3 Wheel Sep 26, 2017
argunparse-0.1.0.tar.gz (13.3 kB) Copy SHA256 Checksum SHA256 Source Sep 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting