Skip to main content

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


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.1.tar.gz (191.0 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-1.0.1-py3-none-any.whl (193.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpxml_version_translator-1.0.1.tar.gz
  • Upload date:
  • Size: 191.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for hpxml_version_translator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a2ee19a253cc06a408c802cf39b41f4bc0ac0d067934bd36fd6dba91fd09bc07
MD5 779c6fca8723ec2015bd5ea36d93c3b5
BLAKE2b-256 801ee97b3a2df3be8386009e81e736f307a8d339468e208714d61e56b04de35d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpxml_version_translator-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 193.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for hpxml_version_translator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4edef7f997ad88632c2b700d694b705c49c8f1c8be8c01001419e24602d71c34
MD5 6473e4ea70339f02f5b3a4c7b0b30d7b
BLAKE2b-256 132522770266b12a1069223f3da62907c263b492f5043b714b68f6b921fd5b98

See more details on using hashes here.

Supported by

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