Skip to content

Latest commit

Β 

History

69 Commits

Folders and files

Repository files navigation

Python Spatial SDK Hub Logo

GeoAI & Spatial Python SDK Ecosystem Hub

Unified Governance, Telemetry & Interactive Portfolio Studio for 80 Pure-Python Spatial Intelligence Packages.

Live Dashboard Python 3.12+ License: MIT Packages


πŸ‘‰ Explore the Live Interactive Master Dashboard


πŸ“– Overview

This repository is the single source of truth for a portfolio of eighty pure-Python geospatial and GeoAI SDKs. A single generator script turns a hand-maintained registry plus live PyPI / GitHub / GitLab telemetry into a static, self-contained governance dashboard.

The generated page is a zero-backend HTML application that ships with:

Dashboard tab What it shows
Executive Cockpit KPI cards (LOC, downloads, algorithms, wheel size, releases) and four Chart.js visualizations.
Portfolio Telemetry Sortable, searchable package table with per-package drill-down, license, version and action links.
Econometric Forecasting Bass diffusion and Gompertz S-curve projections of ecosystem adoption through 2027.
Quality & Benchmarks Coverage, memory, throughput, CI status and security audit matrix.
Neural Architecture Interactive HTML5 Canvas topology of the ecosystem data flow.
Developer REPL Studio Copy-ready, syntax-checked code samples for every SDK.
Cite & DOI Zenodo DOI badges plus APA and BibTeX citations for every SDK.

Everything is emitted to docs/, which is deployed directly by GitHub Pages. No database, server, or client-side build step is involved.


🌟 The 80 Pure-Python Geospatial SDKs

Core Spatial, Planning & 3D SDKs

SDK Package PyPI Project License Primary Capabilities
geoai2analytics-sdk PyPI MIT 81 spatial statistics & econometrics algorithms, Moran's I, LISA, GWR/MGWR, Spatial SHAP.
multilayer-sdk PyPI MIT Synchronized 2–8 panel map grids, real-time laser crosshairs, curtain swipe changer.
myface2city PyPI MIT Optical urban portrait engine, variable-radius vector stippling, OSM client, SVG exporter.
NCZ2Geo PyPI GPL-2.0-or-later Proprietary Netcad NCZ/NCA parser, PlanGML zoning identity, official e-Plan symbology.
cad2geo PyPI GPL-2.0-or-later High-speed binary CAD block decompressor, coordinate reprojector, and GeoJSON engine.
osm2threejs PyPI MIT Headless 3D procedural city generation into Three.js WebGL scenes, glTF/GLB & OBJ.
zero2route3d-sdk PyPI MIT 3D DEM slope kinematics, Minetti metabolic energy routing, HMM Viterbi map-matching.
planx-sdk PyPI MIT Spatial planning MCDA (AHP/TOPSIS/ARAS/COPRAS), 28 urban resilience indices, cellular automata.
planx-3d-city PyPI MIT Headless Three.js 3D city builder: GeoJSON, GeoDataFrames and DEMs into a portable browser viewer.
zero2geospatial3d-sdk PyPI MIT Sun hours, shadows, sky view factor, UTCI/PET comfort, noise, flooding and cut/fill on 3D terrain.
nkde PyPI MIT Network kernel density estimation (NKDE / TNKDE) along street networks, with network K-function and hot spots.
arealinterp PyPI MIT Areal interpolation between incompatible zone systems: areal weighting, dasymetric and pycnophylactic methods with volume checks.
isolines PyPI MIT Contour lines and filled contours (isobands) from grids and scattered points: marching squares, valid polygons with holes and GeoJSON output.
segstats PyPI MIT Residential segregation and diversity indices: the five Massey-Denton dimensions, multigroup and spatial indices, local measures and Monte Carlo inference.

Turkey Geodata Toolkits

