Skip to main content

Retrieval of Spanish Electricity hourly prices (PVPC)

Project description

PyPi Wheel Travis Status codecov

aiopvpc

Simple aio library to download Spanish electricity hourly prices.

Made to support the pvpc_hourly_pricing HomeAssistant integration.

Buy Me A Coffee donate button

Install

Install with pip install aiopvpc or clone it to run tests or anything else.

Usage

from aiopvpc import PVPCData

pvpc_handler = PVPCData(tariff="discrimination")

start = datetime(2020, 3, 20, 22)
end = datetime(2020, 4, 30, 16)
prices_range: dict = await pvpc_handler.async_download_prices_for_range(start, end)

Check this example on a jupyter notebook, where the downloader is combined with pandas and matplotlib to plot the electricity prices:

sample_pvpc_plot.png

Project details


Download files

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

Files for aiopvpc, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size aiopvpc-2.0.1-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aiopvpc-2.0.1.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page