xtvreader
Python application for reading TRACE XTV graphics files.
This is the Python 3.x version of the application. References in documentation or examples to import xtvreader work out of the box when the package is installed.
Originally written by Josh Whitman.
Installation
We recommend installing xtvreader as a standard package.
1. From a Local Clone
To install the package in your active Python environment, navigate to the repository root and run:
pip install .
2. Editable/Development Mode
If you are developing or modifying the library, install it in editable mode:
pip install -e .
3. Directly from GitHub
You can install xtvreader directly from the repository using pip:
pip install git+https://github.com/NRC-Research/xtvReader.git
Dependencies
The package requires py-xdrlib>=1.0 as a dependency to ensure compatibility with Python 3.11+ and Python 3.13 (where xdrlib was removed from the standard library). This is handled automatically by pip during installation.
Virtual Environment Setup
To keep your system Python clean, we encourage using a virtual environment:
# Create a virtual environment
python3 -m venv .venv
# Activate it
source .venv/bin/activate # On macOS/Linux
# .venv\Scripts\activate # On Windows
# Install the package locally
pip install -e .
Usage
In a Python Script
You can import XtvFile directly from the package:
from xtvreader import XtvFile
# Open an XTV file
with open('path/to/file.xtv', 'rb') as f:
xtv = XtvFile(f)
# Retrieve a data channel value
data = xtv.getTimeVector('alpn-1A02')
print(data)
Command Line Tools
Two utility scripts are provided at the root of the repository:
xtv2csv.py: Convert XTV graphics files to CSV format.python xtv2csv.py file.xtv -var alpn-1A02
htstrTest.py: Read and extract peak cladding temperature (PCT) data from heat structures.python htstrTest.py
Original Module Details
xtvreader is a native Python module for retrieving values from a TRACE XTV file. It exposes the XtvFile class which reads header information and spawns component objects dynamically. The header information determines exactly which bytes must be read to extract a specific data point at any edit. If times or axial locations are requested between edits or mesh indices, values are interpolated linearly.
Limitations
It does not contain any of the batch command helper functions that AptPlot and PyPost batch languages provide.
Metadata
Release files for xtvreader 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xtvreader-1.1.0.tar.gz | 36.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xtvreader-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.6 kB
Release files / xtvreader-1.1.0.tar.gz
| Download URL | xtvreader-1.1.0.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
946691296bdfbf0ad09999af0a511a845b51d14cfdf9c41f2aa9a8dc26bfe837
|
|
BLAKE2b-256 checksum How to use checksums |
07495be6ebaeaa2ca0bcaa4221b6b54468f469b880d72728f7aa039c7f3c16c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logRelease files / xtvreader-1.1.0-py3-none-any.whl
| Download URL | xtvreader-1.1.0-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b720ba9c997dc6911117c32a60a9ab14bc38afbd404ae22dabf80c14e448308b
|
|
BLAKE2b-256 checksum How to use checksums |
680cd8579ee74483eae2676370cecf080a10c6af3e46812a2d6ff98a643abc36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency log