threejs-viewer-assets
Offline Three.js WebGL resources for Python applications that build interactive 3D viewers. Bundles the official core and selected addons for camera navigation, model display, labels, and outline highlighting, with no Python runtime dependencies and no Node.js build step, npm, or CDN required by consumers.
Access the static files through Python and serve them over HTTP to your viewer.
Python 3.9+ · Windows, Linux, macOS · Independent of the Three.js project
Install
pip install threejs-viewer-assets
# or: uv add threejs-viewer-assets
Use
from importlib.resources import files
assets = files("threejs_viewer_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.
Viewer scope
The supported entries are build/three.module.js, build/three.core.js, and
the addons below. Addon names refer to their matching .js modules under
three/addons/, using the upstream directory structure.
| Viewer task | Included addons |
|---|---|
| Rotate, zoom, and navigate orientation | OrbitControls, TrackballControls, ViewHelper |
| Display geometry and wide line segments | BufferGeometryUtils, LineSegments2, LineSegmentsGeometry, LineMaterial |
| Load uncompressed glTF models | GLTFLoader |
| Add HTML labels | CSS2DRenderer |
| Highlight objects with outlines | EffectComposer, RenderPass, OutlinePass, OutputPass |
Upstream files are unmodified. The manifest
records the version, source, hashes, and supported entrypoints. Its files
list includes the complete module dependency closure for those entries.
Use a browser with ES modules, import maps, and WebGL2, and supply your application's models and textures.
Versions and compatibility
Package versions follow the bundled Three.js version; .postN denotes packaging
revisions of the same upstream files. Pin a version tested with your application
and review the Three.js release notes when upgrading.
Use the bundled core and addons together. When integrating other Three.js components, coordinate their versions and import maps so shared components use the same core module. pip/uv resolves Python package requirements; compatibility with JavaScript supplied elsewhere is managed by your application.
Metadata
Release files for threejs-viewer-assets 0.186.1.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| threejs_viewer_assets-0.186.1.post2.tar.gz | 593.4 kB | With provenance | Details for threejs_viewer_assets-0.186.1.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| threejs_viewer_assets-0.186.1.post2-py3-none-any.whl | Python 3 | none | any | Details for threejs_viewer_assets-0.186.1.post2-py3-none-any.whl |
Total release size: 1.1 MB
Release files / threejs_viewer_assets-0.186.1.post2.tar.gz
| Download URL | threejs_viewer_assets-0.186.1.post2.tar.gz |
|---|---|
| Size | 593.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a509964c8fdcff68d5c5a8f6e3e1bdf33f8f38acd0fcf1bb92068a079c9c30f
|
|
BLAKE2b-256 checksum How to use checksums |
3000587745822c2d48aa294626ceb77f6ed9b7a0d59504e30e33d5e2e2864569
|
| 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 30, 2026.
Transparency logRelease files / threejs_viewer_assets-0.186.1.post2-py3-none-any.whl
| Download URL | threejs_viewer_assets-0.186.1.post2-py3-none-any.whl |
|---|---|
| Size | 513.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b83086578ffd7eb6015136ffa8949a9b0cb4286619022a39f2cb78fd6e7eb16
|
|
BLAKE2b-256 checksum How to use checksums |
c21625a61059eeae1113aa4edb5d451a93074d429562853e3da4d9e7651f6d08
|
| 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 30, 2026.
Transparency logSecurity for threejs-viewer-assets 0.186.1.post2
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
Both files in this release have been uploaded with provenance metadata.
Attestation for threejs_viewer_assets-0.186.1.post2.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 30, 2026.
Transparency logA 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.