Skip to main content

A simple python script manager

Project description

KEWR

A simple python script runner.

Many processes we use python for consist of a set of scripts, with particular inputs and outputs. tskr can be used to track all the scripts in a workflow and run them independently.

For example, our project might include scripts to preprocess some data, do some analysis, then produce some plots. Each of these scripts might take arguments or options. We might complete the sequence like this

python ./preprocess_script.py /path/to/data
python ./analysis_script.py argument_1 --optional-flag  
python ./plotting_script.py /path/to/plot/dir

tskr aims to keep our scripts organized along with their arguments.

Installation

pip install kewr

Usage

First create a new config file

python -m kewr create #creates a new tskr config file in the directory

In this file we define the stages of our script sequence. The config is a .toml file with sections for each stage.

[stage1]
help = "description of what the stage does"
cmd = "python example_script.py --option"
deps = ["/path/to/input/file"]
outs = ["/path/to/output/file"]

List the available stages with

python -m kewr list

Run each stage with

python -m kewr run stage1

You can also run multiple stages at once with

python -m kewr run stage1 stage2 stage3

Or run all stages at once

python -m kewr run all

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

kewr-0.3.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

kewr-0.3.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file kewr-0.3.1.tar.gz.

File metadata

  • Download URL: kewr-0.3.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.8 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for kewr-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2fbbde3894be6d900b961cb4b4b32a0570d155b0dfbf9e3705fa24171c586a17
MD5 c215679d95785d31e0d18a43352cccd9
BLAKE2b-256 2a98b5398a1df54b07325d35a6b9f1ca6062a7dcd8eb6bb4c897df0a262a2c60

See more details on using hashes here.

File details

Details for the file kewr-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kewr-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.8 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for kewr-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4058eb438d9c997f0dbcd2896026be371a72b4a0f3f9ca0c946521975c7d082e
MD5 60168cf2f1b5a924f39b6cc80183ca71
BLAKE2b-256 3643dfe34dcc1a79a6c47256bf06d0e9c8783f2302b4d56beeaad69743194730

See more details on using hashes here.

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