https://github.com/mynameisvinn/kick
https://github.com/mynameisvinn/kick
remote-execution remote-machine
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mynameisvinn/kick
- Owner: mynameisvinn
- Created: 2020-01-31T20:39:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T11:00:16.000Z (almost 2 years ago)
- Last Synced: 2025-05-17T23:38:56.881Z (about 1 year ago)
- Topics: remote-execution, remote-machine
- Language: Python
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kick
Remote code execution with decorators.
## Install
Clone this repo and then do `python setup.py install`.
```bash
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.
```python
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.
```python
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](https://github.com/mynameisvinn/Kick/tree/master/examples)