Complete technical guide to develop, configure and publish Python applications inside a server. Designed for human developers and AI assistants who need to generate working apps from these instructions.
Each custom app is a record of the CustomApp that contains:
nameApp display name (e.g. 'Sales Analysis')descriptionBrief description shown in the Store and windowiconEmoji or URL of an uploaded image (desktop icon)source_codeComplete Python code executed on Cloud Runconfig_fieldsArray of configurable parameters (automatically generated form)is_publishedtrue = visible on desktop and in server StoreWhen the user opens the app, the OSAppRunner displays a form generated from config_fields, replaces the placeholders {{PARAM_NAME}} in the code with the entered values, and sends the code to Cloud Run via the executeCodeReal.
The config_fields are an array of objects that define the form fields shown to the user. Each entered value is injected into the code by replacing the placeholder {{field_name}}.
Structure of each field:
Complete example of config_fields for a CSV analysis app:
Note: the file field in field_type allows selecting a file from the File Manager. The injected value will be sandbox:/filename.ext and the content is accessible via SERVER_FILES.
Automatic dictionary with the text content of File Manager files. Accessible without import.
Save a text file to the File Manager by printing the special marker to stdout.
Save an image from URL to the File Manager (automatic download).
Save a URL link as a file in the File Manager (without downloading the content).
| Libreria | Utilizzo |
|---|---|
pandas | DataFrames, CSV/Excel, data analysis |
numpy | Numerical calculations, arrays, linear algebra |
matplotlib | Graphs, visualizations, charts |
requests | Synchronous HTTP calls, REST APIs |
beautifulsoup4 | HTML web scraping, DOM parsing |
httpx | Asynchronous HTTP client, HTTP/2 |
openpyxl | Reading/writing Excel files (.xlsx) |
App with one parameter (file name) that reads a CSV, calculates statistics and saves a PNG chart.
config_fields:
source_code:
App that calls a public API, processes the response and saves a TXT report.
config_fields:
source_code:
App that extracts title and paragraphs from a web page.
config_fields:
source_code:
An AI assistant can create a working app by following these rules:
Le app personalizzate usano lo stesso billing di tutte le app del server: 1 token/minuto di esecuzione e 2 token/file creato nel File Manager. L'uptime del server (5 token/ora con Cloud Run ON) è già attivo. Non ci sono costi extra per la creazione o la pubblicazione di un'app.