An experimental Python library for graph-based processing, designed for flow-based/node-based visual scripting editors. It is the backbone of the Ryven project, but it can very much be used in other contexts as well.
While ryvencore is written purely in Python, it is very lightweight and highly compatible. It can be compiled with Cython, see the setup_cython.py file. The performance seems comparable so far, but the code hasn't been optimized for Cython yet, so there might be a lot of potential. Please consider contributing. ryvencore also seems compatible with most Python ports to WebAssembly, even the Cython compiled ryvencore.
Installation
pip install ryvencore
or from sources:
git clone https://github.com/leon-thomm/ryvencore
cd ryvencore
pip install .
Usage
As an experimental library, the API is not fully stable and small breaking changes over time should be expected. Generally, the API is defined by what is included in the docs.
Examples
loading a project e.g. exported from Ryven
import ryvencore as rc
import json
import sys
if __name__ == '__main__':
# project file path
fpath = sys.args[1]
# read project file
with open(fpath, 'r') as f:
project: dict = json.loads(f.read())
# run ryvencore
session = rc.Session()
session.load(project)
# access the first flow
f = session.flows[0]
# and the last node that was created
my_node = f.nodes[-1]
# and execute it
my_node.update()
Features
The main features include
- load & save from and into JSON
- a simple and powerful nodes system which lets you do anything, simple and unrestricted
- data and exec flow support - unlike lots of other solutions out there, ryvencore supports exec flows
- variables system with subscribe and update mechanism to build nodes that automatically adapt to change of data
- built-in logging based on python's
loggingmodule - actions system for nodes (WIP)
Licensing
ryvencore is licensed under the LGPL License.
Metadata
Release files for ryvencore 0.5.0
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 |
|---|---|---|---|---|
| ryvencore-0.5.0.tar.gz | 116.7 kB | Without provenance | Details for ryvencore-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ryvencore-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ryvencore-0.5.0-py3-none-any.whl |
Total release size: 167.2 kB
Release files / ryvencore-0.5.0.tar.gz
| Download URL | ryvencore-0.5.0.tar.gz |
|---|---|
| Size | 116.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdc09fcbedc42e62743e3a4255f0325ede47e44ab4ffe17168956ff03bc28e42
|
|
BLAKE2b-256 checksum How to use checksums |
f82720364c87ec329a23f5929d1c2ca31121e226e780f43746bf4fa2759364c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / ryvencore-0.5.0-py3-none-any.whl
| Download URL | ryvencore-0.5.0-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbae42c24f3465585afbd59ba5b7ead6e2a1c975bee939da62a531da2190c836
|
|
BLAKE2b-256 checksum How to use checksums |
bd54714904cb3c67198735bd4c878c1b4cbe7d884b80331147ba13297156ef37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for ryvencore 0.5.0
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.