Skip to main content

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

Metadata

Release files for datadis 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datadis 1.0.1
File Size Uploaded Provenance Actions
datadis-1.0.1.tar.gz 3.9 kB Without provenance Details for datadis-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datadis 1.0.1
File Interpreter ABI Platform Actions
datadis-1.0.1-py3-none-any.whl Python 3 none any Details for datadis-1.0.1-py3-none-any.whl

Total release size: 8.4 kB

Release files / datadis-1.0.1.tar.gz

Download URL datadis-1.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7d5f36868396d82640a3e9b468ff9edce0e0f85f06fc15bdd0a637f6e327f36b
BLAKE2b-256 checksum
How to use checksums
5b199d06cc8e3fec5f13cf735105ec9d366d8e41d06e58d723ba3b9a20eb58ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / datadis-1.0.1-py3-none-any.whl

Download URL datadis-1.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cbdee2907edc2e51b824e1460f1fdede4e0fd5bdb4041b022903df9f014eaa0
BLAKE2b-256 checksum
How to use checksums
ab13ddd51dac20f4ea78554ee57a93c5f58f9a03a15e0c4928d173c1486fb8e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

Security for datadis 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page