geojson-pydantic
Pydantic data models for the GeoJSON spec.
Decision gist · record as of 2026-08-14
Yes. The package has low install friction, active maintenance, permissive MIT licensing, no security vulnerabilities, and fills a clear need for GeoJSON validation in Python. It's a straightforward choice if you're working with geographic data and want Pydantic's validation guarantees.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency on pydantic.
- Repository is active with a recent commit on 2026-07-24 and no archived status.
License · maintenance · safety
permissive license (permissive) — MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute the software freely provided you include the license notice.
last release 2026-04-07 (129 days) · last repo commit 2026-07-24 · 284 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,121,112 downloads/mo, #4,335 on PyPI
Alternatives
Verify before relying
pip install geojson-pydantic
from geojson_pydantic import Point
point = Point(coordinates=[1.0, 2.0])
print(point.model_dump_json())What it is and what it does
geojson-pydantic wraps the GeoJSON specification (RFC 7946) as a set of Pydantic models, letting you validate, parse, and serialize geographic data structures with type safety. It depends only on pydantic and works with Python 3.9 through 3.14, making it straightforward to integrate into data pipelines that need to handle GeoJSON.
The package is actively maintained, supports current Python versions, and has no known vulnerabilities. It's used for creating or validating GeoJSON objects—Points, LineStrings, Polygons, Features, and FeatureCollections—ensuring data conforms to the RFC 7946 standard before processing or storage.
Use it for
- Validate incoming GeoJSON from APIs or files before storing in a geospatial database.
- Build type-safe geographic data structures in Python applications using Pydantic's validation framework.
- Serialize Python geographic objects to RFC 7946-compliant GeoJSON for REST APIs or client applications.
- Parse and transform GeoJSON from external sources with automatic type checking and error reporting.
- Integrate geospatial data validation into FastAPI or other Pydantic-based web services.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package has low install friction, active maintenance, permissive MIT licensing, no security vulnerabilities, and fills a clear need for GeoJSON validation in Python. It's a straightforward choice if you're working with geographic data and want Pydantic's validation guarantees.
Install
geojson-pydantic on PyPI
Before you install
Low friction install with a single runtime dependency on pydantic. Repository is active with a recent commit on 2026-07-24 and no archived status.
License in practice
MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute the software freely provided you include the license notice.
Quickstart
pip install geojson-pydantic
from geojson_pydantic import Point
point = Point(coordinates=[1.0, 2.0])
print(point.model_dump_json())
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepydantic |
| Maintenance | Actively maintained 129 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,121,112 / month, #4,335 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: GISTyping :: Typed |
Evidence: geojson_pydantic-2.1.1-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 › “geojson validation pydantic”
- geojson-pydanticProvides Pydantic models that validate and serialize GeoJSON data…
- pydantic-geojsonProvides Pydantic-based type-safe validation and models for GeoJSON…
- countryinfoCountryinfo provides a Python interface to query comprehensive…
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 stac-pydantic · pydantic-geojson · geojson · scim2-models · geobuf · antimeridian · djangorestframework-gis · topojson · pydantic · pydantic-xml