Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 479 times and has 3 replies Next Thread
zuo
Newbie



Italy
Joined: Sep 12, 2021
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Dec 28, 2023, 8:33:36 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 407
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Dec 28, 2023, 10:14:59 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9182
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Dec 29, 2023, 9:31:06 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
zuo
Newbie



Italy
Joined: Sep 12, 2021
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Dec 29, 2023, 1:40:09 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved