streamlit_3d
3d model viewer
Installation instructions
pip install streamlit-3d
Usage instructions
# pip install streamlit-3d
import streamlit as st
import streamlit_3d as sd
md=st.selectbox("3D Model:",["https://alteirac.com/models/helmet/scene.gltf",
"https://alteirac.com/models/engine/scene.gltf"
])
# if you want to load existing Annotations:
value = sd.streamlit_3d(height=600,model=md,points=[{"description":"LEFT_LIGHT",
"data-position":{"x":0.4595949207254826,"y":0.40998085773554555,"z":0.33846317660071373},
"data-normal":{"x":-0.18705895743345607,"y":-0.3420641705224677,"z":0.9208697246020658}}
])
# if you simply want to show the model:
# value = sd.streamlit_3d(model=md,height=700)
st.write(value)
Metadata
Release files for streamlit-3d 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit-3d-0.1.12.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_3d-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / streamlit-3d-0.1.12.tar.gz
| Download URL | streamlit-3d-0.1.12.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3db72478457e3c2fcedff08c3ee8d92aead5265d534e263d673e791a32f6f517
|
|
BLAKE2b-256 checksum How to use checksums |
efd4300f4722436be9a2e75b1bfd3eeb1d51f86ee652b9a28c5c1f87d499c19e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / streamlit_3d-0.1.12-py3-none-any.whl
| Download URL | streamlit_3d-0.1.12-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
382f8ea0a414f77e23c52598a50322f3f45bb1deb5700970b7097b15512f1e10
|
|
BLAKE2b-256 checksum How to use checksums |
fdc2045446bb9ed777057033f4dabefcd8c850e46839ddbf33635f20ad0e73c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|