Skip to main content

threepp for Python

threepp is a cross-platform C++ 3D library with the high-level API of three.js. This package exposes that high-level API to Python through a single pybind11 extension module, threepp.

You get the three.js scene graph — Scene, Mesh, geometries, materials, cameras, lights, OrbitControls, an animation loop — plus headless render-to-numpy for ML data generation, robotics cameras and machine vision.

import threepp as tp

scene = tp.Scene()
scene.add(tp.Mesh(tp.BoxGeometry(), tp.MeshStandardMaterial()))
scene.add(tp.AmbientLight())

camera = tp.PerspectiveCamera(75, 1.0, 0.1, 100)
camera.position.z = 5

canvas = tp.Canvas("demo")
renderer = tp.GLRenderer(canvas)
canvas.animate(lambda: renderer.render(scene, camera))

Install

Status: pre-1.0 / alpha. This is a young package and the API is still moving — it may change between releases. Releases are dated (a YYYY-MM-DD tag builds a YYYY.MM.DD wheel); pin the exact release you tested and check the release notes before upgrading.

Prebuilt wheels (Windows / Linux, CPython 3.10–3.14) are on PyPI — no build tools or system libraries needed:

pip install threepp

They ship the GL renderer, CPU PhysX physics (PhysxWorld, articulations, proprioceptive sensors — tp.HAS_PHYSX == True) and the Vulkan deferred renderer with its G-buffer AOVs (tp.HAS_VULKAN == True). Vulkan needs a Vulkan-capable GPU driver at runtime — on machines without one the wheel still imports and renders GL, and tp.vulkan_available() tells you which world you're in. The Windows wheels also carry the FSR 3.1 upscaler (tp.HAS_FSR == True), which the Vulkan renderer uses by default where the GPU supports it (renderer.fsr_available; renderer.fsr = False hands back to the built-in TAA). Linux has no FSR (AMD's runtime is a Windows binary), and no wheel has DLSS, which needs a source build on Windows. macOS has no prebuilt wheel — pip install builds it from source there (GL-only; a C++ compiler and CMake are all it needs).

The scene editor is its own package — author physics-ready scenes, robots and sensors visually, then drive them from Python:

pip install threepp-editor      # or: pip install threepp[editor]  (Windows)
threepp-editor

(threepp[full] = [rl,editor]. The editor ships Windows wheels only; the extra is a no-op elsewhere, and pip install threepp-editor states the platform requirement honestly.)

Or build from source (needs a C++ compiler + CMake ≥ 3.21; pybind11 is fetched automatically):

pip install "git+https://github.com/markaren/threepp"

Physics in the wheel is CPU-only — the GPU runtime (PhysXGpu_64.dll) is 238 MB and stays out. Everything PhysxWorld does by default works. The GPU paths need the two GPU DLLs (PhysXGpu_64.dll + PhysXDevice64.dll) dropped next to the installed module (they are loaded lazily by name, never linked): that alone enables PhysxWorld(gpu_dynamics=True) and the direct-GPU RL batch (verified). Soft bodies (PhysxWorld.add_soft_body) run only on the GPU solver, so they need the same two DLLs. Where the PhysX SDK itself has no CUDA backend (macOS) that whole half is compiled out: threepp.HAS_PHYSX_GPU is False, gpu_dynamics=True raises, and SoftBody, PhysxSoftBodyMaterial, PhysxGpuBatch and the *_soft_body* methods are absent.

Build

The module is built as part of threepp's CMake project, gated behind THREEPP_WITH_PYTHON. pybind11 is fetched automatically; the host Python is auto-detected (override with -DPython_EXECUTABLE=...).

cmake -S . -B build -DTHREEPP_WITH_PYTHON=ON \
      -DTHREEPP_BUILD_EXAMPLES=OFF -DTHREEPP_BUILD_TESTS=OFF
cmake --build build --target threepp_py

(On Windows, CMake defaults to the multi-config Visual Studio generator; the build works under it, but -G Ninja gives a faster single-config build.)

The built module (threepp.*.pyd / threepp.*.so) is placed in this python/ directory, so scripts here can import threepp. The examples add this directory to sys.path automatically, so they run from anywhere.

This is a GL-only build — it needs no Vulkan SDK, PhysX or CUDA, and works on any laptop. Off-screen rendering uses a hidden GLFW window (a real GL context), so a display is only required for the on-screen examples.

Examples

Script What it shows
examples/hello_cube.py On-screen window: spinning, lit cubes you can orbit (OrbitControls + animation loop). Needs a display.
examples/pbr_showcase.py Photoreal PBR playground — metals + glowing gems under a procedurally generated HDR sky (no assets), ACES tone mapping, live ImGui controls. --shot out.png renders headless.
examples/text_overlay.py Text & SVG overlay — billboard TextSprite labels on 3D objects + a 2D HUD (Text2D + SVGLoader badge) via an OrthographicCamera overlay pass.
examples/headless_render.py Off-screen render straight into a (H, W, 3) uint8 numpy array; saves a PNG. No window.
examples/textured_box.py Load an image with TextureLoader and map it onto a mesh (headless).
examples/load_model.py python load_model.py model.glb — load a model with ModelLoader, auto-frame and render it.
examples/research_scenes.py The classic rendering-research scenes (Cornell box, Veach MIS, BMW M6, kitchen, ...) as glTF from gltf-research-scenes, fetched on demand: --list reads only the release zip's index, opening a scene pulls just its files out of the remote zip (HTTP byte ranges, CRC-checked) into ~/.cache/threepp/models, and the viewer starts at each file's reference camera. Pick scenes in the ImGui panel; --shot out.png renders headless.
examples/vulkan_aovs.py Vulkan deferred render → G-buffer AOVs (normals / segmentation / albedo / depth) as numpy. Needs a Vulkan build.
examples/vulkan_ocean.py The FFT-displaced Ocean — fancy water (waves, foam, transmission) in one line; orbit around it live. Needs a Vulkan build + display.
examples/ui_demo.py In-window Dear ImGui control panel (sliders/buttons) driving the scene live, on GL or (--vulkan) over the Vulkan deferred renderer. Needs a display.
examples/physics_demo.py A pile of boxes tumbling onto the floor — PhysxWorld rigid bodies driving the scene graph. Needs a PhysX build + display.
examples/imu_demo.py Headless IMU — a box dropped onto the floor with an Imu mounted off-CoM; prints the physics-truth table (free fall ~0, at rest ~+9.81). Needs a PhysX build; no display.
examples/cartpole/train_cartpole.py / play_cartpole.py GPU-vectorized RL end to end — a VecTask cartpole swing-up trained with the owned threepp.rl PPO (committed checkpoint included; play renders the result). Needs a PhysX GPU build + torch.
examples/spot/ Quadruped RL family — Spot locomotion policies (steps, stairs, heightfield), sim-to-sim deploy into the editor, depth scanning; see its README.
threepp-lessons Explainer videos made with threepp: what threepp is, a first app, Snake, inverse kinematics, depth to map, an IMU, PID control, Warp, sockets. Narrated films rendered headless with threepp.lesson, in a repository of their own.
examples/probes/smoke_test.py Assertion-based regression test of the whole surface; prints ALL OK.
cd python
python examples/headless_render.py

