Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install run-core

How to install run-core

  1. Download and install ActivePython
  2. Buy and install the Business Edition license from account.activestate.com
  3. Open Command Prompt
  4. Type pypm install run-core

run-core contains builds that are only available via PyPM when you have a current ActivePython Business Edition subscription.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.0
0.3.0 Available View build log
0.2.0 Available View build log
0.1.6 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Windows (64-bit)
0.3.0
0.3.0 Available View build log
0.2.0 Available View build log
0.1.6 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Mac OS X (10.5+)
0.3.0
0.3.0 Available View build log
0.2.0 Available View build log
0.1.6 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Linux (32-bit)
0.3.0
0.3.0 Available View build log
0.2.0 Available View build log
0.1.6 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
Linux (64-bit)
0.3.0
0.3.0 Available View build log
0.2.0 Available View build log
0.1.6 Available View build log
0.1.5 Available View build log
0.1.3 Available View build log
 
Author
License
MIT License
Dependencies
Depended by

Runs, gets help and lists functions/methods from file with autocompletion. Extendable core/language drivers design.

Installation

Step 1
  • pip install box
Step 2
  • pip install run-python

Example

  • create runfile.py in current working directory:

    def hello(person, times=1):
        """prints 'Hello, {person}, {times} times!'"""
        print('Hello, {person}, {times} times!'.
              format(person=person,
                     times=str(times)))
    
    def nothing():
        """does nothing"""
        pass
    
    OR
    
    class Runclass(object):
    
        def hello(self, person, times=1):
            """prints 'Hello, {person}, {times} times!'"""
            print('Hello, {person}, {times} times!'.
                  format(person=person,
                         times=str(times)))
    
        def nothing(self):
            """does nothing"""
            pass
    
  • get functions/methods list from command line:

    $ run
    hello
    nothing
    
  • autocomplete function/method from command line:

    $ run he<TAB>
    $ run hello
    
  • get function/method help from command line:

    $ run hello -h
    hello(person, times=1)
    prints 'Hello, {person}, {times} times!'
    
  • run function/method from command line:

    $ run hello world times=3
    Hello, world, 3 times!
    

Usage

Command line:

run [-h] [-d DRIVER] [-l LANGUAGE] [-f RUNFILE] [-c RUNCLASS]
    [function] [arguments [arguments ...]]

positional arguments:
  function
  arguments

optional arguments:
  -h, --help
  -d DRIVER, --driver DRIVER
  -l LANGUAGE, --language LANGUAGE
  -f RUNFILE, --runfile RUNFILE
  -c RUNCLASS, --runclass RUNCLASS

Extension

You can write driver for your favorite language. It's all about run/inspect functions -- no script/command line routine need to be implemented. Core automaticly finds language drivers in run_{language}.{Language}Driver form. See Python driver as example - https://github.com/respect31/run-python.

History

0.5.0
  • added user settings
0.4.0
  • added autocompletion
0.3.0
  • added runclass methods running
  • added runfile running by absolute path
  • renamed option filename to runfile
0.2.0
  • added driver seeking in current working directory

Subscribe to package updates

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.