Convert HPXML to newer version
Project description
HPXML Version Translator
This package converts an HPXML file to a newer version.
Requirements
Python >=3.6
Installation
In general, we recommended to use a virtual environment or conda environment and then installing with pip, like so:
pip install hpxml_version_translator
Developer Installation
If you want to do work on the repo, clone this repo and install in development mode.
cd path/to/repo
pip install -e ".[dev]"
How to use
Command Line
hpxml_version_translator -h
usage: hpxml_version_translator [-h] [-o OUTPUT] [-v {2.0,2.1,2.2,2.2.1,2.3,4.0,3.0}] hpxml_input
HPXML Version Translator, convert an HPXML file to a newer version
positional arguments:
hpxml_input Filename of hpxml file
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Filename of output HPXML file. If not provided, will go to stdout
-v {2.0,2.1,2.2,2.2.1,2.3,4.0,3.0}, --to_hpxml_version {2.0,2.1,2.2,2.2.1,2.3,4.0,3.0}
Version of HPXML to translate to, default: 3.0
In a Python script
from hpxml_version_translator import convert_hpxml_to_version
convert_hpxml_to_version("3.0", "path/to/in.xml", "path/to/out.xml")
It also works with path-like objects and binary file-like objects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hpxml_version_translator-1.0.0.tar.gz
(191.0 kB
view hashes)
Built Distribution
Close
Hashes for hpxml_version_translator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4795bb288c4db9b6a3b43b906bd18a117b75c65e14970f16f1ae21da89f72c |
|
MD5 | b0193daa47fe86117b16e346327e3ac1 |
|
BLAKE2b-256 | 11c36a1b63f749ccbf5cec3a5d259cef7bf2e7ad806b643e38a9c1555f67bead |
Close
Hashes for hpxml_version_translator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 966e22f79220387d6c8da6fe14e17e0b61fc92e40ec4f7893d524ee51113ccec |
|
MD5 | 0db0e125483fb4fa5104a36ca8da8313 |
|
BLAKE2b-256 | 2cd36452f4d9e46759f5d02155da639d91186a97252899a7e5471ed27441b44b |