Skip to main content

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


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 details)

Uploaded Source

Built Distribution

t3dpy-0.1.4-cp311-none-win_amd64.whl (232.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

File details

Details for the file t3dpy-0.1.4.tar.gz.

File metadata

  • Download URL: t3dpy-0.1.4.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for t3dpy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2b1cf3aee2560b413c8c50fb61d3fce2919f5daf77028e6dddf48522682c5f33
MD5 c73e2d1c6cbe1be595ab1f083a0c76b5
BLAKE2b-256 4568a04a5849488eea5929110a7b8aeec3cb1e6b16f70db3aa02a5c94a6815e4

See more details on using hashes here.

File details

Details for the file t3dpy-0.1.4-cp311-none-win_amd64.whl.

File metadata

  • Download URL: t3dpy-0.1.4-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 232.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for t3dpy-0.1.4-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 f4ad0e22697421b7c7dbe98dd8ea97f0123f06d3ce8822a3981b0c37a260d32f
MD5 0b49e988e8c0dfedfe4e40f802a827cd
BLAKE2b-256 4e28e1e00af85e084d141dcc5826b1350c56d29152558da0323699d10588dab7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page