Skip to main content

A straightforward workflow tool that is easy to use.

Project description

funcmaster

A straightforward workflow tool that is easy to use.

Usage

Install funcmaster using pip:

pip install funcmaster

Create a file hello_world.py with the following contents:

# pylint: disable=no-value-for-parameter
from funcmaster import operation, process


@operation
def add(context, x, y):
    context.log.info("%i + %i = %i" % (x, y, x + y))
    return x + y


@operation
def subtract(context, x, y):
    context.log.info("%i - %i = %i" % (x, y, x - y))
    return x - y


@process
def hello_world_process():
    subtract(add(1, 2), 3)

Use the funcmaster cli command to execute the process:

funcmaster -m hello_world -p hello_world_process

Win!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for funcmaster, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size funcmaster-0.0.2-py3-none-any.whl (8.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size funcmaster-0.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page