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.3.tar.gz
(10.5 kB
view hashes)
Built Distributions
t3dpy-0.1.3-cp311-none-win_amd64.whl
(232.0 kB
view hashes)
t3dpy-0.1.3-cp310-none-win_amd64.whl
(216.1 kB
view hashes)
Close
Hashes for t3dpy-0.1.3-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca078959b1308b5e523e4d7f5a2999a5b6039aae397e754643dfec38cb1ccf2 |
|
MD5 | d2ddd3bfbf275ce1e2fc345ca6441d21 |
|
BLAKE2b-256 | 8c98e8f63ca6ed8111dbc597557f9fb7ee02b51088e89e5258bf3be8c9e43c59 |
Close
Hashes for t3dpy-0.1.3-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313e1863e7419cc3256d1d00115e500d90afeb11b5ff76dc4d11a4611de78764 |
|
MD5 | ac8de4dd655aec01df383089521efa78 |
|
BLAKE2b-256 | 0c204ea854f0368e3a0623a067faaa75416b5e995b441b5259bb1d9babeb1435 |