Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A module for parsing EnergyPlus IDF files

Project Description

Parses an IDF file (as used by EnergyPlus) into a dictionary of lists in the following manner:

  • each IDF object is represented by a list of its fields, with the first field being the object type.
  • each such list is appended to a list of objects with the same type in the dictionary, indexed by type:

{ A => [[A, x, y, z], [A, a, b, c]], B => [[B, 1, 2], [B, 1, 2, 3]] }

  • the index keys are all capitalized.
  • also, all field values are strings, i.e. no interpretation of the values is made.


import parseidf

with open(r'in.idf', 'r') as f:
    idf = parseidf.parse(
print idf.keys()  # lists the object types in the idf file
print idf['OUTPUT:VARIABLE']  # lists all the Output:Variable objects in the idf file


parseidf depends on PLY (Python Lex & Yacc):

License & Credit

This project is licensed under the terms of the MIT license. See the file “LICENSE” in the project root for more information.

This module was developed by Daren Thomas at the assistant chair for Sustainable Architecture and Building Technologies (SuAT) at the Institute of Technology in Architecture, ETH Zürich.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.2 kB) Copy SHA256 Hash SHA256
Source None Apr 22, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate