Print at Dec 16, 2025, 7:43:09 PM View all posts in this thread on one page
Posted by zuo at Dec 28, 2023, 9:33:36 AM
biggrin   Python Binding for Sweet Home 3D js
To get closer to recent improvement with python and AI I make a minimal Streamlit plugin for python. It with few line of code can draw programmatically the paramiters passed and it can also manually modified, that return the drawed configuration.

Codebase: https://gitlab.com/nicolalandro/streamlit-sweethome3d
Live preview: https://huggingface.co/spaces/z-uo/SweetHome3DPlanner



Any contribution and sharing is welcome.

Posted by Daniels118 at Dec 28, 2023, 11:14:59 AM
Re: Python Binding for Sweet Home 3D js
Sounds interesting. Do you count to make a chatbot to help users drawing their homes by giving build orders in natural language?

Posted by Puybaret at Dec 29, 2023, 10:31:06 AM
Re: Python Binding for Sweet Home 3D js
Interesting…
As it seems to be based on Sweet Home 3D JS, can you explain how it works? Are Python instructions interpreted in JavaScript?

By the way, don’t forget to set a license a on your GitHub projects, probably GNU GPL if it’s based on Sweet Home 3D or Sweet Home 3D JS.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by zuo at Dec 29, 2023, 2:40:09 PM
Re: Python Binding for Sweet Home 3D js
I fix license by adding a GPLv3.

It is a component for Streamlit python lib. It create a web server with a frontend using python code that can interact with some callbacks with python. So I use vite to create the component that through streamlit callbacks get input and give output to python code.

Yes I want to made a chat for build things into SH3D but I need months for a working result.