{"id":26576704,"url":"https://github.com/datachile/datachile-python-client","last_synced_at":"2025-03-23T03:26:41.988Z","repository":{"id":62566535,"uuid":"118912425","full_name":"datachile/datachile-python-client","owner":"datachile","description":"Python client to manage DataChile API","archived":false,"fork":false,"pushed_at":"2019-08-19T13:59:09.000Z","size":34,"stargazers_count":20,"open_issues_count":1,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-09-30T09:24:14.470Z","etag":null,"topics":["mondrian","mondrian-rest","opendata","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datachile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-25T12:52:00.000Z","updated_at":"2022-03-10T19:11:25.000Z","dependencies_parsed_at":"2022-11-03T16:15:29.106Z","dependency_job_id":null,"html_url":"https://github.com/datachile/datachile-python-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachile%2Fdatachile-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachile%2Fdatachile-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachile%2Fdatachile-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachile%2Fdatachile-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datachile","download_url":"https://codeload.github.com/datachile/datachile-python-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966457,"owners_count":20539794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mondrian","mondrian-rest","opendata","python"],"created_at":"2025-03-23T03:26:41.242Z","updated_at":"2025-03-23T03:26:41.980Z","avatar_url":"https://github.com/datachile.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataChile Python Client\n`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.\n\n# Install\nInstall from PyPI, using pip:\n\n`pip install datachile`\n\n# Simple Demo\nInteract with the API:\n\n* Get all datasets availables in DataChile\n\n```Python\nfrom datachile import ChileCube\n\nclient = ChileCube()\nquery = client.get_cubes()\n\nprint(query)\n```\n\n* Get drilldowns availables from \"Election Participation\" dataset.\n```Python\nfrom datachile import ChileCube\n\nclient = ChileCube()\ncube = \"election_participation\"\n\ndd = client.get_drilldowns(cube)\nms = client.get_measures(cube)\n\nprint(dd)\nprint(ms)\n```\n\n* Get exports from Chile in 2012-2014, divided in Year and Destination Country\n```Python\nfrom datachile import ChileCube\n\nclient = ChileCube()\n\nquery = client.get(\n    \"exports\", \n    {\n        \"drilldowns\": [\n            [\"Date\", \"Year\"],\n            [\"Destination Country\", \"Country\", \"Country\"]\n        ],\n        \"measures\": [\"FOB US\"],\n        \"cuts\": [\n            {\n                \"drilldown\": [\"Date\", \"Year\"],\n                \"values\": [2012, 2013, 2014]\n            }\n        ],\n        \"parents\": True\n    }\n)\n\nprint(query)\n```\n\n# Documentation\nPlease refer to our Wiki documentation for more information or [Datachile API Documentation Website](https://datachile.io/about/api).\n\n# Development\n\n## Contributing\nLong-term discussion and bug reports are maintained via GitHub Issues. Code review is done via GitHub Pull Requests. \n\n# License\nThe MIT License (MIT)\n\nCopyright (c) 2018 Carlos Navarrete \u0026 Datawheel LLC\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachile%2Fdatachile-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatachile%2Fdatachile-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachile%2Fdatachile-python-client/lists"}