Geospatial analysis and mapping tools for the Khipu Intelligence Suite
Project description
KRL Geospatial Tools
Version: 1.0.0
License: Proprietary
Python: ≥3.9
Status: Production
SECTION A — Executive & Strategic Overview
What This Repository Does
KRL Geospatial Tools provides spatial analysis capabilities for economic data. It implements:
- Spatial Econometrics — Spatial regression, autocorrelation, spillover analysis
- Interactive Mapping — Choropleth maps and geographic visualization
- Geographic Processing — Shapefiles, GeoJSON, spatial joins
- Geocoding — Address to coordinates and reverse geocoding
Current Maturity Level: PRODUCTION
| Criterion | Status |
|---|---|
| Core spatial methods | ✅ Yes |
| Interactive maps | ✅ Yes |
| Test coverage | ⚠️ 16.2% (749/4632 lines) |
| Documentation | ✅ Partial |
| PyPI published | ⚠️ Not yet |
Strategic Dependencies
- Upstream: krl-premium-backend (API access)
- Downstream: None
- Peer: krl-network-analysis (network + spatial overlap)
Known Gaps Blocking Scale
- Test coverage at 16.2% — Critical gap
- Large codebase — 4632 lines with minimal tests
SECTION B — Product, Marketing & Sales Intelligence
Spatial Capabilities (Verified)
| Capability | Status |
|---|---|
| Spatial regression | ✅ |
| Spatial autocorrelation | ✅ |
| Choropleth maps | ✅ |
| Shapefile processing | ✅ |
| GeoJSON support | ✅ |
| Geocoding | ✅ |
| Spatial clustering | ✅ |
| Distance calculations | ✅ |
Capabilities Safe to Reference in Sales
✅ Can claim:
- "Spatial econometrics for economic data"
- "Interactive choropleth maps"
- "Geographic data processing"
- "Spatial autocorrelation analysis"
❌ Cannot claim:
- "Enterprise-grade reliability" — 16% test coverage
Differentiators
- Economic focus — Designed for economic spatial analysis
- KRL integration — Works with KRL data connectors
- Interactive outputs — Browser-based map visualization
SECTION C — Engineering & Development Brief
Tech Stack
| Component | Technology |
|---|---|
| Language | Python ≥3.9 |
| Geospatial | geopandas, shapely |
| Econometrics | pysal, libpysal |
| Visualization | folium, plotly |
| Data | pandas, numpy |
How to Run
pip install -e ".[dev]"
pytest tests/ -v --cov=src
Known Refactor Targets
- Increase test coverage — From 16% to 80%+
- Add integration tests — End-to-end spatial workflows
SECTION D — Operational & Governance Notes
Maintenance Risks
| Risk | Severity | Mitigation |
|---|---|---|
| Test coverage 16% | HIGH | Add comprehensive tests |
| Large untested codebase | HIGH | Prioritize critical paths |
Ownership
- Team: KR-Labs Engineering
- Escalation: engineering@krlabs.dev
Last updated: December 14, 2025 — Forensic audit verified 16.2% coverage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file krl_geospatial_tools-0.2.0.tar.gz.
File metadata
- Download URL: krl_geospatial_tools-0.2.0.tar.gz
- Upload date:
- Size: 153.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e130e58d411866c0d8317442e916f218c94cbe5e0ffe06baaa7bc0d2e189cba
|
|
| MD5 |
fbdac70852b616cdc2839ce4427d9977
|
|
| BLAKE2b-256 |
a74783e695ac2b91ea5153899128837395142dfa2d58b8f8f8f631c2c72d7485
|
File details
Details for the file krl_geospatial_tools-0.2.0-py3-none-any.whl.
File metadata
- Download URL: krl_geospatial_tools-0.2.0-py3-none-any.whl
- Upload date:
- Size: 162.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f6b2492941acdc92f931ceaf4b92cb5aed6b664aa582691205f9823376c5d5
|
|
| MD5 |
c2e8a729bd5c9999ccfec9fe9c8522a5
|
|
| BLAKE2b-256 |
eafd604a6c87e4dadef142d37389c1482907957a1eddb449a795ea64abbb1cea
|