Skip to content

OEP Client Tutorial 03 - Download data using the OEP Client in the command line#

OpenEnergy Platform

Learnings#

This tutorials will enable you to:

Requirements#

  • Python packages:

  • oep-client>=0.14 (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%