Skip to main content

Datadis API client

Project description

Datadis

Python client for https://datadis.es

MIT License 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"
#    }
#]

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-0.8.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

datadis-0.8.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datadis-0.8.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for datadis-0.8.0.tar.gz
Algorithm Hash digest
SHA256 2fa626e336df847d13bc17d49b2ee184fe7a617417d44ce385df45743ec8cc39
MD5 4271a5eb7a61d1b2791f14642030b262
BLAKE2b-256 47c13257f1c49d466b131bc5da49c83a406d1470815c9ccd6064f758e54a1a4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datadis-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for datadis-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acfe4ca30cc8934a5cc94c7dc19b9c5b4cda296b3dbc6cc1d6db0be16b084c7d
MD5 a4c2affcb3fe31f48ef8dd558e6d7f40
BLAKE2b-256 b8761433df5ceee3f7900ff7d0c1f4038a2450f48bf999919a56302f1a63c5c2

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