Skip to main content

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:

  1. Spatial Econometrics — Spatial regression, autocorrelation, spillover analysis
  2. Interactive Mapping — Choropleth maps and geographic visualization
  3. Geographic Processing — Shapefiles, GeoJSON, spatial joins
  4. 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

  1. Test coverage at 16.2% — Critical gap
  2. 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

  1. Economic focus — Designed for economic spatial analysis
  2. KRL integration — Works with KRL data connectors
  3. 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

  1. Increase test coverage — From 16% to 80%+
  2. 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


Last updated: December 14, 2025 — Forensic audit verified 16.2% coverage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krl_geospatial_tools-0.2.0.tar.gz (153.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krl_geospatial_tools-0.2.0-py3-none-any.whl (162.8 kB view details)

Uploaded Python 3

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

Hashes for krl_geospatial_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7e130e58d411866c0d8317442e916f218c94cbe5e0ffe06baaa7bc0d2e189cba
MD5 fbdac70852b616cdc2839ce4427d9977
BLAKE2b-256 a74783e695ac2b91ea5153899128837395142dfa2d58b8f8f8f631c2c72d7485

See more details on using hashes here.

File details

Details for the file krl_geospatial_tools-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for krl_geospatial_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57f6b2492941acdc92f931ceaf4b92cb5aed6b664aa582691205f9823376c5d5
MD5 c2e8a729bd5c9999ccfec9fe9c8522a5
BLAKE2b-256 eafd604a6c87e4dadef142d37389c1482907957a1eddb449a795ea64abbb1cea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page