Docs

Platform

A server API. It takes a CSV, checks every row, stores the result as a cell dataset, and answers queries and exports.

The platform docs are in Bahasa Indonesia. This page is an English summary.

What it does

  • Accepts CSV with a GID column and value columns.
  • Rejects the whole upload when a row is wrong. The error names the row number. Values are never changed silently.
  • Stores each dataset with a manifest that records the profile, registry and library versions.
  • Never overwrites a dataset. The same upload sent twice returns 409.

Required upload fields

Two fields are required. Without them the upload fails with 422.

  • license: the licence or terms of the source data.
  • share_policy: internal, k_anon_only or public.

Run it locally

terminal
uv sync --extra test
uv run pytest -q
uv run uvicorn geosquare_platform.app:app --reload

Open http://127.0.0.1:8000/docs for the interactive API page.

Settings

VariableWhat it doesDefault
GSQ_PLATFORM_DATAFolder where datasets are storeddata/cells
GSQ_INTERNAL_ROUTESSet to 1 to open internal routes. This is not authentication. Do not set it on a public server.not set

Read more