SDK Package PyPI Project License Primary Capabilities
tr-deprem PyPI MIT Turkish earthquake data in Python: AFAD, Kandilli, USGS and EMSC through one interface.
tr-adres PyPI MIT Parse and normalise free-text Turkish postal addresses, dependency-free.
turkgrid PyPI MIT Zero-dependency coordinate conversion for Turkey: TUREF/ED50 3-degree TM, UTM and EPSG:1784.
tr-imar PyPI MIT Turkish zoning (imar) calculations: TAKS/KAKS, the 30% emsal-disi cap, setbacks, building height, parking and compliance.
tr-donati PyPI MIT Social-infrastructure (donati) area standards for Turkish plans: Mekansal Planlar Yapim Yonetmeligi EK-2.
tr-tbdy PyPI MIT TBDY 2018 seismic design spectra: site coefficients, SDS/SD1, elastic, vertical, displacement and reduced spectra.
tr-acikveri PyPI MIT One client for Turkish CKAN open-data portals: multi-portal search, polite downloads and cp1254 CSV/GeoJSON reading.
tr-nufus PyPI MIT Population projection methods for Turkish plan reports: Iller Bankasi, logistic, cohort-component and MAPE back-testing.
tr-dop PyPI MIT Turkish land readjustment (Zoning Law 3194, Article 18): DOP ratio under the 45% cap, DOP/KOP deductions and new-parcel shares.
tr-yangin PyPI MIT Early-design fire-safety checks under the Turkish fire protection regulation: occupant load, exits, travel distances and stairs.
tr-arsapayi PyPI MIT Value-proportional arsa payi (condominium land share, Law 634 Art. 3) with illustrative, replaceable coefficients and exact integer shares.
tr-gurultu PyPI MIT Turkish environmental noise regulation (2022) helpers: Lgunduz/Laksam/Lgece/Lgag (Lden) indicators, limit checks, construction hours and exposure bands.
tr-bohhbuy PyPI MIT Surveying accuracy checks of the Turkish large-scale mapping regulation (BOHHBUY 2018): traverses, leveling, KOH position tests and area tolerances.

Urban Analytics & Indicators

SDK Package PyPI Project License Primary Capabilities
urban-mcp PyPI MIT Model Context Protocol server with 24 urban planning, mobility and spatial-statistics tools.
openwalkscore PyPI MIT Open, transparent, API-key-free 0-100 walkability scores computed from OpenStreetMap.
sdg11 PyPI MIT UN SDG 11 urban indicators from open data, following UN-Habitat / WHO methodology.
landmix PyPI MIT Land-use mix and diversity indices: entropy, HHI, Simpson, Hill numbers, jobs-housing balance and dissimilarity.
spacematrix PyPI MIT Spacematrix urban density (FSI, GSI, OSR, L, N, T) at lot, island, fabric and district level, with TAKS/KAKS comparison.
isovist PyPI MIT Exact 2D isovists and visibility graph analysis for urban design: isovist measures, intervisibility and VGA.
streetform PyPI MIT Street-network form and connectivity metrics from GeoJSON lines: intersection density, Kansky indices, orientation order and blocks.
parcelform PyPI MIT Parcel and lot geometry metrics from GeoJSON polygons: shape indices, frontage and lot type, depth and width, setback envelopes and subdivision checks.
sprawlmetrics PyPI MIT Urban expansion and sprawl metrics from multi-date built-up rasters: growth rates, Landscape Expansion Index, patch metrics, entropy and SDG 11.3.1.
todindex PyPI MIT Transit-oriented development assessment of station areas: catchments, 3D/5D built-environment indicators, the node-place model and a composite TOD index.

Geodata Quality & Validation

SDK Package PyPI Project License Primary Capabilities
geofix PyPI MIT Fast, dependency-light GeoJSON validator and repairer for the CLI, pre-commit and CI.
gtfslint-cli PyPI MIT Fast, pure-Python GTFS Schedule validator and quality report that runs in CI.
geojson-diff PyPI MIT Feature-level diffs of GeoJSON datasets for git, pull requests and data pipelines.
whatcrs PyPI MIT Guess the coordinate reference system of mystery coordinates, with ranked EPSG candidates.
trackclean PyPI MIT Clean, smooth, segment and measure raw GPS trajectories in pure Python + NumPy.
poi-dedupe PyPI MIT Deduplicate and conflate points of interest from several sources into golden records.

Geodata I/O & Formats

