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

This package is intended for Python 3.5 and later. It was tested on 64 bit Ubuntu, but it might work on other systems too.

installation

For simplest installation use pip:

pip3.5 install argunparse

You can also build your own version:

git clone https://github.com/mbdevpl/argunparse
cd argunparse
python3.5 -m unittest discover # make sure the tests pass
python3.5 setup.py bdist_wheel
ls -1tr dist/*.whl | tail -n 1 | xargs pip3.5 install

usage

Simple example of how argunparse works:

import argunparse

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

unparser = argunparse.ArgumentUnparser()
print(unparser.unparse_args(flags, args))

for more examples see examples.ipynb notebook.

Release History

Release History

This version
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.dev0-py3-none-any.whl (6.8 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Sep 7, 2016

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