This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from NREL/pip_install
Pip install hescore-hpxml
- Loading branch information
Showing
25 changed files
with
114 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ docs/build | |
*.pyc | ||
.idea | ||
.DS_Store | ||
hescore_hpxml.egg-info | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
recursive-include hescorehpxml/schemas *.xsd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
HPXML to Home Energy Score Translator | ||
===================================== | ||
|
||
This translator script takes an HPXML file or directory of files as an input and generates HEScore inputs from it. The HEScore inputs are exported as json. | ||
|
||
Details of the translation assumptions as well instructions for use can be found in `the documentation <http://hescore-hpxml.readthedocs.org/en/latest/>`_. | ||
|
||
Installation | ||
------------ | ||
|
||
Use a `virtualenv <http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_. (Good idea, but not strictly required.) | ||
|
||
Install using pip:: | ||
|
||
pip install hescore-hpxml | ||
|
||
To get the latest and greatest, clone this repository, cd into the directory and install as follows:: | ||
|
||
pip install -e . | ||
|
||
|
||
How to use | ||
---------- | ||
|
||
Use the command line script:: | ||
|
||
hpxml2hescore examples/house1.xml | ||
|
||
To get some guidance on how to use the script:: | ||
|
||
hpxml2hescore -h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
''' | ||
Created on Mar 4, 2014 | ||
@author: nmerket | ||
''' | ||
# Python standard library imports | ||
import os | ||
import sys | ||
|
7 changes: 1 addition & 6 deletions
7
code/create_all_example_json.py → hescorehpxml/create_all_example_json.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from setuptools import setup | ||
# To use a consistent encoding | ||
from codecs import open | ||
from os import path | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
|
||
# Get the long description from the README file | ||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='hescore-hpxml', | ||
version='3.0', | ||
description='HPXML Translator for the HEScore API', | ||
long_description=long_description, | ||
url='https://github.com/NREL/hescore-hpxml', | ||
author='Noel Merket (NREL)', | ||
author_email='[email protected]', | ||
license='BSD-2', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2.7', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Text Processing :: Markup :: XML', | ||
], | ||
keywords='home energy score hescore doe nrel', | ||
packages=['hescorehpxml'], | ||
install_requires=['lxml'], | ||
include_package_data=True, | ||
entry_points={ | ||
'console_scripts': [ | ||
'hpxml2hescore=hescorehpxml:main', | ||
'hescorejsons=hescorehpxml.create_all_example_json:main' | ||
] | ||
} | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters