Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question

OpenStudio python bindings

asked 2021-07-20 15:34:39 -0600

Michel gravatar image


I am very new to OpenStudio and I want to integrate the software in a statistical analysis on python. I do not know how to compile and use the python bindings. Can anyone give me a tutorial for it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-20 22:11:21 -0600

updated 2021-07-20 22:12:59 -0600

You can install the openstudio python bindings using pip install openstudio.

Then you can test they work:

import openstudio
m = openstudio.model.Model()

That results in:

  {b1c739b0-8af6-4d47-b6a2-96df1d55f3cb}, !- Handle
  3.2.1;                                  !- Version Identifier

You can find more information at

edit flag offensive delete link more


Thank you, it worked

Michel gravatar image Michel  ( 2021-07-21 01:58:19 -0600 )edit

Where is the documentation for all the package functions? I want to use some OpenStudio modifications in my python scripts?

mechyai gravatar image mechyai  ( 2021-07-21 11:14:49 -0600 )edit

Are you referring to the OpenStudio SDK documentation?

shorowit gravatar image shorowit  ( 2021-07-21 11:25:57 -0600 )edit

Is there a python-specific version of the above SDK documentation that shows us the syntax of how to call the methods? Thanks

wassimj gravatar image wassimj  ( 2021-07-26 02:26:50 -0600 )edit

The SDK documentation is for all languages (Ruby, C#, Python); I don't know what python-specific documentation would look like.

shorowit gravatar image shorowit  ( 2021-07-26 08:30:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2021-07-20 15:34:39 -0600

Seen: 236 times

Last updated: Jul 21