Python package for obtaining open data from Instituto Canario de Estadística (ISTAC)
Project description
istacpy
is a Python package for obtaining open data from Instituto Canario de Estadística (ISTAC). It provides a wrapper to the open API catalog.
Installation
pip install istacpy
Usage
The package is divided into several modules depending on the resource you want to retrieve.
Indicators
Example 1: Get a list of all available indicators:
from istacpy.indicators import indicators
indicators.get_indicators()
Example 2: Get a list of geographic granularities treated in the ISTAC-indicators database. For example provincial, insular or municipal granularity:
from istacpy.indicators import geographic
geographic.get_indicators_geographic_granularities()
istacpy.indicators.lite
This is a lite version of the rest of the indicators API. It’s a kind of wrapper to facilitate the access to indicators data. It’s not as powerful as the above functions but it hides a lot of the business logic of the API, so it’s quite suitable to quickly retrieve information.
Statistical resources
Example 1: Get all existing statistical data cubes:
from istacpy.statisticalresources import cubes
cubes.get_statisticalresources_datasets()
Example 2: Get all the data sets maintained by a certain organization:
from istacpy.statisticalresources import cubes
cubes.get_statisticalresources_datasets_agency(agencyid='ISTAC')
Structural resources
Example 1: Get a list of classifications:
from istacpy.structuralresources import classifications
classifications.get_structuralresources_codelists()
Example 2: Get a list of geographic coordinate from Icod de los Vinos:
from istacpy.structuralresources import variables
variables.get_structuralresources_geoinfo('VR_TERRITORIO', 'MUN_ICOD_VINOS')
Documentation
For a full documentation of all available functions within the package, please see http://istacpy.readthedocs.io/
Bugs/Requests
Please use the GitHub issue tracker to submit bugs or request features.
Changelog
Consult the Changelog page for fixes and enhancements of each version.
Contact
You can also contact us via email at edatos.istac@gobiernodecanarias.org.
License
Copyright Instituto Canario de Estadística (ISTAC), 2018.
Distributed under the terms of the GPLv3 license, istacpy is free and open source software.
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
File details
Details for the file istacpy-0.6.0.tar.gz
.
File metadata
- Download URL: istacpy-0.6.0.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2bcc6fcc38a255cff1ed329c0284b90e489c284985e48f0b9ea4e0620dc506 |
|
MD5 | 47ccae6782c4df3c0e78d40545c037d9 |
|
BLAKE2b-256 | 89e240b44f02bd2d12e5bb539c9b5ab132ad4e3af937f315179ce97ba812ee9b |
File details
Details for the file istacpy-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: istacpy-0.6.0-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe76b96ee9f70f3b3bc2faaa5cec8f80c3e0d8c28b277f36c6780c6554ccfb7 |
|
MD5 | 52a492f79049b9449631e51609a1aff7 |
|
BLAKE2b-256 | 5d2bf48a350a08b7e9e011f76770217f1b3d946cf08f6afd972c522ee7265e17 |