Skip to content

Apps and packages

An app is a folder containing project.toml and the files it names. Keep the folder in your normal development workspace or Git repository.

name = "My App"
entry = "main.py"
sdk = "python"
dependencies = ["requests"]
FieldMeaning
nameThe name shown by Studio.
entryThe Python file to run, relative to the app folder.
sdkThe app SDK. Current Studio apps use python.
dependenciesPython package requirements for this app.
buildOptional shell command for building frontend assets.
publishedWhether the app includes prebuilt frontend assets for distribution.

Studio runs the entry file from the app folder. Relative file paths and local Python imports resolve there.

Python environments

Studio manages a separate virtual environment for each app. It stores environments in its data directory and installs the bundled SDK with its matching runtime dependencies.

Use the packages panel or edit dependencies to declare additional packages. Studio can offer to add a package when a run fails on a missing import.

The app folder contains source files and dependency requirements. Studio creates a virtual environment on the destination machine and installs the required packages there.

Frontend builds

An app that uses a frontend toolchain can declare its build:

build = "npm install && npm run build"

Run the build from Studio’s runtime menu or your terminal. Studio also builds an editable app with a declared command before running it. Published apps use the assets already supplied.

Your Python entry point chooses the folder to serve, such as spatialstudio.serve(files="dist").

Apps and spatial projects

The Studio folder holds application code. A SpatialEngine project holds versioned spatial objects and data. Saving code in Studio does not save an engine project’s state.

Use the engine’s local or remote project API for spatial data that must persist.