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.
From PyPI
Install using pip
python3 -m pip install bodkin
Metadata
Release files for bodkin 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bodkin-0.1.1.tar.gz | 10.2 kB | Without provenance | Details for bodkin-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bodkin-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for bodkin-0.1.1-py3-none-any.whl |
Total release size: 20.8 kB
Release files / bodkin-0.1.1.tar.gz
| Download URL | bodkin-0.1.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82f540e745f01b1fb81d54ee0bfa5c55e01dcbafd9451ed845766f55ba2dd113
|
|
BLAKE2b-256 checksum How to use checksums |
6d65c815bdc3b37ca730f223c7d1e36add1ee498d11f8261847befb3924ae36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / bodkin-0.1.1-py3-none-any.whl
| Download URL | bodkin-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e461a8f3e06cfeb24632cbf283cee63b7691bd8ffcf8b5899547c4ab395b6730
|
|
BLAKE2b-256 checksum How to use checksums |
13ec68c0a8d46423f713cf395adf0d2b723bea337afc484961423eeccdefe354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for bodkin 0.1.1
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.