Skip to main content

DINE 🦕

Librería y línea de comandos para explorar y exportar datos del Instituto Nacional de Estadística.

🔍 Recursos

Puedes explorar la documentación de la API en Markdown en la carpeta docs.

🚀 Instalación

Puedes instalar la librería dine usando uv o pip.

pip install dine
uv add dine

Para instalar dine en el sistema de manera aislada, puedes hacerlo con:

uv tool install dine

🛠️ Uso

La librería dine proporciona una interfaz de línea de comandos para interactuar con los datos del INE.

Operaciones Estadísticas

Listar todas las operaciones estadísticas disponibles:

dine operations list

Obtener información detallada sobre una operación específica:

dine operations get <ID_OPERACION>

Tablas Estadísticas

Listar todas las tablas estadísticas disponibles:

dine tables list

Listar tablas de una operación específica:

dine tables list --operation <ID_OPERACION>

Obtener información detallada sobre una tabla específica:

dine tables info <ID_TABLA>

Descargar una tabla y guardarla en formato Parquet:

dine tables download <ID_TABLA>

Especificar una ruta de salida personalizada:

dine tables download <ID_TABLA> --output ruta/personalizada.parquet

Uso desde Python

También puedes usar DINE directamente desde Python:

import dine

# Listar operaciones
operaciones = dine.list_operations()

# Obtener información de una operación
operacion = dine.get_operation("ID_OPERACION")

# Listar tablas
tablas = dine.list_all_tables()
tablas_por_operacion = dine.list_tables_by_operation("ID_OPERACION")

# Obtener información de una tabla
info_tabla = dine.get_table_info("ID_TABLA")

# Descargar una tabla
ruta_salida = dine.download_table("ID_TABLA", "ruta/salida.parquet")

🔧 Desarrollo

Para contribuir al proyecto, se puede usar el siguiente comando para instalar las dependencias necesarias y ejecutar el proyecto.

make install

📝 Licencia

Este proyecto está bajo la licencia MIT. Ver el archivo LICENSE para más detalles.

Metadata

Release files for dine 0.0.2

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

Source distribution (sdist)

Source distribution for dine 0.0.2
File Size Uploaded Provenance
dine-0.0.2.tar.gz 44.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 51.9 kB

Release files / dine-0.0.2.tar.gz

Download URL dine-0.0.2.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
afdbedc73e49252be35204325e3d3291090892b401b01301ec560fefd5577b57
BLAKE2b-256 checksum
How to use checksums
86f4ef479be2e7851ab619a97300e6ec94cb1e66519a68b07ae4e33ce9fb452e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.5

Release files / dine-0.0.2-py3-none-any.whl

Download URL dine-0.0.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2892de431569a94dc12f098dbbc13540f5ace0969c55ae38af5c26bab794a57
BLAKE2b-256 checksum
How to use checksums
c920226d665d6796de3fbe9eb5ac4b760bd051f5e3d402a95b0dd8dc7565803c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.5

Security for dine 0.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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