Ökobaudat is a database published by the German state which provides EPD. It is a publicly accessible platform that allows users to search for EPD based on various requirements.
Ökobaudat provides an API (Application Programming Interface) that allows developers to access and retrieve data from the database programmatically.
This repository is an example of how to use Python with the "requests" library to access the Ökobaudat API.
Whether you're an architect, builder or anyone else in the industry, Ökobaudat is a great tool to help you find sustainable building materials and products that meet your specific needs.
To try out this example make sure that you have the following installed on your computer:
Clone the repository to your computer:
git clone https://github.com/ocni-dtu/okobau_example.git
- Navigate to the cloned repository or open it in your favorite editor.
- Install the Python packages with Pipenv:
-
pipenv install
To get a list of EPDs in the Ökobau database use the list_epds.py
file:
python src/list_epds.py
If you wish to obtain information on a specific EPD then use the fetch_epd.py
file.
NOTE that you need to update epd_id
variable the file to the uuid
of the EPD that you wish to get information on.
python src/fetch_epd.py
To download and save EPDs from Ökobau to disk run:
python src/download_epds.py
To convert EPDs from Ökobau into EPDx run:
python src/to_epdx.py