{"id":20699898,"url":"https://github.com/mrmarble/datadis","last_synced_at":"2025-08-23T19:02:58.451Z","repository":{"id":38080714,"uuid":"400662588","full_name":"MrMarble/datadis","owner":"MrMarble","description":"Datadis python api client","archived":false,"fork":false,"pushed_at":"2024-09-03T12:44:19.000Z","size":100,"stargazers_count":6,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T20:47:53.541Z","etag":null,"topics":["api-client","datadis","electricity","python","spain"],"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/MrMarble.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-28T00:05:17.000Z","updated_at":"2024-09-03T12:44:23.000Z","dependencies_parsed_at":"2023-02-08T18:15:34.843Z","dependency_job_id":"fdc4012e-becd-434d-b158-cdbfaa02c786","html_url":"https://github.com/MrMarble/datadis","commit_stats":{"total_commits":76,"total_committers":5,"mean_commits":15.2,"dds":0.4078947368421053,"last_synced_commit":"9a058b2d21e02ed357105efd34b5336e358bbc67"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2Fdatadis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2Fdatadis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2Fdatadis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2Fdatadis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrMarble","download_url":"https://codeload.github.com/MrMarble/datadis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224986449,"owners_count":17402937,"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":["api-client","datadis","electricity","python","spain"],"created_at":"2024-11-17T00:32:42.935Z","updated_at":"2024-11-17T00:32:42.995Z","avatar_url":"https://github.com/MrMarble.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Datadis\n\nPython client for https://datadis.es\n\n![GitHub](https://img.shields.io/github/license/mrmarble/datadis)\n[![Semantic Release](https://github.com/MrMarble/datadis/actions/workflows/release.yml/badge.svg)](https://github.com/MrMarble/datadis/actions/workflows/release.yml)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/datadis)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=MrMarble_datadis\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=MrMarble_datadis)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/datadis)\n\n## Installation\n\nFrom [PyPi](https://pypi.org/project/datadis/)\n\n```bash\npip install datadis\n```\n    \n## Usage/Examples\n\n```python\nimport asyncio\nfrom datadis import get_token, get_supplies\n\ntoken = asyncio.run(get_token('username', 'password'))\n\nsupplies = asyncio.run(get_supplies(token))\n\n#[\n#    {\n#        \"address\": \"home\",\n#        \"cups\": \"1234ABC\",\n#        \"postalCode\": \"1024\",\n#        \"province\": \"madrid\",\n#        \"municipality\": \"madrid\",\n#        \"distributor\": \"Energy\",\n#        \"validDateFrom\": \"2020/09\",\n#        \"validDateTo\": \"2021/09\",\n#        \"pointType\": 0,\n#        \"distributorCode\": \"2\"\n#    }\n#]\n```\n\n### Datadis time format\n\nThe datadis documentation is a bit sparse regarding the \"time\" attribute in some of the answers, read this comment from *skgsergio* on the topic https://github.com/MrMarble/datadis/issues/5#issuecomment-1550262886\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmarble%2Fdatadis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmarble%2Fdatadis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmarble%2Fdatadis/lists"}