energyplus-parser


Nameenergyplus-parser JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryA simple toolkit for parsing EnergyPlus IDF files and generating 2D/3D visualisations of the geometry. Based on the parseidf module by Daren Thomas.
upload_time2024-07-09 09:11:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseThe MIT License (MIT) Copyright (c) 2014 Daren Thomas, SuAT (http://suat.arch.ethz.ch) Copyright (c) 2023 Dillon Loh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords simulation parsing energyplus idf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # IDF Parser and Geometry 2D/3D Visualiser

Parses an IDF file and provides a JSON-like dictionary of lists. Refer to original README below for information on format.

Also provides functions to generate 2D Projections, 3D Point Clouds, and 3D Mesh visualisations of the
geometry in the IDF file. This is the main feature that sets it apart from the original repo.


# ORIGINAL README
# parseidf.py

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.

# Example

```python
import parseidf

with open(r'in.idf', 'r') as f:
    idf = parseidf.parse(f.read())
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
```

# Dependencies

parseidf depends on PLY (Python Lex & Yacc): https://pypi.python.org/pypi/ply/3.4

# 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)](http://suat.arch.ethz.ch)
at the [Institute of Technology in Architecture](http://ita.arch.ethz.ch), ETH Zürich.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "energyplus-parser",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "simulation, parsing, energyplus, idf",
    "author": null,
    "author_email": "Dillon Loh <loh.dillon@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d9/bc/51947061871259bf9eacca851bebae18a741e8ba84db059980dfffcd088d/energyplus_parser-0.0.1.tar.gz",
    "platform": null,
    "description": "# IDF Parser and Geometry 2D/3D Visualiser\n\nParses an IDF file and provides a JSON-like dictionary of lists. Refer to original README below for information on format.\n\nAlso provides functions to generate 2D Projections, 3D Point Clouds, and 3D Mesh visualisations of the\ngeometry in the IDF file. This is the main feature that sets it apart from the original repo.\n\n\n# ORIGINAL README\n# parseidf.py\n\nParses an IDF file (as used by EnergyPlus) into a dictionary of lists in the following manner:\n\n- each IDF object is represented by a list of its fields, with the first field being the object type.\n\n- each such list is appended to a list of objects with the same type in the dictionary, indexed by type:\n\n   { A => [[A, x, y, z], [A, a, b, c]],\n     B => [[B, 1, 2], [B, 1, 2, 3]] }\n\n- the index keys are all capitalized.\n\n- also, all field values are strings, i.e. no interpretation of the values is made.\n\n# Example\n\n```python\nimport parseidf\n\nwith open(r'in.idf', 'r') as f:\n    idf = parseidf.parse(f.read())\nprint idf.keys()  # lists the object types in the idf file\nprint idf['OUTPUT:VARIABLE']  # lists all the Output:Variable objects in the idf file\n```\n\n# Dependencies\n\nparseidf depends on PLY (Python Lex & Yacc): https://pypi.python.org/pypi/ply/3.4\n\n# License & Credit\n\nThis project is licensed under the terms of the MIT license. See the file \"LICENSE\" in the project root for more information.\n\nThis module was developed by Daren Thomas at the assistant chair for [Sustainable Architecture and Building Technologies (SuAT)](http://suat.arch.ethz.ch)\nat the [Institute of Technology in Architecture](http://ita.arch.ethz.ch), ETH Z\u00fcrich.\n\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2014 Daren Thomas, SuAT (http://suat.arch.ethz.ch) Copyright (c) 2023 Dillon Loh  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A simple toolkit for parsing EnergyPlus IDF files and generating 2D/3D visualisations of the geometry. Based on the parseidf module by Daren Thomas.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/dillonloh/energyplus_parser"
    },
    "split_keywords": [
        "simulation",
        " parsing",
        " energyplus",
        " idf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6b4331198248b6a6b647903e02eb30f82f068837a058ddac0b293a4c9ed84aa",
                "md5": "aa6fe1fc607068f54c59237fb9517355",
                "sha256": "713aee792e65e2a02d4e38ec52b12a22b083f202fa7164a79e275c003aa8c8b4"
            },
            "downloads": -1,
            "filename": "energyplus_parser-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aa6fe1fc607068f54c59237fb9517355",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8413,
            "upload_time": "2024-07-09T09:11:10",
            "upload_time_iso_8601": "2024-07-09T09:11:10.318212Z",
            "url": "https://files.pythonhosted.org/packages/f6/b4/331198248b6a6b647903e02eb30f82f068837a058ddac0b293a4c9ed84aa/energyplus_parser-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d9bc51947061871259bf9eacca851bebae18a741e8ba84db059980dfffcd088d",
                "md5": "7cf0ee28b355e86bf47f155abbe16203",
                "sha256": "0e8423c4f710ba0216abc7dbf5a57ca1d5feae6c851a1e14d7adc90b4b9be5c9"
            },
            "downloads": -1,
            "filename": "energyplus_parser-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7cf0ee28b355e86bf47f155abbe16203",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6761,
            "upload_time": "2024-07-09T09:11:12",
            "upload_time_iso_8601": "2024-07-09T09:11:12.775259Z",
            "url": "https://files.pythonhosted.org/packages/d9/bc/51947061871259bf9eacca851bebae18a741e8ba84db059980dfffcd088d/energyplus_parser-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-09 09:11:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dillonloh",
    "github_project": "energyplus_parser",
    "github_not_found": true,
    "lcname": "energyplus-parser"
}
        
Elapsed time: 0.66437s