spint
SPatial INTeraction models
Decision gist · record as of 2026-08-14
Yes. SpInt is actively maintained, has no known vulnerabilities, low install friction, and fills a specialized but well-defined niche in spatial interaction modeling. The BSD 3-Clause license is permissive. Install it if you need to calibrate gravity or constrained spatial interaction models; skip it if your work does not involve origin-destination flow analysis.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later; depends on scipy, numpy, and libpysal for spatial data structures.
- Low install friction; pure Python wheel.
- Actively maintained with a recent release (58 days old) and current Python 3.12+ support.
License · maintenance · safety
BSD 3-Clause (permissive) — BSD 3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
last release 2026-06-17 (58 days) · last repo commit 2026-07-07 · 58 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,387 downloads/mo, #12,940 on PyPI
Alternatives
Verify before relying
pip install spint
import spint
from spint import gravity
# Calibrate a spatial interaction model with your origin-destination flow data- Whether local subset calibration produces parameter estimates suitable for direct mapping without post-processing.
- Performance characteristics when working with large origin-destination matrices or high-dimensional spatial weights.
- Current status of Spatial Autoregressive (Lag) model implementation listed as 'In Progress'.
What it is and what it does
SpInt is a spatial interaction modeling library that calibrates gravity-type models for analyzing flows between geographic origins and destinations. It implements the Wilson (1971) family of entropy-maximizing models, supporting unconstrained, production-constrained, attraction-constrained, and doubly-constrained variants. All models are fit using iteratively weighted least squares in a generalized linear modeling framework, with results verified against comparable R and statsmodels routines.
The package is designed for researchers studying spatial interaction processes—such as migration, trade, or commuting patterns. It provides Poisson and QuasiPoisson estimation, overdispersion tests, model fit statistics (including Moran's I for spatial autocorrelation), local subset calibration for mappable parameter estimates, and three types of spatial weights (origin-destination contiguity, network-based, and vector distance). Sparse data structures are used for memory efficiency and speed.
Use it for
- Calibrate gravity models to predict origin-destination flows (e.g., commuting, migration, or trade volumes) from population and distance data.
- Test spatial autocorrelation in interaction residuals using vector-based Moran's I to detect model misspecification.
- Fit production- or attraction-constrained models when total outflows or inflows are known but individual flows must be estimated.
- Generate mappable local parameter estimates and diagnostics by calibrating models on spatial subsets.
- Compare overdispersion across Poisson and QuasiPoisson specifications to assess model adequacy for count data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
SpInt is actively maintained, has no known vulnerabilities, low install friction, and fills a specialized but well-defined niche in spatial interaction modeling. The BSD 3-Clause license is permissive. Install it if you need to calibrate gravity or constrained spatial interaction models; skip it if your work does not involve origin-destination flow analysis.
Install
spint on PyPI
Before you install
Low install friction; pure Python wheel. Actively maintained with a recent release (58 days old) and current Python 3.12+ support. Depends on established scientific stack (numpy, scipy, libpysal, spglm, spreg).
Requires Python 3.12 or later; depends on scipy, numpy, and libpysal for spatial data structures.
License in practice
BSD 3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.
Quickstart
pip install spint
import spint
from spint import gravity
# Calibrate a spatial interaction model with your origin-destination flow data
Verify before relying
- Whether local subset calibration produces parameter estimates suitable for direct mapping without post-processing.
- Performance characteristics when working with large origin-destination matrices or high-dimensional spatial weights.
- Current status of Spatial Autoregressive (Lag) model implementation listed as 'In Progress'.
Package facts
| License | BSD 3-Clause permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packageslibpysalnumpyscipyspglmspreg |
| Maintenance | Actively maintained 58 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,387 / month, #12,940 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: GIS |
Evidence: spint-1.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “spatial interaction modeling”
- spintSpInt calibrates spatial interaction models (gravity,…
- spregspreg estimates simultaneous autoregressive spatial regression models…
- gstools-cythonProvides optimized Cython implementations of geostatistical…
Give your agent the search over MCP, or paste the wish link into any chat.
More GIS packages
Shapely provides Python tools for creating, manipulating, and analyzing 2D geometric objects (points, lines, polygons) using the GEOS library, with both scalar and vectorized NumPy-based operations.
pyproj provides a Python interface to PROJ, enabling cartographic projections and coordinate system transformations for geospatial applications.
GeoPandas extends pandas DataFrames to handle geographic data, combining pandas operations with shapely geometry and spatial analysis capabilities that would otherwise require a spatial database.
Install it if you work with geographic data in Python and want to avoid setting up a spatial database or learning a separate GIS tool.
geopy is a Python client for geocoding and distance calculation that converts addresses to coordinates and vice versa using multiple web-based geocoding services, and computes geodesic and great-circle distances between geographic points.
Install it if you need geocoding or distance calculations in your application.
Pyogrio provides fast, bulk-oriented read and write access to vector spatial data formats (Shapefile, GeoPackage, GeoJSON, etc.) via GDAL/OGR bindings, typically for use with GeoPandas GeoDataFrames.
h3 provides Python bindings to Uber's H3 geospatial indexing library, converting geographic coordinates into hierarchical hexagonal grid cells and performing spatial operations on them.
See also mgwr · spglm · spreg · spatial-access · pysal · segregation · inequality · esda · spopt · access