Read-only mirror of https://github.com/opendatabs/datasette-bs — Kanton Basel-Stadt. Issues & pull requests at the source.
  • CSS 51.3%
  • HTML 36.1%
  • Python 9.9%
  • Dockerfile 2.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Orhan Saeedi d092179981
Merge pull request #13 from opendatabs/renovate/ghcr.io-astral-sh-uv-0.x
Update ghcr.io/astral-sh/uv Docker tag to v0.13.12
2026-12-02 09:37:45 +01:00
.github/workflows Migrate to build Docker on github setup with uv 2026-11-25 14:04:40 +01:00
data Add request-guard plugin and further settings to make Datasette stable 2026-11-25 17:23:00 +01:00
plugins Add request-guard plugin and further settings to make Datasette stable 2026-11-25 17:23:00 +01:00
static/bs Add relative URL plugin and update Docker Compose settings 2026-11-05 17:07:33 +01:00
templates Update metadata and templates for clarity and improved UI 2026-11-03 23:12:42 +01:00
.env.example Add .env.example and LICENSE files 2026-06-01 12:00:02 +02:00
.gitignore Enhance project structure and styling 2026-06-01 15:45:36 +02:00
Dockerfile Update ghcr.io/astral-sh/uv Docker tag to v0.13.12 2026-12-02 00:16:37 +00:00
LICENSE Add .env.example and LICENSE files 2026-06-01 12:00:02 +02:00
pyproject.toml Add request-guard plugin and further settings to make Datasette stable 2026-11-25 17:23:00 +01:00
README.md Migrate to build Docker on github setup with uv 2026-11-25 14:04:40 +01:00
renovate.json Add renovate.json 2025-05-14 13:27:37 +00:00
uv.lock Add request-guard plugin and further settings to make Datasette stable 2026-11-25 17:23:00 +01:00

Datasette Basel-Stadt

Source for the Datasette instance (plugins, templates, static assets, data/metadata.yml). A GitHub Actions workflow (.github/workflows/docker.yml) builds the image and pushes it to ghcr.io/opendatabs/datasette-bs (latest on the default branch, plus sha-… and tag versions).

The image contains everything except the data: put *.db files and the generated counts.json in /mnt/data. Running the container (docker compose, CI) lives in the internal GitLab deploy project.

Python dependencies are managed with uv (pyproject.toml + uv.lock).

Local development

uv sync
cp .env.example .env   # GitHub auth values
uv run datasette inspect data/*.db --inspect-file=data/counts.json --load-extension=spatialite
uv run datasette serve -i data/*.db --inspect-file=data/counts.json --metadata data/metadata.yml \
  --template-dir=templates --plugins-dir=plugins --static bs:static/bs --load-extension=spatialite

SpatiaLite must be installed locally (brew install spatialite-tools).

Dependencies

Add or upgrade a plugin with uv add <package>==<version> (or uv lock --upgrade-package <package>), commit pyproject.toml and uv.lock, and merge to main; the workflow publishes a new image. Renovate opens PRs for version bumps.