Skip to main content

PlanAI Editor Backend and UI Server

Reason this release was yanked:

packaging still broken after trying to make build wheels work

Project description

PlanAI Editor Python Backend

This Python backend serves as the server component for the PlanAI Editor application. It provides the following functionality:

  1. Code Generation: Converts visual graph representations (nodes and edges) from the frontend into executable PlanAI Python code.
  2. Module Loading: Dynamically loads and validates the generated Python modules to ensure they are syntactically correct.
  3. 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 connections
  • disconnect: Handles client disconnections
  • export_graph: Receives graph data from the frontend, generates Python code, and attempts to load it
  • export_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

planaieditor-0.1.1.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

planaieditor-0.1.1-cp310-cp310-manylinux_2_39_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

File details

Details for the file planaieditor-0.1.1.tar.gz.

File metadata

  • Download URL: planaieditor-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.17 Linux/6.11.0-1012-azure

File hashes

Hashes for planaieditor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cbeddfef9831c34bb486f31eaf95fc88afb978e63b35d24f89f1d0798a035001
MD5 5214482a74d857f9178e68048cd323dd
BLAKE2b-256 a7dd6d3ff0f7064b001bc6560abb82cb47e7ccc4b6e4ad8fdbfbf07afda628ec

See more details on using hashes here.

File details

Details for the file planaieditor-0.1.1-cp310-cp310-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for planaieditor-0.1.1-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 294cd2d67624a3ece9e653d925f6574ee9293dac4d74fbd430a30098cb0f4343
MD5 1fdfcdf3375c44b5cb0eb18865b83cdf
BLAKE2b-256 e2fef6dc032594a8a1aa933e9230cb0e6f5cddc7ccb089c8de104046511ea5c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page