{"id":50646189,"url":"https://github.com/MrMarble/datadis","last_synced_at":"2026-06-24T09:01:02.710Z","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":7,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-17T00:49:49.753Z","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-11-13T18:25:32.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,"purl":"pkg:github/MrMarble/datadis","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2Fdatadis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34724743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-07T13:00:29.297Z","updated_at":"2026-06-24T09:01:02.702Z","avatar_url":"https://github.com/MrMarble.png","language":"Python","funding_links":[],"categories":["Energía y Electricidad"],"sub_categories":["Radar COVID"],"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"}