Skip to main content

Collection of tools for use in workflows.

Project description

workflow-nodes

workflow-nodes is a collection of tools written in Python 3, which are usable inside a workflow as nodes. Each node is an executable command line tool providing the --xmlhelp interface, which can be used to obtain a machine readable representation of any command line tool and its parameters (see also xmlhelpy).

There are nodes for many different tasks, including data conversion, transport and visualization tools.

Installation

Install and update using pip:

pip3 install workflow-nodes -U

Note that Python version >=3.6 is required.

Some tools require additional dependencies which are not installed by default, as they might require additional setup which can vary for each operating system. These dependencies can be installed by using the extras notation of pip, e.g.:

pip3 install workflow-nodes[<extra>]

Please see the documentation for a list of extra dependencies. If desired, all optional dependencies can also be installed at once using:

pip3 install workflow-nodes[all]

Usage

In order to use a tool, make sure the workflow-node command is runnable from anywhere, please see the documentation for more information. All tools are grouped in different subcommands. To get more information or to get a list of subcommands, the following commands can be used:

workflow-nodes --help
workflow-nodes --commands

To use the tools inside a workflow using kadistudio, they have to be added to the file $HOME/.kadistudio/tools.txt. Afterwards you can insert them using the "Add Tool" context menu option in the editor.

To register all available nodes from this repository at once, use the following command:

workflow-nodes --commands >> ~/.kadistudio/tools.txt

Development

When installing the library from source for development, it is recommended to install the library in editable mode, which simply creates a link to the sources so all changes are reflected in the installed package immediately.

pip3 install -e .[dev]

The command will also install some additional development dependencies as defined in setup.py. Especially for development, it is highly recommended to use a virtual environment, see Virtualenv for more information.

In order to add a new tool, please take a look at the following steps:

  • First, create a fork of this project and clone it. The main repository can be added as an additional remote to the cloned project, often called upstream. Also checkout the development branch, which is currently used as the main development branch.
  • Setup the pre-commit hooks by running pre-commit install.
  • Create a Python file for the tool in the desired package, e.g. in workflow_nodes/report/ and implement the functionality of the tool. You can use other existing tools as a reference. Afterwards, add the implemented function to a fitting subcommand group, e.g. to workflow_nodes/report/main.py.
  • If there are any new dependencies, add them to setup.py with appropriate version ranges, if necessary.
  • Add an entry about any new functionality to HISTORY.md. You may also add yourself as a contributor to AUTHORS.md.
  • Before creating a merge request on the main repository, make sure the GitLab CI runs through successfully in your fork.

Further links

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

workflow_nodes-0.14.0-py3-none-any.whl (95.9 kB view details)

Uploaded Python 3

File details

Details for the file workflow_nodes-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: workflow_nodes-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 95.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for workflow_nodes-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e560b62ed40cfb390cfcdae20e0485c7edce974d64c27ee0246f10eac53047e9
MD5 dca331a6385ae0969a84fb7f94855b0a
BLAKE2b-256 cb041956fbdb25012ca7417ace47dcab0a786ee96ad6fdb9141bfe57312be345

See more details on using hashes here.

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