Python package designed to fetch NUTS administrative divisions
Project description
pysquirrel - NUTS administrative region utility
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysquirrel-1.3.tar.gz.
File metadata
- Download URL: pysquirrel-1.3.tar.gz
- Upload date:
- Size: 498.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc1d39a18d91338a86e2f839936e97f69654847042cbcb47e23e4d0c7097c19b
|
|
| MD5 |
2e562df17d2efa0fa2b3730292e6150c
|
|
| BLAKE2b-256 |
93221d77a1169deed2fa5ccab46d9a90e2f69dc28bf3c33df89a6c2f802bdae3
|
Provenance
The following attestation bundles were made for pysquirrel-1.3.tar.gz:
Publisher:
publish.yml on iiasa/pysquirrel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysquirrel-1.3.tar.gz -
Subject digest:
dc1d39a18d91338a86e2f839936e97f69654847042cbcb47e23e4d0c7097c19b - Sigstore transparency entry: 1393328397
- Sigstore integration time:
-
Permalink:
iiasa/pysquirrel@f5cdd2462efc5c55fc2943ab97dcf19a3c9e3e55 -
Branch / Tag:
refs/tags/v1.3 - Owner: https://github.com/iiasa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5cdd2462efc5c55fc2943ab97dcf19a3c9e3e55 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pysquirrel-1.3-py3-none-any.whl.
File metadata
- Download URL: pysquirrel-1.3-py3-none-any.whl
- Upload date:
- Size: 497.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d042d975a6dc7e771808b8e8825eb4c037ae23badffd47be2424b6db1de1142e
|
|
| MD5 |
fa7dfeb5024e9226bbad0c5c5100ada0
|
|
| BLAKE2b-256 |
048fb5d8c3d019613e783a975ba7750b8ae204ede5c5782388e783970804a0fd
|
Provenance
The following attestation bundles were made for pysquirrel-1.3-py3-none-any.whl:
Publisher:
publish.yml on iiasa/pysquirrel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysquirrel-1.3-py3-none-any.whl -
Subject digest:
d042d975a6dc7e771808b8e8825eb4c037ae23badffd47be2424b6db1de1142e - Sigstore transparency entry: 1393328937
- Sigstore integration time:
-
Permalink:
iiasa/pysquirrel@f5cdd2462efc5c55fc2943ab97dcf19a3c9e3e55 -
Branch / Tag:
refs/tags/v1.3 - Owner: https://github.com/iiasa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5cdd2462efc5c55fc2943ab97dcf19a3c9e3e55 -
Trigger Event:
release
-
Statement type: