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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
766c2e635c77f4bbfd99e7bf3fa8aaba1e4bedc86327802ef63a50a6d22b2687
|
|
| MD5 |
5d9885c32fbbe97c26c2827e1762128b
|
|
| BLAKE2b-256 |
d476b10b176019c2182dcda9752e67b291fcf1a6274c7b7a5bf48cd788f5b435
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpxml_version_translator-2.0.0.tar.gz -
Subject digest:
766c2e635c77f4bbfd99e7bf3fa8aaba1e4bedc86327802ef63a50a6d22b2687 - Sigstore transparency entry: 2291482733
- Sigstore integration time:
-
Permalink:
NatLabRockies/hpxml_version_translator@7d3dbebcf3ed449bf2b04befb1c4cf38542f9762 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_release.yml@7d3dbebcf3ed449bf2b04befb1c4cf38542f9762 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hpxml_version_translator-2.0.0-py3-none-any.whl.
File metadata
- Download URL: hpxml_version_translator-2.0.0-py3-none-any.whl
- Upload date:
- Size: 207.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d54e5ca6d9dccfd3412ab67fb84fbec1d75def210e6d2946bcec969d5c4f18a
|
|
| MD5 |
4105421b2e86ee17e79dce66cfe73ada
|
|
| BLAKE2b-256 |
0a9322382584bfa68566881829c4b70a24094927a5186bf12252ccb37542d992
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpxml_version_translator-2.0.0-py3-none-any.whl -
Subject digest:
6d54e5ca6d9dccfd3412ab67fb84fbec1d75def210e6d2946bcec969d5c4f18a - Sigstore transparency entry: 2291482754
- Sigstore integration time:
-
Permalink:
NatLabRockies/hpxml_version_translator@7d3dbebcf3ed449bf2b04befb1c4cf38542f9762 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_release.yml@7d3dbebcf3ed449bf2b04befb1c4cf38542f9762 -
Trigger Event:
release
-
Statement type: