Skip to main content

A Python wrapper for the Spanish National Statistics Institute (INE) API

Project description

inepandas

Un wrapper de Python para la API del Instituto Nacional de Estadística (INE) de España que devuelve datos como DataFrames de pandas.

⚠️ Este es un paquete no oficial, no está afiliado al INE.

English version below

Instalación

pip install inepandas

Uso rápido

import inepandas as ine

# Operaciones disponibles
operaciones = ine.get_operations()

# Datos de una tabla (últimos 5 periodos del IPC)
ipc = ine.get_table_data(50902, nlast=5)

# Datos de una serie
serie = ine.get_series_data("IPC251856", nlast=12)

# Datos por rango de fechas
datos_2024 = ine.get_table_data(50902, date_start="2024/01/01", date_end="2024/12/31")

Funciones principales

Función Descripción
get_operations() Lista de operaciones estadísticas
get_tables(operation) Tablas de una operación
get_table_data(table_id) Datos de una tabla
get_series_data(series_code) Datos de una serie
get_variables(operation) Variables de una operación
get_values(variable) Valores de una variable

IDs comunes

ID Descripción
50902 IPC - Índices nacionales
IPC251856 IPC - Variación anual

Enlaces

Proyectos relacionados

Licencia

MIT


English

A Python wrapper for the Spanish National Statistics Institute (INE) API that returns data as pandas DataFrames.

⚠️ This is an unofficial package, not affiliated with INE.

Installation

pip install inepandas

Quick start

import inepandas as ine

# Available operations
operations = ine.get_operations()

# Table data (last 5 periods of CPI)
cpi = ine.get_table_data(50902, nlast=5)

# Series data
series = ine.get_series_data("IPC251856", nlast=12)

# Date range
data_2024 = ine.get_table_data(50902, date_start="2024/01/01", date_end="2024/12/31")

Main functions

Function Description
get_operations() List statistical operations
get_tables(operation) Tables for an operation
get_table_data(table_id) Data from a table
get_series_data(series_code) Data from a series
get_variables(operation) Variables for an operation
get_values(variable) Values for a variable

Common IDs

ID Description
50902 CPI - National indices
IPC251856 CPI - Annual variation

Links

License

MIT

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

inepandas-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inepandas-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file inepandas-0.1.0.tar.gz.

File metadata

  • Download URL: inepandas-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inepandas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e356c7c2dbc9710ce11621b01febe55acff36f015a15023c086a14b6be85352
MD5 2ef9216e52adf6f78663138f3af3bedf
BLAKE2b-256 df44617e9f091c4fd2bc7d0dc3beb796b9c20fe3d42b94c94908413f2a22bf61

See more details on using hashes here.

Provenance

The following attestation bundles were made for inepandas-0.1.0.tar.gz:

Publisher: publish.yml on JonathanMair/inepandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inepandas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: inepandas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inepandas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d54c31cc1eff1cc232959d5ee7062568e9310e5303fe00e95cc00c42db74ba20
MD5 e5a1346176b3f2ac28372e27d7bba1e5
BLAKE2b-256 43d65ea6fe321f4b83ae39a44455800b856a1fcf972b8d91ac391e8653ed551b

See more details on using hashes here.

Provenance

The following attestation bundles were made for inepandas-0.1.0-py3-none-any.whl:

Publisher: publish.yml on JonathanMair/inepandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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