The rest of examples/, by what it is about. One line per script, from its own module docstring.

Basics

Script What it shows
examples/animation.py Keyframe animation driven by an AnimationMixer.
examples/transform_controls.py TransformControls — grab the gizmo to translate, rotate or scale a mesh.
examples/mouse_picking.py Mouse picking on an InstancedMesh: input callbacks, Raycaster.set_from_camera, and set_matrices from one numpy array per frame. --headless writes a still.
examples/terrain_demo.py The procedural terrain generator, with its parameters on sliders.
examples/tree_demo.py The procedural tree generator, likewise.

Sensors

Script What it shows
examples/depth_sensor.py DepthSensor showcase: live coloured point cloud, incremental VoxelGrid map, marching-cubes surface.
examples/torch_frames.py Zero-copy frames out — the Vulkan renderer's images as live torch tensors.

Physics and robots

Script What it shows
examples/urdf_arm.py Import any URDF as a PhysX articulation and wave its joints.
examples/stewart_balancer.py A 6-leg Stewart platform balancing a ball along a rose curve: LQR + IK + stepper dynamics.
examples/tendon_hand/ A tendon-driven anthropomorphic hand, built so the mechanics are right, and a GPU-trained policy that holds on with it through a roll-over; see its README.
examples/usv/ Maritime Robotics' Mariner and Otter X sea drones, each built from one spec file by headless Blender, floating on the FFT ocean on their own buoyancy tables and driven by the Mariner's waterjet or the Otter X's azimuth pods (Vulkan); see the README.

Warp films — NVIDIA Warp simulation rendered live by threepp. Each is self-contained; what they share lives in examples/warp_common.py.

Script What it shows
examples/warp_cloth.py GPU cloth, the smallest complete Warp + threepp loop.
examples/warp_round_trip.py Warp both ways round: a cloth and sparks written into buffers the Vulkan renderer shares, and the finished frame read back in place by a Warp kernel that turns it into an event camera.
examples/warp_cloth_toss.py Can a cloth throw a ball? The spike behind the toss demo.
examples/warp_cloth_catch.py Four arms catch a cannonball in a cloth, throw it up, and four drones net it.
examples/warp_fluid.py A PBF liquid surfaced by marching cubes.
examples/warp_water_balloon.py A water balloon and a needle — the shell tears and the water leaves.
examples/warp_hydraulic_press.py A chrome sphere crushed by a hydraulic press in a Cornell box.
examples/warp_explosion.py Blast Yard: a brick test range demolished by a charge (PhysX + Warp + Vulkan).
examples/warp_gummy_rain.py Hundreds of soft jelly candies pour into a glass bowl, each one its own XPBD lattice.
examples/warp_soft_tentacle.py Soft robotic tentacles, tapered XPBD tet bodies, each wrap a ball and lift it.
examples/warp_jelly_wreck.py A wall of jelly blocks smashed by a chrome wrecking ball, with an event-camera and lidar mosaic (sensor_panels.py).
examples/warp_nebula.py A particle nebula: 18M additive points on GL, or (--vulkan) the same disk as a VOLUME through the Vulkan particle sprites.
examples/warp_prop_vortex.py A twin-screw stern cavitating underwater.
examples/warp_sailboat.py A sailboat whose sails are Warp cloth, sailing the FFT ocean in the mist.
examples/warp_mudsnow.py Deformable ground: the same boots and rolling ball, in mud and in snow.
examples/warp_mudsnow_mpm.py The same ground as MLS-MPM granular material.
examples/warp_mudsnow_drive.py A Range Rover driven over Bekker-Wong ground (mud, snow, packed clay), plus --gravel and --sand lanes where MLS-MPM grains carry the car, and a dune it can get stuck on.

Granular soil and rovers: wheels carried by MLS-MPM grains (threepp.granular_mpm), checked against single-wheel terramechanics data.

Script What it shows
examples/warp_wheel_testbed.py One rigid wheel in a bin of grains, its height and drawbar pull set by the soil, not prescribed.
examples/rover/warp_rover_slope.py A VIPER-class rover wheel's slip sweep against NASA's single-wheel data, and the four-wheel cost.
examples/rover/warp_rover_demo.py TP-1, a four-wheeled lunar-rover-class vehicle, climbs a tilting sand bed until the grains stop it. Build the model once with build_rover_blender.py.

Film kits — reusable pieces a film imports. Renderer-only (no Warp); each runs standalone too.