SDK Package PyPI Project License Primary Capabilities
tilefetch PyPI MIT Download XYZ/TMS/WMTS tiles for an area into a GeoTIFF/PNG, MBTiles, PMTiles or z/x/y folder.
bboxkit PyPI MIT Parse, convert and compute bounding boxes in every common convention, antimeridian-safe.
gpkglite PyPI MIT Read, write and validate OGC GeoPackage files in pure Python, without GDAL.
geocsv PyPI MIT Turn any CSV or spreadsheet of places into GeoJSON, GeoPackage, KML or GPX without GDAL.
geoparquet-lite PyPI MIT Read, write and validate GeoParquet 1.0/1.1 with only pyarrow: WKB and native GeoArrow encodings.
coglite PyPI MIT Read windows, pixels and overviews from Cloud-Optimized GeoTIFFs over HTTP(S) or local files with numpy only.
geobatch PyPI MIT Polite, resumable batch geocoding of spreadsheets over Nominatim, Photon, Pelias and API-key providers.

Spatial ML, Sampling & Privacy

SDK Package PyPI Project License Primary Capabilities
spatialcv PyPI MIT Spatial cross-validation splitters for scikit-learn: blocks, buffers, NNDM and kNNDM.
spatialsample PyPI MIT Design-based spatial sampling: GRTS, BAS, LPM, stratified designs and Horvitz-Thompson estimation.
geomask PyPI MIT Geographic masking of confidential point data, with privacy and utility metrics.
mockgeo PyPI MIT Deterministic synthetic geospatial test data: cities, GPS tracks, transit feeds and rasters.

Mobility & Transport Safety

SDK Package PyPI Project License Primary Capabilities
routematrix PyPI MIT Large origin-destination travel-time and distance matrices from OSRM, Valhalla, GraphHopper and openrouteservice.
crashmap PyPI MIT Road-safety network screening: HSM crash frequency, rate, EPDO, Empirical Bayes, negative binomial SPFs and hotspots.
geofencing PyPI MIT Fast, dependency-free geofencing: point-in-fence checks, an R-tree over thousands of fences and enter/exit/dwell events.
bikelts PyPI MIT Bicycle Level of Traffic Stress (LTS 1-4) from OpenStreetMap tags or tables, with low-stress connectivity analysis.
transitfreq PyPI MIT Transit service frequency from a GTFS Schedule feed: trips per hour, headways, span, frequent network and TCQSM bands.
mnlite PyPI MIT Lightweight discrete choice modelling for travel mode choice: multinomial and nested logit by maximum likelihood, elasticities and value of travel time.
aadtkit PyPI MIT Traffic count processing and AADT estimation following the FHWA Traffic Monitoring Guide: AASHTO and hour-based AADT, expansion factors and K/D factors.
streetlos PyPI MIT Multimodal street level-of-service screening: walkway LOS (average and platoon-adjusted), corner and crosswalk circulation, NCHRP 616 pedestrian and bicycle scores.
parkingstudy PyPI MIT Parking occupancy and turnover survey analysis: inventory, occupancy by beat, effective capacity, plate-survey turnover with salted hashing and pricing rules.

Climate & Environmental Health

SDK Package PyPI Project License Primary Capabilities
roadnoise PyPI MIT Screening-level road traffic noise: CNOSSOS-EU source model, ISO 9613 propagation, Lden/Lnight and END exposure.
heatstress PyPI MIT Vectorised heat-stress indices: Heat Index, Humidex, wet bulb, WBGT (Liljegren), UTCI, risk categories and heatwaves.
urbanshadow PyPI MIT Building shadows and sun hours from 2D footprints and heights, with the BRE 209 two-hours-on-21-March test.
lstcalc PyPI MIT Land surface temperature and urban heat island metrics from Landsat 8/9 on NumPy arrays: LST, SUHI and UTFVI.
skyview PyPI MIT Sky view factor and street-canyon geometry: SVF from DSMs or footprints, openness, Oke's canyon formulas and H/W ratios.
depthdamage PyPI MIT Flood damage and risk from depth-damage curves: first-floor heights, return-period event sets, expected annual damage and Monte Carlo uncertainty.
lczlite PyPI MIT Local Climate Zone (Stewart & Oke 2012) classification from urban canopy parameters, with fuzzy range scoring, confidence and mixed-class flags.
greenrule PyPI MIT Urban green space provision and exposure: the 3-30-300 rule, the WHO Europe 300 m indicator, green space per capita, NDVI exposure and equity.

