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 Distribution
t3dpy-0.1.1.tar.gz
(25.2 kB
view hashes)
Built Distribution
t3dpy-0.1.1-cp310-none-win_amd64.whl
(211.0 kB
view hashes)
Close
Hashes for t3dpy-0.1.1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3a8e8e6885df60da996e120e40ad72e9f5ecd308172794de8f7d01dc16b0fb |
|
MD5 | d632d1fcd51371df34c651ab75893e63 |
|
BLAKE2b-256 | 10e7c981aad6c3690dc4db034b16d12a7272eec1b6331b87c73f50acfb7ffb8b |