Script What it shows
examples/fireworks.py FireworkShow: a staggered firework display as one ParticleField plus a PointLight per shell, closed-form in the scene clock so any frame can be seeked. Run it for the show over water, replaying; orbit it live. Needs a Vulkan build + display.
examples/rigs/drone_rig.py Drone (attitude derived from the path), Route (authored legs, smoothed as a signal and held above terrain and canopy) and FollowCamera (precomputed and filtered the same way). Renderer-free smoke test.
examples/rigs/usv_rig.py A boat on the FFT ocean for any scene: StripHull (Bonjean-strip buoyancy and a 6-DOF rigid body, held by a soft DP or moved by a drive), the drives of the Mariner, the Otter X and the Otter (thrust, resistance, helm, actuator nodes, foam), Wake (hull footprint and Kelvin wake) and Wash (the propulsors' races, the hull's lane and the waves her weight makes, as sources of the ocean's wake field). Imports no renderer.
examples/rigs/evoque_rig.py The Range Rover Evoque for any scene: Shell (the model on four wheel rigs that turn, lamp materials, a paint; a box without the model) and Car (PhysxVehicle with the Evoque tuning under it, drawn between the last two physics steps), with the keyboard helm. warp_mudsnow_drive.py drives it.

Inverse design — an optimiser, not an animator, decides the shape.

Script What it shows
examples/warp_hull_sculpt.py Differentiable hull sculpting: gradient descent designs a hull, live in the water.
examples/lidar_sculpt.py Sculpting against a sensor: a body reshaped to hide from, or shout at, the engine's own LIDAR.

Probes — instruments, not demos: each answers one question and prints (or writes) the answer. They live in examples/probes/ with smoke_test.py above; see its README.

Script What it measures
examples/probes/sensor_audit.py Sensor replay audit for any machine that can pip install threepp: does every sensor stream replay bit for bit across fresh processes and GPUs.
examples/probes/multiview_bench.py E2: same-instant multi-view — the temporal-coherence triptych and the frame-time curve for 1 to 8 views.
examples/probes/tendon_probe.py Measures what PhysX articulation tendons actually do, before building a hand on them.
examples/probes/idun_egl_smoke.py Hardware OpenGL on a display-less GPU node through EGL, and a check that the GPU drew it.

What's exposed

  • Math (mutable value types): Vector2/3/4, Color, Euler, Quaternion, Matrix3/4, Box3. A hex int (0xff0000) or CSS/name string converts implicitly to a Color, so material.color = 0xff0000 just works.

  • Scene graph: Object3D, Scene, Group, Mesh, InstancedMesh, Points, Line, LineSegments, Sprite. obj.position.x = 1 mutates in place, exactly like three.js; scene.add(a, b, c), traverse, get_object_by_name, children all work.

  • Geometries: Box, Sphere, Plane, Cylinder, Cone, Capsule, Torus, TorusKnot, Circle, Ring, Icosahedron, Octahedron, plus the swept/extruded pair — TubeGeometry(curve, ...) and ExtrudeGeometry(shape, depth=...) / ShapeGeometry(shape).

  • Curves and 2-D shapes: CatmullRomCurve3, LineCurve3 (both Curve3), LineCurve, SplineCurve, Path (both Curve2) and Shape — the sampling API (get_point, get_point_at, get_tangent, get_points, get_spaced_points, get_length) is shared by all of them. For long polylines use the array forms, which move no per-point Python objects: CatmullRomCurve3.from_array(points) / SplineCurve.from_array(points) take an (N, 3) / (N, 2) float array, and get_points_at(u), get_tangents_at(u), get_points_array(n), get_spaced_points_array(n) return (N, D) float32 arrays.

  • Materials: MeshStandard, MeshPhysical, MeshPhong, MeshLambert, MeshBasic, MeshNormal, MeshDepth, Points, LineBasic, Sprite, Shadow — concrete fields, the shared base fields (opacity, transparent, side, …), and texture-map slots (map, normal_map, roughness_map, metalness_map, emissive_map, ao_map, alpha_map, …).

  • Cameras: PerspectiveCamera, OrthographicCamera.

  • Lights: Ambient, Directional, Point, Spot, Hemisphere, RectArea.

  • Textures: Texture, TextureLoader (load(path, color_space=...)), with TextureWrapping / Filter / ColorSpace enums.

  • Model loaders: ModelLoader (load(path) → Group, dispatches by extension: .obj / .gltf / .glb / .stl / .dae), plus OBJLoader, STLLoader, and GLTFLoader (load(path) → GLTFResult with .scene and .animations). All first-party — no Assimp/USD needed.

  • Animation: AnimationMixer, AnimationClip, AnimationAction, the KeyframeTrack family (Vector/Quaternion/Number/Color), and the Loop / AnimationBlendMode / Interpolation enums — three.js' animation system. Play clips loaded from glTF, or build them procedurally:

    result = tp.GLTFLoader().load("model.glb")
    scene.add(result.scene)
    mixer = tp.AnimationMixer(result.scene)
    mixer.clip_action(result.animations[0]).set_loop(tp.Loop.REPEAT).play()
    
    clock = tp.Clock()
    canvas.animate(lambda: (mixer.update(clock.get_delta()),
                            renderer.render(scene, camera)))
    
  • Rendering: Canvas (window / headless), GLRenderer (render, set_clear_color, read_pixels → numpy, save_frame, shadows, tone_mapping / tone_mapping_exposure), OrbitControls, Clock.

  • Input and picking: Canvas.is_key_down polling, on_key_pressed / on_key_released / on_key_repeat and on_mouse_down / on_mouse_up / on_mouse_move / on_mouse_wheel callbacks, mouse_position(), and a Raycaster (set_from_camera, intersect_object(s) → Intersection with instance_id). InstancedMesh.set_matrices writes an (N, 4, 4) or (N, 16) numpy array in one call.

  • HDR image-based lighting: RGBELoader().load("env.hdr") (or EXRLoader for .exr) → an equirect Texture; assign it to scene.environment (IBL on standard/physical materials) or scene.background. ToneMapping.ACESFilmic (etc.) keeps HDR highlights from clipping.

  • Camera intrinsics / extrinsics: camera.projection_matrix, matrix_world_inverse, obj.matrix_world, get_world_quaternion, Matrix4.to_numpy() (→ (4, 4)), and Vector3.project(camera) / unproject for 3D↔2D — the building blocks for 6-DoF pose ground truth and 2D annotation.

  • URDF robots: URDFLoader().load("robot.urdf") → a Robot (an Object3D) with set_joint_value(s), get_joint_range(s), num_dof, and forward kinematics (get_end_effector_transform() / compute_end_effector_transform).

  • 2D text & SVG: FontLoader().default_font() (embedded — no font file), Text2D / Text3D (text meshes), TextSprite (billboard labels), and SVGLoader().parse(...) → a Group of filled meshes. Pair with an OrthographicCamera + auto_clear=False for a HUD. For HUD text, build the labels as TextSprite(font, world_scale=h, box=tp.TextBox.Line): h is then the height of a line of the font, so every string has the same glyph size and baseline (the default sizes each sprite by its own string's ink).

  • In-window UI: ImguiContext + the threepp.imgui submodule — Dear ImGui immediate-mode widgets (window/text/button/slider/checkbox/color/combo/…) for control panels. Works on both the GL and Vulkan renderers (tp.HAS_IMGUI).

  • 3D Gaussian Splatting: SplatLoader.load_ply() reads the .ply files 3DGS optimisers emit (any SH degree, header-driven), SogLoader reads PlayCanvas SOG scans, and SplatCloud puts the result in the scene graph like any mesh — rendered by both the GL and Vulkan backends. is_splat_ply() discriminates splat files from mesh PLYs; submit_ranges exposes the chunk-LOD/culling mechanism (Vulkan).

  • Mesh collision queries: BVH — BVH.intersects(a, b) (exact triangle-triangle, early-exit), BVH.intersect(a, b) → an (N, 3) array of points on both surfaces, BVH.distance(a, b, max_distance=...), and raycast. Build from a BufferGeometry or from numpy (build_arrays(positions, indices)). Every query releases the GIL; intersects_many, intersect_many and distance_many evaluate a candidate x target grid in parallel in one call:

    volumes = [tp.BVH() for _ in tracks]
    for bvh, track in zip(volumes, tracks):
        g = tp.TubeGeometry(tp.LineCurve3(*track), radius=5.0, radial_segments=8)
        bvh.build_arrays(g.get_attribute("position"), g.get_index())
    
    hits = tp.BVH.intersects_many(candidates, volumes)      # (C, T) bool
    when = tp.BVH.intersect(candidates[0], volumes[2])[:, 1]  # y of each contact point
    
  • Layers: obj.layers / camera.layers (set, enable, disable, test) — the three.js visibility mask.

  • Rigid-body physics (when built with PhysX, see below): PhysxWorld + RigidBody — add Meshes as dynamic/static bodies (box/sphere/capsule, convex hull, or triangle mesh), step(dt), and the bound meshes follow the simulation (tp.HAS_PHYSX). Reduced-coordinate Articulations (URDF robots with joints, limits and drives), PhysxVehicle and GPU SoftBodys are bound too.

  • Proprioceptive sensors (PhysX builds): Imu (gyroscope + accelerometer), JointEncoder, ContactSensor and ForceTorqueSensor — attached to scene nodes, driven from the physics step loop, with configurable seeded NoiseModels. See Proprioceptive sensors below.

  • Vulkan deferred renderer + G-buffer AOVs (when built with Vulkan, see below): VulkanRenderer.render_aov(scene, camera, aov) returns a deferred G-buffer attachment as (H, W, 3) uint8 — 'rgb', 'normals', 'segmentation' (per-instance ids), 'albedo', 'motion' — and the lossless typed family reads the native attachments: read_depth (metric (H, W) float32), read_instance_ids (raw uint32 ids), read_normals_float, read_motion, read_aovs_typed. This is the "labels for free" path for synthetic-data generation.

  • FFT ocean (renders under the Vulkan backend): tp.Ocean(size=1000.0) is a ready-made 3-cascade Phillips/FFT-displaced water surface — waves, foam, and transmission. Add it to a scene and render. Tune ocean.params (wind / cascades / choppiness), pack vertex density toward any focus with warp_toward(x, z), and read the wave height on the CPU with sample_height(x, z) (lazy opt-in: the first call enables the GPU->CPU mirror and may return 0 — values are live from the next rendered frame). The low-level tp.DisplacedMesh (own geometry + material) is exposed too. Not tied to any "hero" object — see examples/vulkan_ocean.py.

  • Pure-Python helpers that ship in the package beside the native module: threepp.cuda_interop (a mesh's vertex buffers as CUDA arrays an external producer writes in place) and threepp.torch_frames (the Vulkan renderer's images as live torch tensors), both NVIDIA-only; threepp.terrain_deform (Sumner/O'Brien/Hodgins deformable ground with a Bekker-Wong bearing, batched in Warp) and threepp.granular_mpm (MLS-MPM granular soil with two-way rigid wheel and plate colliders, in Warp); threepp.urdf (a URDF straight into a PhysX articulation), threepp.usd (the same from a USD robot, in builds with THREEPP_WITH_USD) and threepp.rl. The Warp modules import Warp only on first use, so import threepp never needs it. threepp.capture renders a scene headless on either backend and returns the picture with the frame's GPU pass timings (capture.render(scene, camera, backend="vulkan", frames=60, path="out.png").report()), compares two pictures with the golden test's metric and gate (capture.compare(a, b).passes(): PSNR and per-channel max delta), path-traces a still scene on the Vulkan renderer for a reference picture (capture.path_trace(scene, camera, samples=4096), the same TLAS, materials, lights and environment the frame renders; also renderer.path_trace_begin() / path_trace_read() for a session driven by your own render loop), and reads and writes PNGs with the standard library alone. threepp.lesson is the experimental explainer-video toolkit (see below).

Naming follows Python conventions (snake_case methods/properties), e.g. camera.update_projection_matrix(), renderer.set_clear_color(...).

Explainer videos (experimental)

threepp.lesson is the toolkit behind the lesson films: named beats on a timeline, a headless studio stage, a 2D layer drawn by threepp (text, maths, plots, captions, source code), and H.264 out. A lesson renders in two passes: everything stateful runs once, then render(t) is a pure function of the clock, so any frame renders on its own. It is experimental: its API may change between releases, and import threepp does not load it.

import threepp as tp
from threepp.lesson import Hud, Stage, Timeline, fade_in_out, run, standard


def setup(width, height):
    tl = Timeline().add("turn", 0.5, 4.5).then("hold", 1.5)
    st = Stage(width, height)                  # a headless GL renderer and a dark studio
    box = tp.Mesh(tp.BoxGeometry(0.6, 0.6, 0.6), standard(0x4cc9f0, roughness=0.35))
    box.position.y = 0.3
    st.scene.add(box)
    st.look([1.6, 1.1, 2.2], [0.0, 0.3, 0.0], fov=35)
    ov = Hud(width, height)                    # the 2D layer, in pixels; st.project() answers in them
    captions = [(0.5, 3.5, "A box that turns."), (3.8, 5.6, "Then it holds still.")]

    def render(t):                             # pure in t, so any frame renders on its own
        box.rotation.y = 3.1416 * tl.p("turn", t)
        ov.begin()
        ov.captions(t, captions)
        ov.fade(fade_in_out(t, tl.duration))
        ov.end()
        return st.frame(t, hud=ov)
    return render, captions


run("box", 6.0, setup)      # lesson_out/box.mp4, narrated by Kokoro; --help lists the rest

run owns the command line: the film at 1920x1080 (--preview for 960x540 at 30 fps), one stretch (--from/--to), --stills, a contact --sheet, the captions as an --srt, or --gate DIR, a record of frames and narration to compare after a refactor. Kokoro reads the captions aloud unless --no-voice, and where a line outruns its caption the film holds the picture until it has been said. A frame loop of your own writes H.264 through Film.

It needs only numpy. The extras add what it imports on first use:

pip install "threepp[lesson]"      # matplotlib (equations) and imageio-ffmpeg (Film)
pip install "threepp[narration]"   # Kokoro reads the captions aloud (Python 3.10 to 3.12)

On Python 3.13+, Kokoro installs only by hand; Narration prints the recipe. Never a plain pip install kokoro: it resolves to an old release that pins numpy 1.26.

Tests

A pytest suite under tests/ covers the whole surface — math, scene graph, geometries, materials, cameras, lights, textures, loaders and headless rendering — including regression tests that pin the pybind11 virtual-base workaround (they crash the interpreter if it ever regresses).

pip install pytest numpy pillow
cd python
pytest

examples/probes/smoke_test.py is a dependency-light standalone alternative that prints ALL OK.

Type stubs (IDE autocomplete)

Stubs ship alongside the module as a PEP 561 stub package, mirroring the native module's own structure:

threepp/py.typed                 # PEP 561 marker (makes the types count once installed)
threepp/threepp/__init__.pyi     # the threepp.threepp extension module
threepp/threepp/imgui.pyi        # the threepp.threepp.imgui submodule
threepp/threepp/editor.pyi       # the threepp.threepp.editor submodule — HAND-MAINTAINED

This replaces the old flat threepp/threepp.pyi, which could not describe the imgui submodule. The threepp/threepp/ directory sits next to threepp.<abi>.pyd / .so but does not shadow it at import time: it has no __init__.py, so it is only a namespace-package candidate, and Python's import machinery prefers the extension-module loader within the same directory.

Regenerate after changing the bindings:

pip install -r python/requirements-stubs.txt
cmake --build build --target threepp_stubs

Or, once the module is built into the package dir, standalone:

python python/scripts/gen_stubs.py

pybind11-stubgen is pinned in requirements-stubs.txt because its output layout and formatting change between releases — an unpinned upgrade is what silently reshaped the stubs from a flat file into this package. Bump the pin deliberately, regenerate, and review the diff.

scripts/gen_stubs.py wraps the generator so the result is reproducible: it fixes the flags, repairs any keyword-named binding (see below), fails if the emitted stub does not parse, and fails if regeneration dropped symbols the committed stubs declare. The bare pybind11-stubgen CLI exits 0 even when it writes a stub no type checker can read, which is how the previous stubs went stale unnoticed.

The stubs describe whatever the built module exposes, so regenerate from a build with the same features as the last one — Vulkan, PhysX, FSR. A default or GL-only rebuild drops VulkanRenderer, the PhysX world and every sensor binding, and the result still parses, so nothing else would catch it.

gen_stubs.py guards this: it snapshots the committed stubs' symbols before regenerating and fails if any disappeared, naming them. If a reduction is genuinely intended, say so:

python python/scripts/gen_stubs.py --allow-removals

editor.pyi is hand-maintained

Every other stub here is generated; editor.pyi is written by hand, and gen_stubs.py restores it verbatim after each run (HAND_MAINTAINED).

threepp.editor is served by two modules built from the same binding sources: this wheel, and the editor app's embedded interpreter. Only the editor compiles src/bind_editor_physics.cpp — RigidBody, SoftBody, Articulation and the three *_from_object lookups are handles onto a live PhysicsPlaySession, which nothing outside a running editor has, so the wheel does not bind them. The stub has to describe the union for a script author's completion to be right, and a stub generated from the wheel alone would delete the physics half (41 symbols).

So: change bind_editor_physics.cpp, and edit editor.pyi to match. The restore happens after the produced-files check, so a threepp.editor that disappeared from the module still fails the run rather than being papered over by the committed copy.

The union stays in the source tree for the editor's Pylance integration, but it does not ship in the wheel: the wheel carries py.typed, so an installed stub is certified to a type checker, and certifying 40-odd names that raise AttributeError on a pip install would be lying. The wheel instead installs wheel-stubs/editor.pyi — just SplinePath and spline_from_object, the two names bind_editor.cpp actually provides there. A name added to bind_editor.cpp belongs in both stubs; a name added to the editor-only TUs belongs only in the union.

Keyword-named bindings

A bound name that is a Python keyword cannot be written in Python source or in a stub, and one is enough to make the whole stub unparseable. Two such names have been renamed at the binding site:

Was Now Why
Blending.None Blending.NoBlending tp.Blending.None is a SyntaxError; NoBlending is also the three.js name
damp(..., lambda=...) damp(..., lambda_=...) lambda is unusable as a keyword argument; PEP 8's trailing underscore

No binding needs repair today. gen_stubs.py keeps a general repair pass as a standing guard, since pybind11 will emit the same breakage from any future C++ identifier that collides with a Python keyword.

A few signatures show ... instead of a real parameter type (e.g. Vector3.apply_matrix4). That is pybind11 baking a signature before the argument's C++ type was registered; the fix is binding declaration order, not the stub generator.

Vulkan deferred AOVs (synthetic data)

The deferred (RasterFirst) Vulkan renderer writes a full G-buffer every frame — world normals, optical flow, per-instance segmentation ids, albedo, depth. The binding exposes those attachments as numpy, so a scene authored in Python yields ground-truth labels directly from the render, with no manual annotation:

import threepp as tp
assert tp.HAS_VULKAN

canvas = tp.Canvas("aov", width=512, height=384, headless=True, vsync=False)
renderer = tp.VulkanRenderer(canvas)            # deferred / RasterFirst

# ... build scene + camera ...
out = renderer.render_aovs(scene, camera, ["rgb", "normals", "segmentation"])
rgb, normals, seg = out["rgb"], out["normals"], out["segmentation"]   # (H, W, 3) uint8
depth = renderer.read_depth(scene, camera)                           # (H, W) float32, metres

Enable the Vulkan backend at configure time (needs the Vulkan SDK + a Vulkan-capable GPU). The GL renderer stays available in the same module:

cmake -S . -B build -DTHREEPP_WITH_PYTHON=ON -DTHREEPP_WITH_VULKAN=ON
cmake --build build --target threepp_py

tp.HAS_VULKAN reports whether the backend was compiled in.

Two readback paths. The 8-bit visualisation AOVs (render_aov / render_aovs) come out as (H, W, 3) uint8 via the renderer's debug-resolve pass: normals as n*0.5+0.5, segmentation as per-id hashed colours, albedo as linear albedo (so it looks gamma-/hue-off as a viewed image, but the data is the real linear base colour). The lossless path copies the native G-buffer attachments straight to host memory: read_depth → metric (H, W) float32 (full-precision native D32 read, verified accurate against known distances), read_instance_ids → raw (H, W) uint32 per-instance ids, read_normals_float, read_motion, and read_aovs_typed([...]) for several in one render. Driving is via the deferred frame-model under the hood (submit/present is deferred to the canvas frame-end callback, so each render* repeats a few frames to make the MAILBOX readback deterministic — tune with set_flush_frames).

Headless / display-less machines (cloud GPUs). A headless=True canvas needs no display at all. On Linux with no DISPLAY/WAYLAND_DISPLAY the canvas skips the window system entirely (GLFW Null platform), and the Vulkan renderer takes the first of these the machine offers:

  • VK_EXT_headless_surface (Mesa has it): a surface with no window behind it, and presenting to it is a no-op.
  • No surface at all (NVIDIA's Linux driver, which has no headless surface): frames go to images the renderer owns, and nothing is presented.

That is the Colab/EC2/HPC setup — compute-only NVIDIA kernel modules, no X server the GPU can present to — where the wheel's synthetic-data path (render_aov / read_depth / read_rgb_pixels) runs unmodified. With a window system and no headless surface (NVIDIA's Windows driver), a headless canvas keeps a hidden window and renders into its own images the same way. Set THREEPP_GLFW_PLATFORM=null to force the window-system-free path on any OS (useful for reproducing the cloud setup locally).

In-window UI (Dear ImGui)

threepp integrates Dear ImGui; the binding exposes it as ImguiContext plus the threepp.imgui submodule of immediate-mode widgets. Issue widgets each frame inside a draw callback, and call ui.render(draw) in the animate loop after renderer.render(...):

ui = tp.ImguiContext(canvas)        # create AFTER the GLRenderer

def draw():
    tp.imgui.begin("Controls")
    changed, rough = tp.imgui.slider_float("roughness", material.roughness, 0.0, 1.0)
    if changed: material.roughness = rough
    _, material.wireframe = tp.imgui.checkbox("wireframe", material.wireframe)
    if tp.imgui.button("reset"): camera.position.set(0, 2, 6)
    tp.imgui.end()

def animate():
    controls.enabled = not ui.want_capture_mouse   # don't orbit while over the panel
    controls.update()
    renderer.render(scene, camera)
    ui.render(draw)

canvas.animate(animate)

Value-returning widgets give back (changed, new_value) tuples; button returns True on the clicked frame. tp.imgui.show_demo_window() opens the full ImGui gallery. tp.HAS_IMGUI reports availability.

It works on both renderers — pass the renderer so the backend matches: ImguiContext(canvas, gl_renderer) (or ImguiContext(canvas)) for GL, and ImguiContext(canvas, vulkan_renderer) for the Vulkan overlay (recorded into the deferred frame after the scene). Create the ImguiContext after the renderer. See python examples/ui_demo.py --vulkan for the Vulkan version.

One caveat: only one ImguiContext should be alive at a time (Dear ImGui has a single global context) — don't keep a GL and a Vulkan one simultaneously.

Rigid-body physics (PhysX)

threepp ships a scene-graph-integrated PhysX wrapper; the binding exposes it as PhysxWorld (+ a RigidBody handle). Add meshes as bodies, step(dt) each frame, and the bound meshes' transforms follow the simulation. It's pure CPU — no canvas or renderer required, so it works headless:

import threepp as tp
assert tp.HAS_PHYSX

world = tp.PhysxWorld(gravity=tp.Vector3(0, -9.81, 0))

floor = tp.Mesh(tp.BoxGeometry(20, 1, 20), tp.MeshStandardMaterial())
floor.position.y = -0.5
world.add_static(floor)                 # static collider

box = tp.Mesh(tp.BoxGeometry(1, 1, 1), tp.MeshStandardMaterial())
box.position.set(0, 5, 0)
body = world.add(box, density=200)      # dynamic body, auto-bound to the mesh
body.add_impulse(tp.Vector3(2, 0, 0))

for _ in range(120):
    world.step(1 / 60)                   # box.position now follows the sim

Shapes are inferred from Box/Sphere/Capsule geometry; add_dynamic_convex (convex hull), add_static_trimesh / add_static_trimesh_tree (exact triangles, e.g. an imported glTF environment), and add_instanced (one body per InstancedMesh instance) cover the rest. RigidBody exposes pose, linear/angular velocity, add_force / add_impulse, damping, and a kinematic mode (set_kinematic + set_kinematic_target). on_pre_substep / on_post_substep hooks fire around each fixed substep.

Enable PhysX at configure time. It comes from vcpkg (unofficial-omniverse-physx-sdk), so configure with the vcpkg toolchain:

cmake -S . -B build -DTHREEPP_WITH_PYTHON=ON \
      -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
cmake --build build --target threepp_py

(Or, to reuse an existing install without the toolchain, pass -Dunofficial-omniverse-physx-sdk_DIR=<vcpkg_installed>/x64-windows/share/unofficial-omniverse-physx-sdk; the build then stages the PhysX runtime DLLs next to the module.) tp.HAS_PHYSX reports whether it was compiled in. Reduced-coordinate articulations (robots) are bound too — Articulation / ArticulationLink, built from a URDF in one call. So are PhysxVehicle, a drivable four-wheel PxVehicle2 whose road can be replaced per wheel by your own ground model, and SoftBody (add_soft_body, which needs gpu_dynamics=True and so a CUDA GPU).

Combined with the Vulkan AOVs, this is the dynamic half of the synthetic-data story: physics gives you moving scenes, the G-buffer gives you per-frame segmentation / depth / optical-flow labels for free.

Proprioceptive sensors (IMU)

On top of the PhysX world, threepp exposes a proprioceptive sensor suite for robotics: Imu (gyroscope + accelerometer), JointEncoder, ContactSensor and ForceTorqueSensor, each with seeded noise models. The walkthrough below uses the Imu. A sensor rides the scene graph: you attach it to an Object3D, and that node's world frame is the measurement frame. Register it with the world and it is sampled from the physics step loop — one clean sample per fixed substep, timestamped with the accumulated sim time — so the sampling fidelity is right for lock-step co-simulation (e.g. a future ArduPilot SITL).

import threepp as tp
assert tp.HAS_PHYSX

world = tp.PhysxWorld(gravity=tp.Vector3(0, -9.81, 0), fixed_timestep=1/240)
world.add_static(floor_mesh)                 # top face at y=0
body = world.add(box_mesh, density=200)      # dynamic body

mount = tp.Group()                           # IMU node, offset from the CoM
mount.position.set(0.3, 0.2, 0.1)
box_mesh.add(mount)

imu = tp.Imu(mount)                          # rate_hz=0 -> sample every substep
world.register_sensor(imu)                   # AFTER adding the body it rides

for _ in range(720):
    world.step(1/240)

for s in imu.drain():                        # oldest-first; empties the buffer
    print(s.t, s.angular_velocity, s.linear_acceleration)
data = imu.drain_array()                     # or a (N, 7) numpy [t, gx,gy,gz, ax,ay,az]
last = imu.latest()                          # most recent sample (survives drain)

Contract. Attach to a node; set rate_hz (0 = every physics substep, else the sensor sub-samples). Read non-blocking: latest() is the most recent sample, drain(out) / drain_array() move everything accumulated since the last drain out of a bounded ring buffer (default 2048; oldest dropped on overflow). register_sensor resolves the rigid body by walking up from the attachment node to the nearest ancestor added to the world — it raises immediately if there is none.

IMU units & frames. Both readings are expressed in the sensor (node) frame:

Field Meaning Units
angular_velocity the body's angular velocity rad/s
linear_acceleration specific force f = R⁻¹·(a_point − g) m/s²

Specific force is what a real accelerometer reads (proper acceleration minus gravity, threepp is Y-up so g = (0, −9.81, 0)), so a level body at rest reads (0, +9.81, 0) and a body in free fall reads ~0. When the node is offset from the centre of mass, the lever-arm terms α × r + ω × (ω × r) are included (a_com and α come from finite-differencing the PhysX velocities across samples; the first sample after attach/reset() emits zero to avoid a start-up spike).

Noise. imu.gyro_noise and imu.accel_noise are NoiseModels with per-axis continuous-time densities — white_noise_density [X/√Hz], random_walk [X/(s·√Hz)] bias instability, and a constant constant_bias [X] — plus a seed (deterministic given seed + call sequence). Defaults are consumer MEMS-class; set every field to zero for a perfect sensor. Change the noise, then call imu.reset() (which also re-arms the finite-difference after an episode reset).

See examples/imu_demo.py for the full headless demo.

Notes for maintainers

threepp uses virtual inheritance for some classes (Mesh/Points/Line derive from Object3D virtually; concrete materials derive from Material virtually). pybind11 mishandles pointer adjustment across a virtual base, which corrupts memory. The bindings work around this by:

  • never letting pybind up-cast a derived Python object to a shared_ptr of a virtual base — as_object3d / as_material cast to the concrete type and let the C++ compiler do the up-cast;
  • binding the inherited Object3D / Material members on each concrete leaf with concrete member pointers (&T::field) and T& lambdas, instead of inheriting the (broken) base bindings.

See src/bind_objects.cpp (bind_object3d_api) and src/bind_materials.cpp (bind_material_base_fields).

Metadata

Release files for threepp 2026.11.20

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

Source distribution (sdist)

Source distribution for threepp 2026.11.20
File Size Uploaded Provenance Actions
threepp-2026.11.20.tar.gz 8.1 MB With provenance Details for threepp-2026.11.20.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for threepp 2026.11.20
File Actions
threepp-2026.11.20-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for threepp-2026.11.20-cp314-cp314-win_amd64.whl
threepp-2026.11.20-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for threepp-2026.11.20-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
threepp-2026.11.20-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for threepp-2026.11.20-cp313-cp313-win_amd64.whl
threepp-2026.11.20-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for threepp-2026.11.20-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
threepp-2026.11.20-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for threepp-2026.11.20-cp312-cp312-win_amd64.whl
threepp-2026.11.20-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for threepp-2026.11.20-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
threepp-2026.11.20-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for threepp-2026.11.20-cp311-cp311-win_amd64.whl
threepp-2026.11.20-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for threepp-2026.11.20-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
threepp-2026.11.20-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for threepp-2026.11.20-cp310-cp310-win_amd64.whl
threepp-2026.11.20-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for threepp-2026.11.20-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Total release size: 152.2 MB

Release files / threepp-2026.11.20.tar.gz

Download URL threepp-2026.11.20.tar.gz
Size 8.1 MB
Tags Source
SHA-256 checksum
How to use checksums
42c8b5c8d62605d1e5cf5af3eb84889360680bbe969d0d2d44b58fd8b0712517
BLAKE2b-256 checksum
How to use checksums
a388852bfa32a8c6314379585794ab0c158e39692840356cc648ec3aa0891fa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp314-cp314-win_amd64.whl

Download URL threepp-2026.11.20-cp314-cp314-win_amd64.whl
Size 14.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
c0aa7a5432a543ca2de968cfca4d5fa65fe8dd00a2657c6ec82afdf76a0100e3
BLAKE2b-256 checksum
How to use checksums
7799496939382c82cadec8f0aef89cb1b8fbfc6571270c8d9002f4178b2d4129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL threepp-2026.11.20-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f71a853dcd11937f573f275d070a8fcba5acec01bb14957610cb4c76846877ac
BLAKE2b-256 checksum
How to use checksums
d38339edde41d8dc957ea01c6850cf47df37c36139e10ac24914a5b20188e9fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp313-cp313-win_amd64.whl

Download URL threepp-2026.11.20-cp313-cp313-win_amd64.whl
Size 13.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
7443f8ad97fa17f41d83525d4ab5052b1239ac79292c3a83e8e9ec9f35f9edd3
BLAKE2b-256 checksum
How to use checksums
d728c758c9e76c5fb57485308a91cc1b655ac3f95c4618f449afb74f0dd57195
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL threepp-2026.11.20-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5841533e65c6238ea3eb894126e662133c2335d58b59191cc9853cfb9dc1e4c7
BLAKE2b-256 checksum
How to use checksums
754aad3a9e104a079989dd24d92627998b6a64bc4e06d6fef2f22b2436169cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp312-cp312-win_amd64.whl

Download URL threepp-2026.11.20-cp312-cp312-win_amd64.whl
Size 13.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5b4370d1a14a6a102c5de02d9f18d982b43be7799931699f1205f747d7c480e9
BLAKE2b-256 checksum
How to use checksums
95a281b84ff5275d81bb1e1cbc9db8d6b4a6fab906a8fc734012f194f246ebaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL threepp-2026.11.20-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
aeb05c14d0773c4abda5b7e736173536e139b65db4603bc3b1ce09240b4dc2f0
BLAKE2b-256 checksum
How to use checksums
65f6ed359aa5d19f55b2d174f5dde5207e88934fad236a9475b9e301dbd21903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp311-cp311-win_amd64.whl

Download URL threepp-2026.11.20-cp311-cp311-win_amd64.whl
Size 13.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d50413991a5628dd24f91f7c329a2c5063d62c0ac6d4beaacfebf5cbe7508f4c
BLAKE2b-256 checksum
How to use checksums
53fac51f98bf8439f5fdb1f6864dd189842542f31c3fb9b11a0333119fd100f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL threepp-2026.11.20-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
440269e0e5b28b0b80286edd8dca493ab776d96a3a0820a6ed7838cc151643ab
BLAKE2b-256 checksum
How to use checksums
b9091260578a12b0fcbc568a69a783ef5a90d6f9b2e40cf914a268fcbde7f076
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp310-cp310-win_amd64.whl

Download URL threepp-2026.11.20-cp310-cp310-win_amd64.whl
Size 13.8 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
3a39ec7f5cc3e6ca682a308655c811a57ef6aaeef309df01a8aa255400515dfe
BLAKE2b-256 checksum
How to use checksums
c68808aea4ca7aea9f4112d9cd21471a059b434dc98531a487418c3f4a870be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Release files / threepp-2026.11.20-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL threepp-2026.11.20-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
160297841cba7a04098f1021c0f9c827f73ce5aae3a428635db6e2b5e653fd3e
BLAKE2b-256 checksum
How to use checksums
818008ad03cc8078a91a2c9f5bea95e4367249ae53e52e81bc9e0944ed3c12c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 20, 2026.

Transparency log

Security for threepp 2026.11.20

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 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for threepp-2026.11.20.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 Nov 20, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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