Skip to main content

A python workflow library

Project description

plumpy

Build status Docs status Latest Version PyVersions License

A python workflows library that supports writing Processes with a well defined set of inputs and outputs that can be strung together.

RabbitMQ is used to queue up, control and monitor running processes via the kiwipy library.

Features:

  • Processes can be remotely controlled by sending messages over RabbitMQ all from a simple interface
  • Progress can be saved between steps and continued later
  • Optional explicit specification of inputs and outputs including their types, validation functions, help strings, etc.

Installation

pip install plumpy

or

conda install -c conda-forge plumpy

Development

This package utilises tox for unit test automation, and pre-commit for code style formatting and test automation.

To install these development dependencies:

pip install tox pre-commit

To run the unit tests:

tox

For the rmq tests you will require a running instance of RabbitMQ. One way to achieve this is using Docker and launching test/rmq/docker-compose.yml.

To run the pre-commit tests:

pre-commit run --all

To build the documentation:

tox -e docs-clean

Changes should be submitted as Pull Requests (PRs) to the develop branch.

Publishing Releases

  1. Create a release PR/commit to the develop branch, updating plumpy/version.py and CHANGELOG.md.
  2. Fast-forward merge develop into the master branch
  3. Create a release on GitHub (https://github.com/aiidateam/plumpy/releases/new), pointing to the release commit on master, named v.X.Y.Z (identical to version in plumpy/version.py)
  4. This will trigger the continuous-deployment GitHub workflow which, if all tests pass, will publish the package to PyPi. Check this has successfully completed in the GitHub Actions tab (https://github.com/aiidateam/plumpy/actions).

(if the release fails, delete the release and tag)

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

plumpy-0.20.0.tar.gz (70.0 kB view details)

Uploaded Source

Built Distribution

plumpy-0.20.0-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

Details for the file plumpy-0.20.0.tar.gz.

File metadata

  • Download URL: plumpy-0.20.0.tar.gz
  • Upload date:
  • Size: 70.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for plumpy-0.20.0.tar.gz
Algorithm Hash digest
SHA256 199183ecf3dfe60fd43ef1cf62542cc4f5ba1b95ebd8a28a5a3a61ae77ff7813
MD5 7ff161e754872e3dcbb98b8869fd0cbe
BLAKE2b-256 7123839163dce36140b98d8c6abba0095b3b7c74d56d6626d74d162c595652ad

See more details on using hashes here.

Provenance

File details

Details for the file plumpy-0.20.0-py3-none-any.whl.

File metadata

  • Download URL: plumpy-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for plumpy-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d46a90b171e8cf0192bad844df05e19ca6540815ff2a907521c4d5d0b123e05f
MD5 099fc5b5dc739e25fb3b548cdc5dcc1d
BLAKE2b-256 cd49d719aee27ff69398cce236913824cbb533cfec4d4e318eb7f1bd4e8d5a36

See more details on using hashes here.

Provenance

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