Skip to content

OEP Client Tutorial 03 - Download data from the Open Energy Platform using the OEP Client in the command line#

OpenEnergy Platform

Learnings#

This tutorials will enable you to:

Requirements#

  • Python packages:

  • oep-client>=0.17 (installs also the command line tool)

  • Skills:

  • use the command line

Setup#

  • Linux
table=tutorial_example_table
  • Windows
SET table=tutorial_example_table

Help#

Show available commands:

oep-client --help

Download data#

requires execution of setup

  • Linux
oep-client select $table $table.data.csv
  • Windows
oep-client select %table% %table%.data.csv

Download filtered data#

In this example, we dont save the data to a file but just show results in the command line:

  • Linux
oep-client select $table --where "is_active=true" --where "capacity_mw>10"
  • Windows
oep-client select %table% --where "is_active=true" --where "capacity_mw>10"

Download metadata#

  • Linux
oep-client metadata get $table
  • Windows
oep-client metadata get %table%

About this tutorial#

logo

  • Author: Christian Winger
  • Copyright: Öko-Institut (2024)
  • License: CC BY 4.0
  • Attribution: Öko-Institut (2024): OEP Client Tutorial 03 - Download data from the Open Energy Platform using the OEP Client in the command line
  • Last update: 2024-04-25