Skip to main content

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,3.0,3.1,4.0,4.1,4.2}] hpxml_input

HPXML Version Translator, convert an HPXML file to a newer version

positional arguments:
  hpxml_input           Filename of hpxml file

options:
  -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,3.0,3.1,4.0,4.1,4.2}, --to_hpxml_version {2.0,2.1,2.2,2.2.1,2.3,3.0,3.1,4.0,4.1,4.2}
                        Version of HPXML to translate to, default: 4.2

In a Python script

from hpxml_version_translator import convert_hpxml_to_version

convert_hpxml_to_version("4.2", "path/to/in.xml", "path/to/out.xml")

It also works with path-like objects and binary file-like objects.

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-2.0.0.tar.gz (206.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpxml_version_translator-2.0.0-py3-none-any.whl (207.4 kB view details)

Uploaded Python 3

File details

Details for the file hpxml_version_translator-2.0.0.tar.gz.

File metadata

  • Download URL: hpxml_version_translator-2.0.0.tar.gz
  • Upload date:
  • Size: 206.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hpxml_version_translator-2.0.0.tar.gz
Algorithm Hash digest
SHA256 766c2e635c77f4bbfd99e7bf3fa8aaba1e4bedc86327802ef63a50a6d22b2687
MD5 5d9885c32fbbe97c26c2827e1762128b
BLAKE2b-256 d476b10b176019c2182dcda9752e67b291fcf1a6274c7b7a5bf48cd788f5b435

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpxml_version_translator-2.0.0.tar.gz:

Publisher: pypi_release.yml on NatLabRockies/hpxml_version_translator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpxml_version_translator-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hpxml_version_translator-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d54e5ca6d9dccfd3412ab67fb84fbec1d75def210e6d2946bcec969d5c4f18a
MD5 4105421b2e86ee17e79dce66cfe73ada
BLAKE2b-256 0a9322382584bfa68566881829c4b70a24094927a5186bf12252ccb37542d992

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpxml_version_translator-2.0.0-py3-none-any.whl:

Publisher: pypi_release.yml on NatLabRockies/hpxml_version_translator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page