Skip to main content

ActionTree is a Python (2.7+ and 3.3+) library to execute (long) actions in parallel, respecting dependencies between those actions. You create the graph of the actions to be executed and then call the execute method of its root, specifying how many actions must be run in parallel and if errors should stop the execution.

It’s licensed under the MIT license. It’s available on the Python package index, its documentation is hosted by Python and its source code is 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://pypip.in/py_versions/ActionTree/badge.svg https://pypip.in/status/ActionTree/badge.svg https://img.shields.io/github/issues/jacquev6/ActionTree.svg https://badge.waffle.io/jacquev6/ActionTree.png?label=ready&title=ready 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

Import:

>>> from ActionTree import *
>>> from ActionTree.stock import *

Execute some action:

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

Download files

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

Source Distribution

ActionTree-0.5.0.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file ActionTree-0.5.0.tar.gz.

File metadata

  • Download URL: ActionTree-0.5.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ActionTree-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e3e3d94f3dd88c98f84df0cbcd3ef3ca31110a1add66beac106c7a1554b23e97
MD5 b4c4244649c8b85791eb28ede4673f8f
BLAKE2b-256 ddf5cbecacf71045a7bf8d1acb488e0c8a84182a90165b3aeff685db24472fb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page