Skip to main content

Datadis API client

Project description

Datadis

Python client for https://datadis.es

GitHub Semantic Release PyPI - Downloads Quality Gate Status PyPI - Python Version

Installation

From PyPi

pip install datadis

Usage/Examples

import asyncio
from datadis import get_token, get_supplies

token = asyncio.run(get_token('username', 'password'))

supplies = asyncio.run(get_supplies(token))

#[
#    {
#        "address": "home",
#        "cups": "1234ABC",
#        "postalCode": "1024",
#        "province": "madrid",
#        "municipality": "madrid",
#        "distributor": "Energy",
#        "validDateFrom": "2020/09",
#        "validDateTo": "2021/09",
#        "pointType": 0,
#        "distributorCode": "2"
#    }
#]

Datadis time format

The 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datadis-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

datadis-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file datadis-1.0.1.tar.gz.

File metadata

  • Download URL: datadis-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for datadis-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7d5f36868396d82640a3e9b468ff9edce0e0f85f06fc15bdd0a637f6e327f36b
MD5 828e39c26eaffa7716d329a333c42962
BLAKE2b-256 5b199d06cc8e3fec5f13cf735105ec9d366d8e41d06e58d723ba3b9a20eb58ea

See more details on using hashes here.

File details

Details for the file datadis-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: datadis-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for datadis-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cbdee2907edc2e51b824e1460f1fdede4e0fd5bdb4041b022903df9f014eaa0
MD5 4c03884957305e9e35655aa331e23a6b
BLAKE2b-256 ab13ddd51dac20f4ea78554ee57a93c5f58f9a03a15e0c4928d173c1486fb8e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page