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.
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
- ineapir - Paquete oficial en R
- ineware - Wrapper Python
- extractor_ine - Extractor de datos INE
- INEAPIpy - Cliente Python para INE
- mcp-ine - Servidor MCP para INE
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e356c7c2dbc9710ce11621b01febe55acff36f015a15023c086a14b6be85352
|
|
| MD5 |
2ef9216e52adf6f78663138f3af3bedf
|
|
| BLAKE2b-256 |
df44617e9f091c4fd2bc7d0dc3beb796b9c20fe3d42b94c94908413f2a22bf61
|
Provenance
The following attestation bundles were made for inepandas-0.1.0.tar.gz:
Publisher:
publish.yml on JonathanMair/inepandas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inepandas-0.1.0.tar.gz -
Subject digest:
6e356c7c2dbc9710ce11621b01febe55acff36f015a15023c086a14b6be85352 - Sigstore transparency entry: 748738732
- Sigstore integration time:
-
Permalink:
JonathanMair/inepandas@a6612c199fef880e9fdde5ab06394e9fea07b132 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/JonathanMair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6612c199fef880e9fdde5ab06394e9fea07b132 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d54c31cc1eff1cc232959d5ee7062568e9310e5303fe00e95cc00c42db74ba20
|
|
| MD5 |
e5a1346176b3f2ac28372e27d7bba1e5
|
|
| BLAKE2b-256 |
43d65ea6fe321f4b83ae39a44455800b856a1fcf972b8d91ac391e8653ed551b
|
Provenance
The following attestation bundles were made for inepandas-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on JonathanMair/inepandas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inepandas-0.1.0-py3-none-any.whl -
Subject digest:
d54c31cc1eff1cc232959d5ee7062568e9310e5303fe00e95cc00c42db74ba20 - Sigstore transparency entry: 748738740
- Sigstore integration time:
-
Permalink:
JonathanMair/inepandas@a6612c199fef880e9fdde5ab06394e9fea07b132 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/JonathanMair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6612c199fef880e9fdde5ab06394e9fea07b132 -
Trigger Event:
release
-
Statement type: