bodkin-0.1.1
توضیحات
Library to create and execute computation graphs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bodkin-0.1.1 |
| نام | bodkin |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | samflam |
| ایمیل نویسنده | bodkin@samflam.com |
| آدرس صفحه اصلی | https://gitlab.com/samflam/bodkin |
| آدرس اینترنتی | https://pypi.org/project/bodkin/ |
| مجوز | - |
Bodkin is a Python library to create, evaluate, and visualize computation graphs.
# Usage / terminology
`bodkin.Node` - an abstract base class for for a black box that updates its outputs based on its inputs
`bodkin.Atom` - a Node that is a fundamental building block. An Atom provides a function to update its outputs from its inputs. An Atom is what we would conventionally refer to as a node in a graph.
`bodkin.DAG` - a directed acyclic graph that encapsulates a set of Nodes and evaluates them in order of dependency. A DAG consists of Node objects, so it may contain Atoms and/or other embedded DAGs.
Any Node's inputs and outputs may be accessed through its properties `i` and `o`, resepectively. These properties behave like dictionaries but can be linked together so that setting a output on one Node also sets an input on some other Node.
To learn more see the `examples/basic.py` script for a basic usage example or pass an object into `help()`. Feel free to open an issue for further questions.
# Installation
## Dependencies
Basic functionality only relies on the standard library, but visualizing objects via their `show` method requires the `dot` command from [`graphviz`](https://graphviz.org/download/).
## From [PyPI](https://pypi.org/project/bodkin/)
Install using pip
```sh
python3 -m pip install bodkin
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl bodkin-0.1.1:
pip install bodkin-0.1.1.whl
نصب پکیج tar.gz bodkin-0.1.1:
pip install bodkin-0.1.1.tar.gz