Skip to main content

Python package designed to fetch NUTS administrative divisions

Project description

pysquirrel - NUTS administrative region utility

license Code style: ruff pytest

Copyright 2024 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.

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

>>> 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)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysquirrel-1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pysquirrel-1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pysquirrel-1.0.tar.gz.

File metadata

  • Download URL: pysquirrel-1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pysquirrel-1.0.tar.gz
Algorithm Hash digest
SHA256 ee79915a7140d159a010752dd1ddb7657ad2cc33f0ae53f8c875f3b7c1dfc273
MD5 5e9d7e621f3f2b4f0412c678371eff53
BLAKE2b-256 32cbff6fde4b344d69a5b60a02590c970be03654629ceb037b1b7a15eb9499b8

See more details on using hashes here.

File details

Details for the file pysquirrel-1.0-py3-none-any.whl.

File metadata

  • Download URL: pysquirrel-1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pysquirrel-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d82759a31733ecda1fb045a0a2219fba02b37ac799b836c00aa95bf66f91a400
MD5 e4eae4b090f6368450a564e6d50171ae
BLAKE2b-256 4dc8e607cb0878152c4868be34e97da2fc380830574a60020bfa87a2fbc74253

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page