biggrin Python Binding for Sweet Home 3D js

This topic has been viewed 6247 times and has 3 replies
Thread status: Active
Discuss anything here [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Python Binding for Sweet Home 3D js

Post by zuo »

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

Image

Any contribution and sharing is welcome.
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Python Binding for Sweet Home 3D js

Post by Daniels118 »

Sounds interesting. Do you count to make a chatbot to help users drawing their homes by giving build orders in natural language?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Python Binding for Sweet Home 3D js

Post by Puybaret »

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
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Re: Python Binding for Sweet Home 3D js

Post by zuo »

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.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest