Energy Quantified Time Series API Client

0.15.1 · active · verified Thu Apr 16

The official Python library for Energy Quantified's Time Series API (eq-python-client). It allows users to access thousands of data series directly from Energy Quantified's time series database. The library integrates with popular data science tools like Pandas and Polars for high-performance data analysis and manipulation. Developed for Python 3.10+, it maintains an active release cadence with frequent minor updates.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart initializes the EnergyQuantified client using an API key (preferably from an environment variable), searches for a time series, loads data for it, and then converts the result to a Pandas DataFrame.

import os
from datetime import date, timedelta
from energyquantified import EnergyQuantified

# Initialize client with API key from environment variable
api_key = os.environ.get('EQ_API_KEY', 'YOUR_API_KEY')
eq = EnergyQuantified(api_key=api_key)

# Free-text search for curves
curves = eq.metadata.curves(q='de wind production actual')

if curves:
    # Load time series data for the first matching curve
    curve = curves[0]
    timeseries = eq.timeseries.load(
        curve,
        begin=date.today() - timedelta(days=10),
        end=date.today()
    )

    print(f"Loaded {len(timeseries)} values for {curve.name}")

    # Convert to Pandas DataFrame (requires pandas installed)
    try:
        pd_df = timeseries.to_pandas_dataframe()
        print("\nPandas DataFrame head:")
        print(pd_df.head())
    except AttributeError:
        print("\nSkipping Pandas conversion: pandas not installed or old client version.")
else:
    print("No curves found for the query.")

view raw JSON →