Skip to main content

Library to interact with the INE JSON-Stat API

Project description

inejsonstat.py

IneJsonStat is a library for reading the JSON-stat data format responses from the Spanish National Institute of Stadistics (INE)'s JSON-stat API.

JSON-stat is a JSON format specialized in representing datasets mainly for statistic purposes. It's used by many institutions around the world, such as:

The main objective of the library its to ease the use interpretation and manipulation of retrieved data by the means of creating dynamically objects representing the hierarchically the different levels of information in a retrieved file.

This project is in early stages and has been developed for the University of Extremadura. You can contribute on its github repository or contact me directly in case of doubt or need via luismasc16@gmail.com.

Installation:

>>> pip install inejsonstat

Available languages: -'ES' (spanish) -'EN' (english)

Available inputs: These are the ids of the tables you request, they can be found here for the spanish INE (Instituto Nacional de Estadística):

https://www.ine.es/dyngs/INEbase/listaoperaciones.htm

Optional nult: If not left blank, it will give the n last terms of the requested table

Optional date: If not left blank, it will give the terms of the requested table in:

-date=YYYYMMDD (a given date) -date=YYYYMMDD&date=YYYYMMDD (a list of given dates) -date=YYYYMMDD:YYYYMMDD (a range of dates)

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

inejsonstat-1.0.18.tar.gz (54.5 kB view hashes)

Uploaded Source

Built Distribution

inejsonstat-1.0.18-py3-none-any.whl (92.3 kB view hashes)

Uploaded Python 3

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