Skip to content

This is an example of how to use Python to access the Ökobaudat API.

License

Notifications You must be signed in to change notification settings

ocni-dtu/okobau_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ökobau API Example

Ö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.

List EPDs

Using this Repository

1. Prerequisites

To try out this example make sure that you have the following installed on your computer:

2. Clone Repository

Clone the repository to your computer:

git clone https://github.com/ocni-dtu/okobau_example.git

3. Install Python Requirements

  • Navigate to the cloned repository or open it in your favorite editor.
  • Install the Python packages with Pipenv:
    • pipenv install

4. Run the Code!

4.1 List EPDs

To get a list of EPDs in the Ökobau database use the list_epds.py file:

python src/list_epds.py

List EPDs

4.2 Fetch a Single EPD

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

Fetch EPD

4.3 Download and Save EPDs

To download and save EPDs from Ökobau to disk run:

python src/download_epds.py

Download EPDs

4.4 Convert to EPDx

To convert EPDs from Ökobau into EPDx run:

python src/to_epdx.py

To EPDx

About

This is an example of how to use Python to access the Ökobaudat API.

Topics

Resources

License

Stars

Watchers

Forks

Languages