Spatial Interaction & Flows

SDK Package PyPI Project License Primary Capabilities
retailgravity PyPI MIT Retail catchment and spatial interaction models: Huff, MCI, Reilly/Converse and Wilson's constrained gravity models.
odflows PyPI MIT Origin-destination flow toolkit: OD tables, desire lines, zone re-aggregation, flow clustering and Intramax regions.
facloc PyPI MIT Facility location-allocation for public services: p-median, p-center, MCLP, LSCP and capacitated p-median.
tripdist PyPI MIT Trip generation and distribution for the four-step model: regression and cross-classification, growth factors, gravity models and Hyman calibration.

Urban Economics & Demography

SDK Package PyPI Project License Primary Capabilities
urbanscaling PyPI MIT Urban scaling laws Y = Y0 N^beta: OLS, RMA, Huber and NLS fits, bootstrap intervals, linearity tests, SAMIs and panel scaling.
ranksize PyPI MIT City-size distributions: Zipf rank-size regression with the Gabaix-Ibragimov correction, power-law tails, primacy indices and rank clocks.
shiftshare PyPI MIT Regional economic analysis on region x sector tables: location quotients, shift-share decompositions, specialisation indices and economic base multipliers.
homeafford PyPI MIT Housing affordability metrics: price- and rent-to-income, cost burden, residual income, mortgage affordability, a NAR-style index and H+T share.
cohortproj PyPI MIT Cohort-component population projection: life tables, survival ratios, fertility measures, migration, Leslie matrices and the stable population.

⚑ Quick Multi-Install

pip install geoai2analytics-sdk multilayer-sdk myface2city NCZ2Geo cad2geo osm2threejs zero2route3d-sdk planx-sdk planx-3d-city zero2geospatial3d-sdk tr-deprem tr-adres turkgrid urban-mcp openwalkscore sdg11 geofix gtfslint-cli geojson-diff whatcrs trackclean poi-dedupe tilefetch bboxkit gpkglite geocsv spatialcv spatialsample geomask mockgeo routematrix nkde roadnoise geoparquet-lite crashmap heatstress coglite geofencing bikelts geobatch tr-imar tr-donati tr-tbdy tr-acikveri tr-nufus landmix urbanshadow spacematrix retailgravity odflows tr-dop transitfreq isovist lstcalc tr-yangin facloc streetform skyview tr-arsapayi arealinterp urbanscaling ranksize shiftshare homeafford depthdamage lczlite tripdist cohortproj parcelform greenrule sprawlmetrics isolines tr-gurultu mnlite segstats todindex tr-bohhbuy aadtkit streetlos parkingstudy

Each package can also be installed on its own, for example:

pip install cad2geo

πŸš€ Running the Hub Locally

Requirements

  • Python 3.12+ (the generator uses nested f-strings with escapes).
  • Network access is optional but recommended; it enables live PyPI and download statistics.
  • The GitHub CLI (gh) is optional; when authenticated it adds star, fork and issue counts.

Generate the dashboard

git clone https://github.com/YusufEminoglu/python-sdk-governance.git pypi_sdk_governance
cd pypi_sdk_governance

# Regenerate docs/index.html and append today's telemetry snapshot
python generate_pypi_hub.py

The command is idempotent per day: an existing snapshot for the current UTC date is replaced rather than duplicated. The script always exits successfully β€” a failed network call falls back to safe defaults and is reported in the console.

Preview the result

python -m http.server 8000 --directory docs
# then open http://localhost:8000/

You can also open docs/index.html directly in a browser; assets are either inline or referenced from CDNs.


πŸ—‚ Repository Layout

