Skip to main content

ScrewJack is a tiny command line tool for manipulating modules.

Project description

ScrewJack is a tiny command line tool for manipulating modules.

Installation

Install directly by pip:

`sh pip install -U screwjack `

Or, you can use the latest version:

`sh git clone http://github.com/DataCanvasIO/screwjack.git screwjack.git cd screwjack.git pip install -r requirements.txt ./bin/screwjack --help `

Usage

### Initialize a module

You can initialize a module interactively:

` export DATACANVAS_USERNAME=your_username screwjack init `

Or, you can create a module in single command:

` screwjack init --name=Your_Module_Name --description="Some nice description" --version=0.1 --cmd="/usr/bin/python main.py" --base-image=ubuntu `

Then, you will get a directory of your module(in lower case):

` cd your_module_name screwjack --help `

### Add/Remove a ‘Param’ to ‘spec.json’

Add a series of ‘Param’s:

` screwjack param_add your_param_name another_param_name `

Remove a parameter:

` screwjack param_del your_param_name `

### Add/Remove a ‘Input’/’Output’ parameter to ‘spec.json’

Add a series of ‘Input’/’Output’ parameters:

` screwjack input_add your_input_name your_input_type `

Remove a ‘Input’/’Output’ parameter:

` screwjack input_del your_input_name `

### Run module in local/docker mode

Run current module in local mode:

` screwjack run local --PARAM1=1 --PARAM2=2 `

Alternative, you can run in docker:

` screwjack run docker --PARAM1=1 --PARAM2=2 `

### Package and submit module

Package current module into a tar:

` screwjack package `

After that, you can submit your module to spec_server:

` screwjack submit `

About

ScrewJack is licensed under BSD (3-Clause) License, see LICENSE file for detail. Comments and contribution are welcome.

Project details


Download files

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

Source Distribution

screwjack-0.1.1.tar.gz (10.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page