Skip to main content
Write a custom Python script locally, then run it on Less with scheduling, logs, notifications, and flexible compute.

1. Install

Requires Python 3.11 or later.

2. Get values from Less

  1. Create a Python asset in Less and save it.
  2. The Local SDK setup modal opens. Copy the generated script into your editor. Reopen it later from the ⋯ menu → Generate local SDK setup.
The top of that script sets three values for local development. The token expires after 24 hours.

3. Run a script

Use the copied os.environ block, then call Less:

4. Run it on Less

Paste the script back into the Python asset — omit the os.environ block. The platform sets those variables when the job runs. Add a schedule if you want it to run regularly.