$npx skillfedfor your agent

spint

SPatial INTeraction models

Worth itPyPI GISReleased Jun 2026101.4K downloads / moBSD 3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — spint-1.1.0-py3-none-any.whl
v1.1.0 · released 2026-06-17 · Python >=3.12 · 5 runtime deps: libpysal, numpy, scipy, spglm, spreg

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

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'.
Same gist for agents: .md · .json

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.

Worth 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

LicenseBSD 3-Clause permissive
Python supportSupports the current Python release >=3.12
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
libpysalnumpyscipyspglmspreg
MaintenanceActively maintained 58 days since the last release
Last repo commit
First released
Downloads101,387 / month, #12,940 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
spatial interaction modelinggravity model calibrationconstrained spatial modelsspatial interaction analysisentropy maximizing modelsorigin destination flowsspatial count data
Topics
spatial-analysisgravity-modelscount-data
PyPI keywords
spatialstatistics

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 Worth it
PyPI · GIS · released Sep 2025

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.

BSD-3-Clausecompiled wheel · 3.10+
85.8Mdownloads / mo
pyproj Unrated
PyPI · Scientific/Engineering · released Aug 2025

pyproj provides a Python interface to PROJ, enabling cartographic projections and coordinate system transformations for geospatial applications.

MITcompiled wheel · 3.11+
28.0Mdownloads / mo
geopandas Worth it
PyPI · GIS · released Jun 2026

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.

BSD-3-Clausepure Python · 3.10+
24.8Mdownloads / mo
geopy Worth it
PyPI · Python Modules · released Jul 2026

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.

MITpure Python · 3.8+
19.0Mdownloads / mo
pyogrio Worth it
PyPI · GIS · released Jun 2026

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.

MITcompiled wheel · 3.10+
17.2Mdownloads / mo
h3 Worth it
PyPI · GIS · released May 2026

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.

Apache-2.0compiled wheel · 3.10+
12.1Mdownloads / mo

See also mgwr · spglm · spreg · spatial-access · pysal · segregation · inequality · esda · spopt · access