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.23.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tsk_monster-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f0942932f4930a45470d5befc6799e5b41891aaf96ef4c0c0853d14477557b |
|
MD5 | 02f0193156eeb9f6e394649df504266c |
|
BLAKE2b-256 | 2455040bc2f5dafe7e010490cb4ab98ae520f5bf797eccc4f1feccfa6f520384 |