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.4.tar.gz
(10.6 kB
view hashes)
Built Distribution
t3dpy-0.1.4-cp311-none-win_amd64.whl
(232.3 kB
view hashes)
Close
Hashes for t3dpy-0.1.4-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ad0e22697421b7c7dbe98dd8ea97f0123f06d3ce8822a3981b0c37a260d32f |
|
MD5 | 0b49e988e8c0dfedfe4e40f802a827cd |
|
BLAKE2b-256 | 4e28e1e00af85e084d141dcc5826b1350c56d29152558da0323699d10588dab7 |