More complex code (Orchestrate)

For advanced operations that exceed what’s practical or performant in a browser-based Pyodide environment, you can integrate Orchestrate:

  1. Create a Dockerized Script: Bundle your Python code—complete with any libraries—into a container.
  2. Expose as an API Endpoint: Configure an incoming webhook or endpoint that your form can call.
  3. Trigger from the Front End: Use the requests library in your Code Editor to send data to your Orchestrate endpoint.
  4. Automatic Triggers (Optional): Orchestrate can also listen for item status changes or other platform events, removing the need for direct user interaction.

Example Use Cases

  • Long-Running Model Inference: A large number of inference calls that wouldn’t be feasible in the browser.
  • Batch Processing: Transform or aggregate data across multiple items.
  • External Integrations: Webhooks to external services, scheduled tasks, or cross-project synchronization.

For details on setting up Orchestrate pipelines, see the Main Orchestrate Documentation.