4 ms·
I'm really hoping someone comes up with a pure Python declarative HTML component/CSS/JS framework, sorta like SwiftUI for the web. I tried to make something a f
by vFunct 1y ago
I'm really hoping someone comes up with a pure Python declarative HTML component/CSS/JS framework, sorta like SwiftUI for the web. I tried to make something a few years ago but ran out of time.
Anyone want to vibe code that? I could use it for Django, instead of the horrible Django template language/HTMX/Tailwind/DaisyUI/etc..
I never want to write HTML/CSS/JS ever again. Give me Python UI components!
- librasteve 1y agogood news => https://harcstack.org https://harcstack.org does this bad news => your gonna have to learn raku :-)
- lioeters 1y ago> Combining HTMX with raku Air, Red and Cro so that you can just build websites the right way™. Web-related software development is hilarious in its creativity and absurdity. I'm sure it works, and well-tested too, but do we really need all those libraries and languages with cute magical names? I suppose it's smart people having fun while hopefully getting paid.
- librasteve 1y agoto expand on this (and yes the "claim" is intentionally tongue in cheek) - HTMX is established as an antidote to React and similar overly complex tools - it has started a renaissance in server side web design options - raku (HARC), Go (GOTHH), Python (FastHTML), Rust (HARM) etc - HARC builds on the declarative/functional approach of ElmLang - Cro (web stack) and Red (Object Relational Mapper) are the raku "goto" modules HARC is a very serious attempt to refresh the web development experience for hard core coders that embraces LOB and eschews templates with constrained semantics. raku is well suited for this, but you do need to learn it. Do we need a better way? Perhaps we should stick with the lovely situation we already have.
- photios 1y agoI'm not familiar with SwiftUI, but have you seen NiceGUI: https://nicegui.io/ https://nicegui.io/ You define your UI in Python and the end result is a Vue/Quasar UI stylable with Tailwind (in case you want to poke at that) that is hosted as a FastAPI app.
- vFunct 1y agoNice. This looks to be in the direction of where I was going. Will give it a try.
- daelon 1y agoIf you need any help getting started feel free to hit me up on discord @ this username or the email in my bio. (I'm a huge nicegui fan + contributor + I build tools and libraries for it)
- daelon 1y agoNicegui is fantastic, I've been using it professionally for 3-4 years now. I've also written a vscode extension to support some of the nicegui workflows, just search "nicegui" in the extension marketplace.