pypi_sdk_governance/
β”œβ”€β”€ generate_pypi_hub.py     # Registry + telemetry collector + HTML generator
β”œβ”€β”€ sdk_history.json         # Rolling 90-day telemetry snapshots
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ index.html           # Generated dashboard (do not edit by hand)
β”‚   β”œβ”€β”€ .nojekyll            # Disable Jekyll processing on Pages
β”‚   └── icons/               # Favicon and logo
β”œβ”€β”€ tests/
β”‚   └── test_registry.py     # Static registry & telemetry integrity tests
β”œβ”€β”€ .github/workflows/
β”‚   └── daily_sync.yml       # Nightly regenerate + GitHub Pages deploy
β”œβ”€β”€ pyproject.toml           # Ruff and pytest configuration
β”œβ”€β”€ README.md
└── LICENSE

Note: docs/index.html is generated output. Edit generate_pypi_hub.py and re-run it instead of patching the HTML directly.


🧩 How the Registry Works

SDK_REGISTRY in generate_pypi_hub.py is the only hand-maintained source of package metadata. Each entry must provide:

Field Purpose
id Stable slug used by the dashboard and modal lookups.
name, pypi, gh_repo Display name, canonical PyPI project, repository name (GitHub or GitLab).
category, tagline Grouping and one-line description.
color, color_glow, gradient Per-package visual identity.
license SPDX-style license identifier (must match the SDK's pyproject.toml).
docs_url, pypi_url, github_url Outbound links; github_url holds the repository URL on github.com or gitlab.com.
pip Copy-ready install command (pip install <pypi>).
algorithms_count Number of documented algorithms/engines.
pure_python, ci_status, coverage, benchmark_speed, memory_overhead Quality and benchmark claims.
bass_m, bass_p, bass_q Bass diffusion parameters used by the forecast tab.
highlights Bullet list shown in the detail modal.
repl_example Valid Python snippet rendered in the REPL tab.

To add a new SDK:

  1. Append a complete entry to SDK_REGISTRY.
  2. Add the repository to local_dir_mapping so source LOC can be scanned.
  3. Add any new category filter to the filter-pills markup.
  4. Run python -m pytest -q β€” the registry tests will flag missing keys or duplicate identifiers.

Telemetry history schema

sdk_history.json is a list of daily snapshots:

[
  {
    "date": "2026-09-06",
    "timestamp": "2026-09-06T17:10:43.924042+00:00",
    "packages": {
      "cad2geo": {
        "version": "0.12.1",
        "downloads_month": 0,
        "stars": 0,
        "releases": 4,
        "pypi_size_kb": 76.1,
        "real_loc": 5507
      }
    }
  }
]

Snapshots are ordered chronologically and capped at 90 entries.


πŸ€– Automation

.github/workflows/daily_sync.yml runs every day at 00:00 UTC (and on pushes to main):

  1. Checks out the repository and installs Python 3.13.
  2. Installs the pinned ruff and pytest versions and runs the lint/format/test gate.
  3. Runs python generate_pypi_hub.py.
  4. Commits docs/index.html when telemetry changed.
  5. Uploads docs/ as a GitHub Pages artifact and deploys it.

No secrets are required. GitHub statistics rely on the workflow token; local runs can use the gh CLI for richer data. GitLab-hosted packages skip the GitHub CLI and read stars, forks and activity dates from the public GitLab API; the dashboard labels their repository links "GitLab".


πŸ§ͺ Development & Quality Checks

python -m pip install pytest ruff

# Static integrity tests for the registry and telemetry log
python -m pytest -q

# Lint and formatting
python -m ruff check .
python -m ruff format --check .

The test suite deliberately does not execute generate_pypi_hub.py; it parses the module with ast so tests remain fast and work offline. It verifies:

  • exactly eighty packages and unique identifiers;
  • required registry fields, install commands and URL conventions (GitHub or GitLab repositories);
  • registry licenses against the expected upstream values;
  • that every REPL snippet is syntactically valid Python;
  • sdk_history.json structure, ordering and retention limit.

πŸ“œ License

The governance hub, documentation, and generator are released under the MIT License (see LICENSE). Individual SDK packages retain their own licenses, as listed in the table above.

Releases

Packages

Contributors

Languages