OEP Client Tutorial 03 - Download data from the Open Energy Platform using the OEP Client in the command line#
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
Feedback#
You can provide feedback on this tutorial here: https://github.com/OpenEnergyPlatform/academy/issues/237
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 don't 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#
- 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-11-18