This library is created for streamlit framework, it allow to creating house and insert furniture based on sweethome3djs with a good 3D view.
Project description
Streamlit SweetHome3D
This project have the aim to port an house planner to streamlit in order to use it as a component of some demos including a good view with basic features quickly.
import streamlit as st
from streamlit_sweethome3d import streamlit_sweethome3d
import json
in_state = {
"homes": [
{
"walls": [
[0, 180, 0, 400, 20, 250], # params: x1, y1 x2, y2, spessore, altezza
[350, 180, 350, 400, 20, 250],
[0-10, 180, 350+10, 180, 20, 250]
],
"rooms": [
[[0,180], [350, 180], [350, 400], [0, 400]] # points
],
"furnitures": [
{
"id": "eTeks#shower",
"x": 50,
"y": 230,
"elevation": 0,
}
]
}
]
}
out_state = streamlit_sweethome3d(state = in_state, out_state=True)
col1, col2 = st.columns(2)
with col1:
st.text('in state')
st.code(json.dumps(in_state, indent=1))
with col2:
st.text('out state')
st.code(json.dumps(out_state, indent=1))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for streamlit_sweethome3d-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae41873b7157d98c01af58add653100d186ed6303dc084a7509fd3a2c91276d8 |
|
MD5 | 5e66ba21c2d43f4faffba809f3e99413 |
|
BLAKE2b-256 | 1251bb6a4a5b5e182a0929b30e4f7f4435f19c734c2ea0ee64bf68bee0652a99 |