Skip to main content

threejs-assets

CI

Three.js ES modules in a Python wheel. Use the official files offline with zero runtime dependencies—no Node.js, npm, or CDN needed.

Python 3.9+ · Windows, Linux, macOS · Independent of the Three.js project

Install

pip install threejs-assets
# or: uv add threejs-assets

Use

from importlib.resources import files

assets = files("threejs_assets").joinpath("assets")
module = assets.joinpath("build").joinpath("three.module.js")
javascript = module.read_text(encoding="utf-8")

Serve the asset directory at /assets/ with its directory structure intact, then use an import map:

<script type="importmap">
{
  "imports": {
    "three": "/assets/build/three.module.js",
    "three/addons/": "/assets/examples/jsm/"
  }
}
</script>
<script type="module">
  import * as THREE from "three";
  import { OrbitControls } from "three/addons/controls/OrbitControls.js";
</script>

For a working example, run uv run python examples/serve.py from this checkout and open http://127.0.0.1:8000. Use HTTP, not file://.

Scope

Bundles Three.js core ESM and these addons, with their module dependencies:

  • OrbitControls, TrackballControls, ViewHelper
  • LineSegments2, LineSegmentsGeometry, LineMaterial
  • EffectComposer, RenderPass, OutlinePass, OutputPass
  • CSS2DRenderer, BufferGeometryUtils, GLTFLoader

Upstream files are unmodified. The manifest records the version, source, and hashes.

Requires ES modules, import maps, and WebGL2. Supply your own models and textures; compressed-model decoders, WebGPU/TSL, and other addons are not included. This is static asset distribution, not a Python binding or web server.

Maintainer guide · MIT license · Three.js license

Metadata

Release files for threejs-assets 0.186.1

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

Source distribution (sdist)

Source distribution for threejs-assets 0.186.1
File Size Uploaded Provenance Actions
threejs_assets-0.186.1.tar.gz 591.2 kB With provenance Details for threejs_assets-0.186.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for threejs-assets 0.186.1
File Interpreter ABI Platform Actions
threejs_assets-0.186.1-py3-none-any.whl Python 3 none any Details for threejs_assets-0.186.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / threejs_assets-0.186.1.tar.gz

Download URL threejs_assets-0.186.1.tar.gz
Size 591.2 kB
Tags Source
SHA-256 checksum
How to use checksums
904d8c71f61404e570e26daf24307c34d967bc2c32e7b8cb894ae62d80ad4989
BLAKE2b-256 checksum
How to use checksums
9d96773263d2e07ba0bebe383223773af437725a8d74bd68e674c7ed3917eb7a
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 Oct 29, 2026.

Transparency log

Release files / threejs_assets-0.186.1-py3-none-any.whl

Download URL threejs_assets-0.186.1-py3-none-any.whl
Size 512.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46e6401745edc3809b7e307cbea851a2ccc71adb089d3223aa8ace2d6277a897
BLAKE2b-256 checksum
How to use checksums
c86315273beb4db7b2df0e49728b09ed2bfb6912583157b9ab94d0f7c01c69e4
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 Oct 29, 2026.

Transparency log

Security for threejs-assets 0.186.1

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 threejs_assets-0.186.1.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 Oct 29, 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.

Release history Release notifications | RSS feed

This release

0.186.1 This release

2 release files Full provenance

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