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!

runp exports Python functions from files to the command line

Project Description

runp exports Python functions from files to the command line. You don’t need to change your existing code.

If you have a file named with:

def foo():
    """beeps a lot"""
    print "beep beep"

def bar(text):
    """Prints things

        text (str): The text to print
    print text

And you want to run it in the command line just do:

$ runp foo
beep beep

You can also pass arguments to your functions:

$ runp bar:"this is sweet!"
this is sweet!

Functions with names starting with _ are hidden.

You can list available functions with:

$ runp -l
Available functions:
foo    beeps a lot
bar    Prints things

And get info on a specific function:

$ runp -d bar
Displaying docstring for function bar in module myfile

    Prints things

        text (str): The text to print

Syntax for calling functions is:

$ runp function_name:arg1value,arg2=arg2value

The concept, syntax for commands and initial code are heavily inspired by fabric’s task system.

Release History

Release History

This version
History Node


History Node


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
runp-0.0.2.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Nov 17, 2015

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