All Projects → datachile → datachile-python-client

datachile / datachile-python-client

Licence: MIT License
Python client to manage DataChile API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to datachile-python-client

open-geoscience-repository
Open geoscience datasets available in open databases from Google Drive, SEG Wiki, and US DoE Geothermal Data Repository OpenEi
Stars: ✭ 83 (+315%)
Mutual labels:  opendata
covid19gr
Open Data Aggregation & Knowledge Base Repository for the evolution of the SARS-COV-2 pandemic in Greece.
Stars: ✭ 21 (+5%)
Mutual labels:  opendata
destatiscleanr
Imports and cleans data from official German statistical offices to jump-start the data analysis
Stars: ✭ 47 (+135%)
Mutual labels:  opendata
genero-nomes
Classifica nomes por gênero de acordo com API do IBGE
Stars: ✭ 33 (+65%)
Mutual labels:  opendata
blog.brasil.io
Blog do Brasil.IO
Stars: ✭ 24 (+20%)
Mutual labels:  opendata
awesome-csv
Awesome Comma-Separated Values (CSV) - What's Next? - Frequently Asked Questions (F.A.Q.s) - Libraries & Tools
Stars: ✭ 46 (+130%)
Mutual labels:  opendata
municipios-br
Dados em formato aberto sobre municípios e unidades federativas do Brasil.
Stars: ✭ 58 (+190%)
Mutual labels:  opendata
ParkCatcher
Find a free parking in the nearest residential street when driving in Montréal. A Montréal Open Data project.
Stars: ✭ 32 (+60%)
Mutual labels:  opendata
gems
Ruby Football Week 2021, June 11th to June 17th - 7 Days of Ruby (Sports) Gems ++ Best of Ruby Gems Series
Stars: ✭ 76 (+280%)
Mutual labels:  opendata
open-gsa-redesign
A fresh start for open.gsa.gov.
Stars: ✭ 27 (+35%)
Mutual labels:  opendata
ribge
R package for (down)loading data from IBGE (Instituto Brasileiro de Geografia e Estatística)
Stars: ✭ 44 (+120%)
Mutual labels:  opendata
site
The OpenScienceMOOC website
Stars: ✭ 20 (+0%)
Mutual labels:  opendata
geo.data.gouv.fr
Trouvez facilement les données géographiques dont vous avez besoin
Stars: ✭ 68 (+240%)
Mutual labels:  opendata
go-soda
Socrata Open Data API (SODA) GET client for Golang
Stars: ✭ 40 (+100%)
Mutual labels:  opendata
datatasks
Задачи для волонтеров/стажеров/всех желающих по работе с открытыми, большими данными. А также всеми иными задачами связанными с темами краудсорсинга, понятного языка и электронной архивации
Stars: ✭ 73 (+265%)
Mutual labels:  opendata
rhdx
R package to interact with the Humanitarian Data Exchange portal - http://dickoa.gitlab.io/rhdx/
Stars: ✭ 20 (+0%)
Mutual labels:  opendata
open-data-smn
An API to serve publicly available data from the SwissMetNet in 10min intervals
Stars: ✭ 23 (+15%)
Mutual labels:  opendata
json-next
json-next gem - read generation y / next generation json versions (HanSON, SON, JSONX/JSON11, etc.) with comments, unquoted keys, multi-line strings, trailing commas, optional commas, and more
Stars: ✭ 30 (+50%)
Mutual labels:  opendata
SOD
A survey of all Scottish public sector open data
Stars: ✭ 17 (-15%)
Mutual labels:  opendata
deutschland
Free open public domain football data for Germany (Deutschland) incl. Deutsche Bundesliga, 2. Bundesliga, 3. Liga, DFB Pokal etc.
Stars: ✭ 64 (+220%)
Mutual labels:  opendata

DataChile Python Client

DataChile Python Client is a Python 3 library to access the DataChile API. This library enables you to use public data from differents sources in your Python applications.

Install

Install from PyPI, using pip:

pip install datachile

Simple Demo

Interact with the API:

  • Get all datasets availables in DataChile
from datachile import ChileCube

client = ChileCube()
query = client.get_cubes()

print(query)
  • Get drilldowns availables from "Election Participation" dataset.
from datachile import ChileCube

client = ChileCube()
cube = "election_participation"

dd = client.get_drilldowns(cube)
ms = client.get_measures(cube)

print(dd)
print(ms)
  • Get exports from Chile in 2012-2014, divided in Year and Destination Country
from datachile import ChileCube

client = ChileCube()

query = client.get(
    "exports", 
    {
        "drilldowns": [
            ["Date", "Year"],
            ["Destination Country", "Country", "Country"]
        ],
        "measures": ["FOB US"],
        "cuts": [
            {
                "drilldown": ["Date", "Year"],
                "values": [2012, 2013, 2014]
            }
        ],
        "parents": True
    }
)

print(query)

Documentation

Please refer to our Wiki documentation for more information or Datachile API Documentation Website.

Development

Contributing

Long-term discussion and bug reports are maintained via GitHub Issues. Code review is done via GitHub Pull Requests.

License

The MIT License (MIT)

Copyright (c) 2018 Carlos Navarrete & Datawheel LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].