This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

argy

Argy is a simple tool for creating CLI programs using python, it tries to remove all the fuzz that comes with the standard library.

Usage

import argy


@argy
def add_numbers(x, y, subtract=False):
    """Adder of numbers
    Just adds two numbers, nothing really special about it

    :param x: The first number
    :type x: int
    :param y: The second number
    :type y: int
    :param subtract: Should we subtract instead?
    :type subtract: bool
    """
    if not subtract:
        return x + y
    else:
        return x - y

This will create a CLI-program with the expected arguments, see also example.py

$ python example.py -h
usage: example.py [-h] [--subtract SUBTRACT] x y

positional arguments:
x                    The first number
y                    The second number

optional arguments:
-h, --help           show this help message and exit
--subtract SUBTRACT  Should we subtract instead?

Contributions

Contributions are welcome!

Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
argy-0.0.2.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Apr 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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