No project description provided
Project description
t3d-python
A Python 3.10+ module for reading T3D files.
This library is still a work-in-progress.
Installation
virtualenv venv
source ./venv/Scripts/activate
pip install maturin
maturin develop
Usage
from t3dpy import read_t3d
with open('./data.t3d', 'r') as fp:
# Read the T3D file.
objects = read_t3d(fp.read())
# Iterate over the top-level objects.
for t3d_object in objects:
# Print the type of object.
print(t3d_object.type_)
# Print the child objects.
print(t3d_object.children)
# Print the list of properties (order not guaranteed to match input)
print(t3d_object.properties)
# Get a specific property by name.
print(t3d_object["SomeProperty"])
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
t3dpy-0.1.0-cp310-none-win_amd64.whl
(210.6 kB
view hashes)
Close
Hashes for t3dpy-0.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9340a10f8b682d5f2e7b6a47abf29b9ab1f51763898eea2162b0c1760a89fa32 |
|
MD5 | 86a3c966b6d5cadb9e4e4f59c6e0bfa5 |
|
BLAKE2b-256 | af51adb03cfeef8947de06aa2761b852b11e67f1db1ac927a1bd31d0a7ee6675 |