This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Broken release
GraphExec
GraphExec is a tool for executing litegraph.js graphs on a server, with node operations implemented as Python functions.
Slot types can be any Python types, including NumPy arrays and custom, opaque classes.
It runs as a REST back-end for litegraph.js with some aftermarket modifications, or as a command-line tool. Generating JavaScript code for client-side stub nodes (with slots, properties and widgets, but no business logic) is also possible, based on decorators added to the node implementation.
For each node, server-side code can return image results (including Matplotlib figures).
The project is in an alpha development stage; for example, litegraph.js built-in nodes are not implemented, and there is no support for the REST back-end in the upstream library.
Usage
With my_node_types.py:
from graphexec import node_type
from .my_implementation import _perlin_noise
@node_type.define("my_package/perlin_noise", "Perlin noise")
@node_type.input("width", "number")
@node_type.input("height", "number")
@node_type.output("map", "numpy.ndarray")
def perlin_noise(width, height):
return dict(map=_perlin_noise(int(width), int(height)))
NODE_TYPES = [
perlin_noise,
]
graphexec-generate-js-module -o ../litegraph/src/nodes/my-package-generated.js my_node_types
env PYTHONPATH=. graphexec-server --wwwroot ../litegraph -m my_node_types
Format check
black --diff **.py
Type check
mypy graphexec
Metadata
Release files for graphexec 0.0.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 | |
|---|---|---|---|
| graphexec-0.0.1.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphexec-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / graphexec-0.0.1.tar.gz
| Download URL | graphexec-0.0.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b87136af305d1e61147e6916162cccef2e5868928b41a08be854e9db20e242da
|
|
BLAKE2b-256 checksum How to use checksums |
1140c9c5f70fc80dacd8b86f380018a69baf07081bbda496aff05eda2a2ad3da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
|
Release files / graphexec-0.0.1-py3-none-any.whl
| Download URL | graphexec-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14251bacf1953b3a9bed2fc76c5f1244a239671a3ac863a687a6031b704328d5
|
|
BLAKE2b-256 checksum How to use checksums |
515d2887cca12c902ebb07140c390b75fe6a2f2aa615e0a9e379d38313341853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
|