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.24.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tsk_monster-0.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1ad9bd945c03fe68ee020e4487986800a708bf83378680c7746adc89b16c22 |
|
MD5 | baeebe5fda452befaf68a11faf8fb47f |
|
BLAKE2b-256 | 13065ff3e30ee9300bfbb22b2b3122e1a9149a752b3b070f65ee7f671722545f |