No project description provided
Project description
tsk.monster
A cute little task runner.
from tsk_monster import run_jobs, tsk
run_jobs(
tsk(
'wget -O large.jpg https://picsum.photos/200/300',
prods=['large.jpg']),
tsk(
'convert -resize 100x large.jpg small.jpg',
needs=['large.jpg'],
prods=['small.jpg']))
Using a tskfile.py
:
from tsk_monster import tsk
def download_image():
yield tsk(
'wget -O large.jpg https://picsum.photos/200/300',
prods=['large.jpg'])
yield tsk(
'convert -resize 100x large.jpg small.jpg',
needs=['large.jpg'],
prods=['small.jpg'])
Then you can run tsk download_image
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tsk_monster-0.0.22.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for tsk_monster-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60be0b43b73fc8d6b354e3209df19dcff297ce3f61535c92b2a51c677364c69 |
|
MD5 | 399bd0b23b405c81ac4a81e5c7275931 |
|
BLAKE2b-256 | 526b43a63d97591f5afacff2a87b0ceaa3fedaccd9471f45128e527b7644316e |