Name | computation-graph JSON |
Version | 54 JSON |
download | |
home_page | |
Summary | |
upload_time | 2024-02-25 15:49:17 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3 |
license | |
keywords | |
VCS | |
bugtrack_url | |
requirements | No requirements were recorded. |
Travis-CI | No Travis. |
coveralls test coverage | No coveralls. |
[![Build Status](https://travis-ci.com/hyroai/computation-graph.svg?branch=master)](https://travis-ci.com/hyroai/computation-graph) 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` 1. `mermaid.computation_trace` 1. `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](https://gephi.org/). 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.
{ "_id": null, "home_page": "", "name": "computation-graph", "maintainer": "", "docs_url": null, "requires_python": ">=3", "maintainer_email": "", "keywords": "", "author": "", "author_email": "", "download_url": "https://files.pythonhosted.org/packages/2c/d7/d45d23f4f6f71418032f84afb529021e92ad0de8354758e80459be4c6ea1/computation-graph-54.tar.gz", "platform": null, "description": "[![Build Status](https://travis-ci.com/hyroai/computation-graph.svg?branch=master)](https://travis-ci.com/hyroai/computation-graph)\n\nA function composition framework that supports:\n\n1. State - functions which retain state for their next turn of action.\n2. Prioritized paths - lazily attempt overloaded composition paths according to priorities.\n3. Deep dependency injection - compose a function to a variadic function at the end of an arbitrarily long pipeline.\n4. Non cancerous `asyncio` support.\n\n`pip install computation-graph`\n\nTo deploy: `python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist/;`\n\n### Type checking\n\nThe 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.\n\n### Debugging\n\n#### Computation trace\n\nAvailable computation trace visualizers:\n\n1. `graphviz.computation_trace`\n1. `mermaid.computation_trace`\n1. `ascii.computation_trace`\n\nTo use, replace `to_callable` with `run.to_callable_with_side_effect` with your selected style as the first argument.\n\n#### Graphviz debugger\n\nThis debugger will save a file on each graph execution to current working directory.\n\nYou can use this file in a graph viewer like [gephi](https://gephi.org/).\nNodes colored red are part of the 'winning' computation path.\nEach of these nodes has the attributes 'result' and 'state'.\n'result' is the output of the node, and 'state' is the _new_ state of the node.\n\nIn gephi you can filter for the nodes participating in calculation of final result by filtering on result != null.\n", "bugtrack_url": null, "license": "", "summary": "", "version": "54", "project_urls": null, "split_keywords": [], "urls": [ { "comment_text": "", "digests": { "blake2b_256": "2cd7d45d23f4f6f71418032f84afb529021e92ad0de8354758e80459be4c6ea1", "md5": "da6fc93c4848eefb8b0392fc84c13416", "sha256": "6514ccec3192c3a0e61a5ee9e7f620e50aba184ffce3973a763ebd0798270046" }, "downloads": -1, "filename": "computation-graph-54.tar.gz", "has_sig": false, "md5_digest": "da6fc93c4848eefb8b0392fc84c13416", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 24314, "upload_time": "2024-02-25T15:49:17", "upload_time_iso_8601": "2024-02-25T15:49:17.102089Z", "url": "https://files.pythonhosted.org/packages/2c/d7/d45d23f4f6f71418032f84afb529021e92ad0de8354758e80459be4c6ea1/computation-graph-54.tar.gz", "yanked": false, "yanked_reason": null } ], "upload_time": "2024-02-25 15:49:17", "github": false, "gitlab": false, "bitbucket": false, "codeberg": false, "lcname": "computation-graph" }