Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build Status

A function composition framework that supports:

  1. State - functions which retain state for their next turn of action.
  2. Prioritized paths - lazily attempt overloaded composition paths according to priorities.
  3. Deep dependency injection - compose a function to a variadic function at the end of an arbitrarily long pipeline.
  4. Non cancerous asyncio support.

pip install computation-graph

To deploy: python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist/;

Type checking

The runner will type check all outputs for nodes with return type annotations. In case of a wrong typing, it will log the node at fault.

Debugging

Computation trace

Available computation trace visualizers:

  1. graphviz.computation_trace
  2. mermaid.computation_trace
  3. ascii.computation_trace

To use, replace to_callable with run.to_callable_with_side_effect with your selected style as the first argument.

Graphviz debugger

This debugger will save a file on each graph execution to current working directory.

You can use this file in a graph viewer like gephi. Nodes colored red are part of the 'winning' computation path. Each of these nodes has the attributes 'result' and 'state'. 'result' is the output of the node, and 'state' is the new state of the node.

In gephi you can filter for the nodes participating in calculation of final result by filtering on result != null.

Metadata

Release files for computation-graph 39rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for computation-graph 39rc1
File Size Uploaded Provenance Actions
computation-graph-39rc1.tar.gz 21.7 kB Without provenance Details for computation-graph-39rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for computation-graph 39rc1
File Interpreter ABI Platform Actions
computation_graph-39rc1-py3-none-any.whl Python 3 none any Details for computation_graph-39rc1-py3-none-any.whl

Total release size: 153.2 kB

Release files / computation-graph-39rc1.tar.gz

Download URL computation-graph-39rc1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
823d8a28753fcd1867c06dcb412a6bab7b2193d3cebed1d10687d9d788c2cc76
BLAKE2b-256 checksum
How to use checksums
af524b2883e78f6104655335e40c4187f6bae1d2de4cffb9db4d05c539581f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / computation_graph-39rc1-py3-none-any.whl

Download URL computation_graph-39rc1-py3-none-any.whl
Size 131.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f42bc078a001d28d765a888e73fb1925cb27bc7de11f6455c5f3d7b9e3d537c3
BLAKE2b-256 checksum
How to use checksums
0b9807dfd54528c3a9bd574078250fbdb760b6595150614072fac8c0ec2576fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Security for computation-graph 39rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page