PlanAI Editor Backend and UI Server
Project description
PlanAI Editor Python Backend
This Python backend serves as the server component for the PlanAI Editor application. It provides the following functionality:
- Code Generation: Converts visual graph representations (nodes and edges) from the frontend into executable PlanAI Python code.
- Module Loading: Dynamically loads and validates the generated Python modules to ensure they are syntactically correct.
- WebSocket Communication: Uses Flask-SocketIO to establish real-time communication with the frontend for sending graph data and receiving generated code.
Key Components
- Flask Application: Serves as the main web server
- SocketIO: Handles real-time bidirectional communication with the frontend
- Code Generation: Transforms visual graph data into Python code with proper imports, task definitions, worker definitions, and graph setup
- Black Formatter: Ensures generated code follows consistent formatting standards
API Endpoints
The backend primarily communicates through WebSocket events:
connect: Handles client connectionsdisconnect: Handles client disconnectionsexport_graph: Receives graph data from the frontend, generates Python code, and attempts to load itexport_result: Sends the result of the code generation and loading process back to the frontend
Running the Backend
The server runs on port 5001 by default, separate from the SvelteKit frontend development server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file planaieditor-0.2.tar.gz.
File metadata
- Download URL: planaieditor-0.2.tar.gz
- Upload date:
- Size: 14.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c94deca3e7ecd925cf1caa0fd6529bc4e1f00103d3064ebf6df159950398793
|
|
| MD5 |
029fda97e56bddb4fb0505e18c99921b
|
|
| BLAKE2b-256 |
da3e00890c666bfee322e0692a90f31aa500e771a31efeb2497c1ea7ce68b532
|
File details
Details for the file planaieditor-0.2-cp310-cp310-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: planaieditor-0.2-cp310-cp310-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 14.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd58b003d81aaf69ac3146219463016700e5a193fee41f3c3e1480807b7774e
|
|
| MD5 |
5e8d0da3f16c33be312c4409f7504b35
|
|
| BLAKE2b-256 |
b3820c532e6a18ec7f7dd0a997e208d5e8999ce40dc42c9693523f6645f068ac
|