Skip to main content

ActionTree is a Python (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://github.com/jacquev6/ActionTree/workflows/Continuous%20Integration/badge.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

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.13.0.tar.gz (19.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ActionTree-0.13.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for ActionTree-0.13.0.tar.gz
Algorithm Hash digest
SHA256 a046f211acb30275fa2b6325839663a4499e84dcbe120b9ddad740066bc834e7
MD5 25762a25ecf6e6757dff5870cda40f58
BLAKE2b-256 ca0c419cae6823992722f315cc94fd5a74017d61b570b0c8eda1ba1f1a18e06f

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