Skip to content

Quick Start — Python

One of the five Orvanta Quick Starts shown on an empty workspace’s Home page. Picking the Hello Orvanta (Python) card opens this script as an unsaved draft in the script editor — nothing is deployed until you save it.

A Python script on Orvanta is a plain def main(...) function — no framework to learn first.

def main(name: str = "Orvanta"):
return {
"message": f"Hello, {name}! This ran as a Python (Python3) script on Orvanta."
}

The name argument has a default, so the auto-generated input form makes it optional — hit Run with no input and it prints “Hello, Orvanta!”.

The draft’s dependency file (requirements.in) is empty — this Quick Start has no third-party packages to install before it runs.

  1. Open an empty workspace’s Home page and click Hello Orvanta (Python) under Orvanta Quick Starts.
  2. Press Run (or Ctrl+Enter) to execute it as-is.
  3. Edit the main function and re-run to see the change reflected immediately.
  4. Click Deploy if you want to keep it in the workspace — otherwise navigate away and the draft is discarded.