Welcome to Barry Energy API Client 👋
Simple python package to work with the API of Barry Energy. The API documentation can be found here.
Please be aware that this project is NOT offical.
Install
pip3 install barry-energy-api
Usage
Get your API Token
Get from mobile app under "Add-ons" -> "Barry API"
- Import the package
from barry_energy_api import PriceZone, BarryEnergyAPI
- Initialize the API
api = BarryEnergyAPI('api-token', 5, PriceZone.DK_EAST)
- Get aggregated consumption for the last 5 days as defined when API was initialized.
api.consumption()
- Get prices from the last two days.
Notice that methode has overloading
api.spotprices(2)
Author
👤 Emil Elkjær Nielsen
- Website: https://evsn.dk
- Github: @eelkjaer
- LinkedIn: @emil-elkjær
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 Emil Elkjær Nielsen
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator
Metadata
Release files for barry-energy-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| barry-energy-api-1.0.0.tar.gz | 3.5 kB | Without provenance | Details for barry-energy-api-1.0.0.tar.gz |
Release files / barry-energy-api-1.0.0.tar.gz
| Download URL | barry-energy-api-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95dae4165660e6c08515a106020bc2ecdc99b45e62fe85c735a8a94023d93d60
|
|
BLAKE2b-256 checksum How to use checksums |
a9df082a98600da8c9e6946b7bc14308c9092b005893cb5ebf11f160e7838f17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Security for barry-energy-api 1.0.0
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.