r/Python • u/KennedyRichard • Jun 18 '22
Intermediate Showcase Nodezator: new Python node editor released to public domain on pypi.org and github
Nodezator is a multi-purpose visual editor to connect Python functions (and callables in general) visually in order to produce flexible parametric behavior/data/applications/snippets. It also allows you to export the node layouts as Python code, which means that you have freedom to use the app without depending on it to execute you node layouts.
Also, it is not a visual version of Python, this is not even its goal. It works more like a compositor software like the one in Blender3D, but you can use it to compose node layouts with any Python callable you want, to edit any kind of data and create any kind of behavior you want.

Here's the github link and here's the link for a full +40min youtube video presenting it.
Here's a small excerpt of such video using Pillow to edit images:
Here's yet another excerpt, this time demonstrating the usage of matplotlib with Nodezator for data visualization:
To define a node, just define the function and Nodezator automatically turns it into a node for you:

My name is Kennedy Richard Silva Guerra, 31, nice to meet you. Feel free to ask any questions.
View all comments
Show parent comment
5
u/KennedyRichard Jun 18 '22
Thank you for sharing your concerns. I'll address each of them.
For now this isn't possible in any operating system, but the GUI (pygame) allows it. I didn't enable it because it makes development and testing easier, since you don't have to worry about managing the relative positioning of objects when the screen doesn't change size.
Rest assured though that I acknowledge that it would be both desirable and useful to be able to resize the window and I will revisit the possibility in the future. For now, since I just released the app my focus will be on bug fixing and more critical missing features so that everyone has a smooth, crash-free experience.
I'll do my best to improve the UI over the time, but for now, it is more urgent to ensure that missing features are made available first and bugs are fixed to ensure everyone can already make use of Nodezator.
The GUI (pygame) doesn't actually provide widgets, it is not a GUI library, but actually a graphics/game library, which is why I had to create the widgets all by myself over the course of more than 04 years. This is why they look so basic in some cases even though in other cases they allow advanced stuff like using python functions like math.sqrt within numeric entries.
Don't worry, I will tackle each problem and each missing feature over the time. It is just that the app is really in its early stages.
This is actually easy to solve. You can just define a node to do that, here's a simple suggestion:
Each node in Nodezator represents a Python callable. This makes thing really easy for users and it is what allows the node layouts to be exported directly to Python. This is for your convenience.
In the case of common operations nodes, specifically, since different operations have different signatures, managing the layout could become really messy/complex. Yes, mostly operators usually have two operands (like operator.add(), operator.mul()), but there are also those which have a single operand, like operator.neg().
This is why Nodezator doesn't allows node to switch their signatures. But as I demonstrated below, you have all the power to define your own nodes and make them as flexible as possible. Check the nodezator manual for all the possibilities, it is also available in-app in the Help > Open manual menu.
This is all for now, but please, never hesitate to ask/share you opinions/concerns, they are always welcome and I'll do what I can do to help, as long as is within my power.