Datadis API client
Project description
Datadis
Python client for https://datadis.es
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa626e336df847d13bc17d49b2ee184fe7a617417d44ce385df45743ec8cc39 |
|
MD5 | 4271a5eb7a61d1b2791f14642030b262 |
|
BLAKE2b-256 | 47c13257f1c49d466b131bc5da49c83a406d1470815c9ccd6064f758e54a1a4e |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | acfe4ca30cc8934a5cc94c7dc19b9c5b4cda296b3dbc6cc1d6db0be16b084c7d |
|
MD5 | a4c2affcb3fe31f48ef8dd558e6d7f40 |
|
BLAKE2b-256 | b8761433df5ceee3f7900ff7d0c1f4038a2450f48bf999919a56302f1a63c5c2 |