Skip to main content

Executes (long) actions in parallel, respecting dependencies between those actions

Project description

ActionTree is a Python (2.7 and 3.5+) library to execute (long) actions in parallel, respecting dependencies between those actions. You create a dependency graph of actions to be executed and then call the execute function on its root.

It’s licensed under the MIT license. It’s available on the Python package index. Its documentation and its source code are on GitHub.

Questions? Remarks? Bugs? Want to contribute? Open an issue!

https://img.shields.io/travis/jacquev6/ActionTree/master.svg https://img.shields.io/coveralls/jacquev6/ActionTree/master.svg https://img.shields.io/codeclimate/github/jacquev6/ActionTree.svg https://img.shields.io/scrutinizer/g/jacquev6/ActionTree.svg https://img.shields.io/pypi/dm/ActionTree.svg https://img.shields.io/pypi/l/ActionTree.svg https://img.shields.io/pypi/v/ActionTree.svg https://img.shields.io/pypi/pyversions/ActionTree.svg https://img.shields.io/pypi/status/ActionTree.svg https://img.shields.io/github/issues/jacquev6/ActionTree.svg https://img.shields.io/github/forks/jacquev6/ActionTree.svg https://img.shields.io/github/stars/jacquev6/ActionTree.svg

Quick start

Install from PyPI:

$ pip install ActionTree

With dependencies to create Gantt charts and dependency graphs:

$ pip install 'ActionTree[dependency_graphs,gantt]'

Import:

>>> from ActionTree import execute
>>> from ActionTree.stock import CallSubprocess

Execute some action:

>>> link = CallSubprocess(["g++", "a.o", "b.o", "-o", "test"])
>>> link.add_dependency(CallSubprocess(["g++", "-c", "a.cpp", "-o", "a.o"]))
>>> link.add_dependency(CallSubprocess(["g++", "-c", "b.cpp", "-o", "b.o"]))
>>> report = execute(link)

And verify everything went well:

>>> report.is_success
True
>>> os.path.isfile("test")
True

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ActionTree-0.12.0.tar.gz (19.4 kB) Copy SHA256 hash SHA256 Source None Nov 11, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page