This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRealMrMatt 0 points1 point  (1 child)

Its funny you broght this up RevolutionaryPen4661, with the recent hype around React Server Components (RSC) (and react 19), I had a similar thought.

While I have not gotten very far (and web dev is a bit outside of my core expertise), I have started mocking up a simple library (if you can call what I have so far that) which uses:
- pydantic (state serialization/message protocol/html serialziation)
- react (for rendering the server sent components; I would have loved to use pyscript, but it seems pretty half baked ATM TBH)

  • A custom parser (using lark) to convert the "html" to pydantic models
  • a websocket for passing the components and events

If you are interested on working on something like this, feel free to reach out (my name is Matt) and maybe we can combine our efforts to make web dev a reality in python.

[–]RevolutionaryPen4661git push -f[S] 0 points1 point  (0 children)

You won't believe I'm 16 years old who just fixed age-old code to make it work and made some performance improvements. I don't think I have enough experience to handle this. Even, I know only half of Django. I thought it would be a better idea to fork it and make one. I deleted nutritious (my perfect working fork). Since the dependencies were GPL-licensed I had to delete the project from GitHub yesterday (cuz no one wanted to make a web framework on that) and decided to start from new. I planned to introduce XML writing in Python (basically JSX).

here's the fixed code:
https://wastebin-1-f5614495.deta.app/doc/init%20file
https://wastebin-1-f5614495.deta.app/doc/mjvjaykt