Skip to main content

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


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)

Uploaded Source

Built Distribution

tsk_monster-0.0.23-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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