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

Simple tool for creating CLI applications

Project Description


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


import 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
        return x - y

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

$ python -h
usage: [-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 are welcome!

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(1.8 kB) Copy SHA256 Hash SHA256
Source None Apr 21, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate