Skip to main content

types-tde4

types-tde4

License Version Related Related Python GitHub

This package contains stubs with Waterloo Docstrings for the tde4 module from 3DE4's Python API.

It is useful when writing 3DE4 scripts outside the embedded 3DE4 Python editor, for example in VS Code. After installation, language servers such as Pylance can use the stubs to provide function signatures, type information, auto-completion, and inline documentation for tde4 API calls.

The package does not provide a runtime implementation of tde4. Scripts still have to run inside 3DEqualizer4, or in an environment where 3DEqualizer4 provides the extension module.

Use Cases

Static Type Checking with mypy

Once the package is installed, type annotations can be validated with a static type checker. Consider the following correctly annotated test script:

from __future__ import annotations

import tde4

def create_ref_camera() -> tde4.CameraID_t:
    return tde4.createCamera("REF_FRAME")

def camera_type(camera_id: tde4.CameraID_t) -> tde4.CameraType_t:
    return tde4.getCameraType(camera_id)

def maybe_current_camera_type() -> tde4.CameraType_t | None:
    camera_id = tde4.getCurrentCamera()
    if camera_id is None:
        return None
    return camera_type(camera_id)

Without types-tde4 installed in the Python environment used by mypy, the check fails because mypy cannot find stubs for the extension module:

/.../test_types_tde4_simplified.py:3: error: Cannot find implementation or library stub for module named "tde4"  [import-not-found]
/.../test_types_tde4_simplified.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

After installing types-tde4 into that same Python environment, mypy can resolve the tde4 stubs automatically:

Success: no issues found in 1 source file

VS Code / Pylance

With types-tde4 installed, Pylance in VS Code can find signatures and docstrings for functions in tde4. Tooltip rendering is not perfect because the Waterloo Docstring format is not yet supported by Pylance.

types-tde4

Installation

pip install types-tde4

Metadata

Release files for types-tde4 0.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for types-tde4 0.1.16
File Size Uploaded Provenance
types_tde4-0.1.16.tar.gz 126.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for types-tde4 0.1.16
File Interpreter ABI Platform
types_tde4-0.1.16-py3-none-any.whl Python 3 none any Details

Total release size: 253.6 kB

Release files / types_tde4-0.1.16.tar.gz

Download URL types_tde4-0.1.16.tar.gz
Size 126.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63182c43fe3780153322b73e2dc357f24daab502ed7591fd4208875a27f0df40
BLAKE2b-256 checksum
How to use checksums
c0d7125858816bdcc4bb7ea22f4e583e5ea5a1e4b96ee4b8c4f60dbf027e2cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Release files / types_tde4-0.1.16-py3-none-any.whl

Download URL types_tde4-0.1.16-py3-none-any.whl
Size 126.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9afe1bb0bb4914f0dc4e4537c260c230215fa0967b4ed021961a4efa8e8e0e03
BLAKE2b-256 checksum
How to use checksums
696a496ffd7dfaea724d69015a5860f413f77f4cb88ebc589817fc2b62eff1c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Security for types-tde4 0.1.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for types_tde4-0.1.16.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page