Skip to main content

Parser for the output files of EnergyPLAN

Project description

EnergyPLAN Output Parser/Converter

Since EnergyPLAN's output is the opposite of "easy to parse" for a program, I have created this script to convert it to a handy JSON file. You can use it both as a standalone program to convert the output file to JSON, or import it as a library in your python program and get the data as a standard Python dictionary. In the future, I might also add a CSV output format - although I think it's much less suited for such a structured output.

Installation

$ pip install eplan_parser

Usage as a Standalone Script

$ eplan_parser eplan_output.txt parsed_output.json
  - Read 8889 lines from "eplan_output.txt"
  - Parsed CO2 section
  - Parsed RES Share section
  - Parsed Fuel Consumption section
  - Parsed Annual Costs section
  - Parsed Yearly Totals section
  - Parsed Hourly Totals section
 ! - Costs overview parsing not yet implemented
 ! - Fuel balance parsing not yet implemented
  - Exported JSON dataset to "parsed_output.json" - 6.6 Mb (6928567 bytes) written

Usage as a Helper Library

import eplan_parser

# [...]
# Run EnergyPLAN & whatever
# [...]

data = load_dataset("eplan_output.txt")
co2_emission = data['CO2 Emissions']['total']
print(co2_emission)

Compatibility

Tested on EnergyPLAN versions:

  • 16.2

If you've used this script and found it useful, please let me know if you got any errors or had good compatibility, especially if you're using a different version of EnergyPLAN.

Project details


Download files

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

Source Distribution

eplan_parser-0.7.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

eplan_parser-0.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file eplan_parser-0.7.tar.gz.

File metadata

  • Download URL: eplan_parser-0.7.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for eplan_parser-0.7.tar.gz
Algorithm Hash digest
SHA256 03b3ddddb64da41487d73f0e45faddc057c06f619683ad981d745798f8e8d677
MD5 59677db634c361380351ce4fd9f43950
BLAKE2b-256 721ec8810b72291e59fe051188da46c9563bb7fb13b2a1f8b368c8586606b106

See more details on using hashes here.

File details

Details for the file eplan_parser-0.7-py3-none-any.whl.

File metadata

  • Download URL: eplan_parser-0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for eplan_parser-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a72115b92a13e3d562a2e28b4c69a2d73be8313c68a8a9ad08609335c539b99c
MD5 6f16be9680b52858729021da9c484084
BLAKE2b-256 bd42820e6baac4c2303544163925b47e18be0f10ccb94ca697583cecd308efe0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page