Skip to content

mynameisvinn/Kick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kick

Remote code execution with decorators.

Install

Clone this repo and then do python setup.py install.

git clone https://github.com/mynameisvinn/Kick
cd Kick
python setup.py install  # puts kick.ini in home folder

Example

This code snippet executes locally.

def foobar():
    res = 0
    for i in range(3):
        res += i
    print(res)

foobar()  # foobar() evaluated on local machine and prints 3

We can evaluate foobar() on a remote machine (eg ec2) with a single decorator @kick. no ssh, scp, or moving bytes back and forth.

from kick import kick

@kick
def foobar():
    res = 0
    for i in range(3):
        res += i
    print(res)

foobar()  # foobar() remote execution

More examples can be found here

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages