Skip to main content

civic-data-boundaries-us-mn-precincts

DOI PyPI Python 3.14 License: MIT CI Status Docs

Civic Boundary Data for Civic Interconnect for Minnesota precincts.

Source

GeoJSON files

GeoJSON is a geospatial data format based on JSON (JavaScript Object Notation) designed for use in online applications. They include voting precinct boundaries as well as the name, county, and election districts (US Congress, MN Senate and House, County Commissioner) for each precinct.

These files are intended to provide basic information regarding the location of election districts within the state. For the most accurate information on precincts and districts, as well as polling place information, please use the Polling Place Finder.

Current Snapshot

The current statewide source reports:

  • Source date: 2026-05-01
  • Snapshot version: 2026-05
  • Source: Minnesota Secretary of State statewide precinct GeoJSON

Snapshot version and date are derived automatically from the source metadata.

For state and county boundaries, see civic-data-boundaries-us.

Process

Official source:
https://www.sos.mn.gov/media/2791/mn-precincts.json

        ↓

Read top-level source date:
"May 1,2026"

        ↓

Normalize:
snapshot_date = "2026-05-01"

        ↓

Derive:
snapshot_version = "2026-05"

        ↓

Save downloaded input:
data-in/states/minnesota/precincts_2026-05.json

        ↓

Build output:
data-out/states/minnesota/precincts/2026-05/

        ↓

Add to every output feature:
snapshot_version = "2026-05"
snapshot_date = "2026-05-01"

Installation

uv add civic-data-boundaries-us-mn-precincts

or with pip:

pip install civic-data-boundaries-us-mn-precincts

The command-line interface is installed as:

civic-us-mn --help

Usage

Refresh the current Minnesota precinct snapshot from the official statewide source:

civic-us-mn refresh

The refresh command:

  1. Downloads the current statewide GeoJSON from the Minnesota Secretary of State.
  2. Reads and normalizes the source date.
  3. Derives the snapshot version from the source date.
  4. Writes the downloaded source under data-in/.
  5. Builds normalized GeoJSON under data-out/.
  6. Validates the generated snapshot.
  7. Regenerates the dataset indexes.

Downloaded source files under data-in/ are reproducible local inputs and are not committed.

Generated publication artifacts under data-out/ are committed.

Additional Commands

Validate a generated snapshot:

civic-us-mn validate --version 2026-05

Regenerate dataset indexes:

civic-us-mn index

Build from an already downloaded source file:

civic-us-mn build --version 2026-05

Development

Clone and Open in VS Code

git clone https://github.com/civic-interconnect/civic-data-boundaries-us-mn-precincts.git
cd civic-data-boundaries-us-mn-precincts
code .

Set Up the Project

uvx pup-clean --delete
uv self update
uv python pin 3.14
uv python install
uv lock --upgrade
uv sync
uv audit

References

State of Minnesota - Election Administration & Campaigns - Data & Maps - GeoJSON files

Citation

CITATION.cff

License

MIT

Metadata

Release files for civic-data-boundaries-us-mn-precincts 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for civic-data-boundaries-us-mn-precincts 0.2.0
File Size Uploaded
civic_data_boundaries_us_mn_precincts-0.2.0.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for civic-data-boundaries-us-mn-precincts 0.2.0
File Interpreter ABI Platform
civic_data_boundaries_us_mn_precincts-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.4 kB

Release files / civic_data_boundaries_us_mn_precincts-0.2.0.tar.gz

Download URL civic_data_boundaries_us_mn_precincts-0.2.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
15be114c0938a2af8b7a08052ecc2bd14bfd94d2323bc65b8c25e0298d145ef2
BLAKE2b-256 checksum
How to use checksums
7655f411fa7bd714aa14b3183d162aae0767d7366032dedc68bda52774a3f544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / civic_data_boundaries_us_mn_precincts-0.2.0-py3-none-any.whl

Download URL civic_data_boundaries_us_mn_precincts-0.2.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4824105f223f66bed4934dd5999bf1a993b6d0952e56937506b1313585b7ca85
BLAKE2b-256 checksum
How to use checksums
175b78bf8bafbcdd02e57bdd616ce8769663b0c72491105c54679a50fb9cf468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page