Skip to main content

pysquirrel - NUTS administrative region utility

license Code style: ruff pytest DOI

Copyright 2025 IIASA Scenario Services team

This repository is licensed under the MIT License.

Overview

pysquirrel is a Python package designed to work with NUTS administrative divisions.

The current NUTS version is valid from 1 January 2024. The UK NUTS version is valid from January 2018.

Background

From the Eurostat website

The NUTS classification (Nomenclature of territorial units for statistics) is a geographical nomenclature subdividing the economic territory of the European Union (EU) into regions at three different levels (NUTS 1, 2 and 3 respectively, moving from larger to smaller territorial units). Above NUTS 1, there is the 'national' level of the Member States.

NUTS is used for:

  • collecting, developing and harmonising European regional statistics
  • carrying out socio-economic analyses of the regions
  • framing of EU regional policies

Usage

pysquirrel allows searching the list of all territorial units by specifying the parameters and the values to search as shown below:

>>> import pysquirrel

>>> pysquirrel.nuts.get(country_code="AT")  # gets all regions in Austria by EU country code

>>> pysquirrel.nuts.get(iso3="AUT")  # gets all regions in Austria by ISO3 country code

>>> pysquirrel.nuts.get(level=3)  # gets all NUTS3 regions

>>> pysquirrel.nuts.get(country_code="AT", level=3)  # gets all NUTS3 regions in Austria

Each Region object consists of five attributes:

  • a NUTS code (e.g.: AT127)
  • a country code
  • a label (the full region name)
  • a NUTS level (1, 2 or 3)
  • a parent code (corresponding to the NUTS parent region)

NUTS regions geojsons

The geojson files for the NUTS 1, 2 and 3 regions are available in the scse-geojson repository.

Eurostat copyright notice on NUTS region data file

This package imports the NUTS spreadsheet from the Eurostat website.

Please note that pysquirrel is not developed, maintained or affiliated with Eurostat. The Eurostat copyright notice applies.

The Eurostat editorial content is licensed under the Creative Commons Attribution 4.0 International licence. Reuse of statistical metadata such as the NUTS classification is authorised with due citation of the source.

European Commission, Eurostat, Statistical regions in the European Union and partner countries -- NUTS and statistical regions 2021 -- 2022 edition, Publications Office of the European Union, 2022, https://data.europa.eu/doi/10.2785/321792

Acknowledgement

This package is developed and maintained by the Scenario Services & Scientific Software research theme at the IIASA Energy, Climate, and Enviroment program. Visit https://software.ece.iiasa.ac.at for more information.

Release files for pysquirrel 1.4.1

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

Source distribution (sdist)

Source distribution for pysquirrel 1.4.1
File Size Uploaded
pysquirrel-1.4.1.tar.gz 498.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysquirrel 1.4.1
File Interpreter ABI Platform
pysquirrel-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 995.5 kB

Release files / pysquirrel-1.4.1.tar.gz

Download URL pysquirrel-1.4.1.tar.gz
Size 498.2 kB
Tags Source
SHA-256 checksum
How to use checksums
66e8ba47e273ae0e133672d9b6f938dfa0cf8317c877d1d31f99c5c578018d00
BLAKE2b-256 checksum
How to use checksums
158daa5e4a05659c9cb5b893cb1c0edf25e2ab53531f386131d44a5ecbab0899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 15, 2026.

Transparency log

Release files / pysquirrel-1.4.1-py3-none-any.whl

Download URL pysquirrel-1.4.1-py3-none-any.whl
Size 497.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf2e93306a351cca147f901a5bdb9ad664284a27e4b7e0cebf51abd547a5e5fc
BLAKE2b-256 checksum
How to use checksums
d21675a00315f6a1a99aee553a4008f78086e2ab3c49ffe71b564c6e0df86fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4

2 release files

1.3

2 release files

1.1

2 release files

1.0

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