Skip to main content Switch to mobile version geosql 0.41.0 Install GeoSQL instructions into local AI CLIs.
pip install geosql==0.41.0 Copy PIP instructions
Claude Code, Codex, GitHub Copilot, OpenCode, and Mistral Vibe skill for data scientists and analysts working with geospatial data on PostGIS, BigQuery, Snowflake, and Wherobots.
Note: No SaaS account needed. Works 100% locally or self-hosted.
4x improvement on geospatial tasks with map in the loop.
With Python (interactive mode):
pip install geosql && geosql GeoSQL first installs the skill into your detected agent. It then checks whether the optional Dekart CLI is ready and, only when needed, asks before installing or initializing it. The prompt shows the exact commands and defaults to the recommended install option.
After installing, prompt your agent like this:
/geosql Show EV charger density along major roads and render a map How to update
Upgrade GeoSQL in the Python environment where it is installed:
pip install --upgrade geosql If you use the optional Dekart CLI, update it too:
pip install --upgrade dekart Then rerun the installer so the latest GeoSQL skill and references are copied to your detected agent:
geosql Version telemetry
GeoSQL sends a best-effort version check with its package version and an opaque random installation ID. GeoSQL and Dekart CLI share the ID at ${XDG_CONFIG_HOME:-~/.config}/dekart/installation_id; deleting that file resets it. Set DO_NOT_TRACK=1 (or DNT=1) to disable the version check before an ID is created. CI sends a reserved non-persisted test ID.
Example prompts to try in your agent:
Real estate analysis:
/geosql Show buildings with low school accessibility in Ottawa, render as a map Site selection:
/geosql Find the top 10 locations for Sporting Goods Store in Seattle based on POI co-location and distance to the nearest competitor. Create a map. EV charging infrastructure:
/geosql create map EV charger density along major Romanian roads, highlighting how many charging stations are within 5 km of each motorway, trunk, or primary road segment. How it works
GeoSQL runs an agent loop with a map in it.
Discovery. The skill explores your warehouse metadata (tables, columns, types) instead of guessing schemas. Works with Overture Maps shares on BigQuery and Snowflake, and your private tables on PostGIS, BigQuery, Snowflake, or Wherobots.
SQL. The agent writes spatial SQL using the right functions for your engine (ST_INTERSECTS, ST_DISTANCE, H3, bbox overlap for partition pruning, and so on).
Cost check. On BigQuery, every query is dry-run first to estimate bytes scanned. A 10 GiB billing cap is enforced by default. Over-budget queries get rewritten cheaper (tighter bbox, lower H3 resolution, more filters) instead of executed.
Geometry validation. The agent computes total area (polygons) or total length (lines) as a sanity check, and cross-checks against domain knowledge.
Map feedback. When available, the agent renders the result through Dekart, looks at the rendered image, and corrects geometry mistakes the text-only loop would miss. This is the loop that gets the 4x improvement.
The skill uses your local CLI authentication (bq, snow, dekart), so warehouse credentials never go to the agent.
GeoSQL ships with a reproducible eval suite under evals/. Each case asserts specific behaviors (cost guardrails, validation steps, correct result), not just "did the agent answer."
Current results on the included suite:
Average: 3,085 tokens per turn, 72 s duration per turn.
The 4x improvement chart above compares the same task set with and without the map-in-loop step. Without maps, the agent's text-only validation misses geometry-class errors (mistaking a neighborhood polygon for a metro-area perimeter, double-counting overlapping features, picking the wrong join key on coordinate-reference systems). Adding the rendered map as a tool call lets the agent see those mistakes and self-correct.
Run the suite yourself:
python evals/run.py See evals/RUNBOOK.md for setup and how to add new cases. PRs with new evals welcome.
Released: Dec 2, 2026
MIT View SPDX License List
Release files for geosql 0.41.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 7.5 MB
Release files / geosql-0.41.0.tar.gz
Release files / geosql-0.41.0-py3-none-any.whl
Security for geosql 0.41.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 2, 2026 2 release files No provenance
Nov 9, 2026 2 release files No provenance
Oct 9, 2026 2 release files No provenance
Sep 22, 2026 2 release files No provenance
Aug 31, 2026 2 release files No provenance
Aug 30, 2026 2 release files No provenance
Aug 20, 2026 2 release files No provenance
Aug 19, 2026 2 release files No provenance
Aug 18, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 23, 2026 2 release files No provenance
Jul 22, 2026 2 release files No provenance
Jul 17, 2026 2 release files No provenance
Jul 16, 2026 2 release files No provenance
Jun 30, 2026 2 release files No provenance
Jun 18, 2026 2 release files No provenance
Jun 17, 2026 2 release files No provenance
Jun 16, 2026 2 release files No provenance
Jun 8, 2026 2 release files No provenance
Jun 4, 2026 2 release files No provenance
Jun 3, 2026 2 release files No provenance
May 16, 2026 2 release files No provenance
May 11, 2026 2 release files No provenance
May 9, 2026 2 release files No provenance
May 7, 2026 2 release files No provenance
Apr 29, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 147871d











