Python interface for reading and writing Tecplot data files
Project description
tecio
Python interface for reading and writing Tecplot data files.
Overview
tecio wraps Tecplot's TecIO C library to provide a Python API for
reading and writing Tecplot binary formats (.szplt, .plt) and ASCII
(.dat). It also includes command-line tools for common file operations
such as converting formats, extracting zones, and computing statistics.
Requirements: Python 3.10+, NumPy, Tecplot 360 (or the standalone TecIO library)
Installation
pip install tecio-python
The TecIO shared library (libtecio.so / libtecio.dylib) is not bundled
with this package and must be provided separately via a Tecplot 360
installation or the standalone TecIO library. Set the TECIO_LIB
environment variable to point to the library if it is not on your system
path:
export TECIO_LIB=/path/to/libtecio.so # Linux
export TECIO_LIB=/path/to/libtecio.dylib # macOS
Quick start
import tecio
import numpy as np
x = np.linspace(0, 2 * np.pi, 100)
y = np.sin(x)
with tecio.open("sine.szplt", "w") as tec:
tec.write_ijk_zone(data=[x, y], variables=["x", "y"])
Reading a file:
with tecio.open("sine.szplt", "r") as tec:
print(tec.variables) # ['x', 'y']
x = tec.zone[0].variable[0].values
y = tec.zone[0].variable[1].values
API
All file access goes through tecio.open, which selects the correct
format handler from the file extension and returns a context manager:
| Mode | Description |
|---|---|
"r" |
Read an existing file |
"w" |
Write a new file |
"x" |
Write, failing if the file already exists |
"a" |
Append new zones to an existing file |
"a+" |
Append and read in the same session |
Supported formats:
| Extension | Format |
|---|---|
.szplt |
Tecplot SZL binary (subzone-loadable) |
.plt / .bin |
Tecplot PLT binary |
.dat / .tec |
Tecplot ASCII |
Contributing
Contributions are welcome — see CONTRIBUTING.md for details.
References
Disclaimer
This project is an independent open source library and is not affiliated with, endorsed by, or supported by Tecplot, Inc. in any way. Tecplot and TecIO are trademarks of Tecplot, Inc. Use of the TecIO library requires a separate license from Tecplot, Inc.
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
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 tecio_python-0.1.0.tar.gz.
File metadata
- Download URL: tecio_python-0.1.0.tar.gz
- Upload date:
- Size: 155.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3309104d7e1130d61bfaa4503fb42b64e2bd4ed5b936364b3b9eee8672fcb34
|
|
| MD5 |
7cd818adf9dcc5dcada1710d60f2b7be
|
|
| BLAKE2b-256 |
03734a56f1b44c49ca19aa2fe61df34616e3bae9fa254e8531b558462ea563e9
|
Provenance
The following attestation bundles were made for tecio_python-0.1.0.tar.gz:
Publisher:
publish.yml on meersman/tecio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tecio_python-0.1.0.tar.gz -
Subject digest:
a3309104d7e1130d61bfaa4503fb42b64e2bd4ed5b936364b3b9eee8672fcb34 - Sigstore transparency entry: 1807455656
- Sigstore integration time:
-
Permalink:
meersman/tecio@77ba885da34208bd6017013cd04d5936935e71f8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/meersman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@77ba885da34208bd6017013cd04d5936935e71f8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tecio_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tecio_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 133.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a1e575f846a48d72c16a67482067ffe4d0eb9b2d0f4ec115c915a8f8cd44bf2
|
|
| MD5 |
5376f4f0c9ed88acf69abb5c2f73db69
|
|
| BLAKE2b-256 |
0d75168ce0a6d8043d4a20ea929fb34257b61be5828cb751e13045427dadb50c
|
Provenance
The following attestation bundles were made for tecio_python-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on meersman/tecio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tecio_python-0.1.0-py3-none-any.whl -
Subject digest:
4a1e575f846a48d72c16a67482067ffe4d0eb9b2d0f4ec115c915a8f8cd44bf2 - Sigstore transparency entry: 1807455880
- Sigstore integration time:
-
Permalink:
meersman/tecio@77ba885da34208bd6017013cd04d5936935e71f8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/meersman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@77ba885da34208bd6017013cd04d5936935e71f8 -
Trigger Event:
push
-
Statement type: