Live data from Hacker News

Pynecone – Performant, customizable web apps in pure Python

pynecone.io

21–30 of 86 posts

Re: Pynecone – Performant, customizable web apps in pure Python

#22
post #18

Don't. Just do not do this Python has a place in scripting Because you can, does not mean you should, build full applications with it It is a colossal waste of resources. It leads to genuine problems as it gets bigger that you will only find when you have considerable sunk costs. This is a terrible idea, it was a terrible idea in 1995 when people did this with Perl, it is a terrible idea now Use Python for what it is…

This is "premature optimization," IMHO.

No, get the idea working first. Talk to customers... pivot... repeat. After finding a fit and portions are too slow look into Cython or offload to services in golang, etc.

This looks like a great productivity booster.

Re: Pynecone – Performant, customizable web apps in pure Python

#24
post #18

Don't. Just do not do this Python has a place in scripting Because you can, does not mean you should, build full applications with it It is a colossal waste of resources. It leads to genuine problems as it gets bigger that you will only find when you have considerable sunk costs. This is a terrible idea, it was a terrible idea in 1995 when people did this with Perl, it is a terrible idea now Use Python for what it is…

People also said similar things when Node.js crossed backed then the boundaries of our imagination. Nonetheless i agree that it can lead to genuine problems once it gets complex enough.

Re: Pynecone – Performant, customizable web apps in pure Python

#26
post #7

It’s just Python. The app state is just a class. State updates are methods in the class. And the UI is a reflection of the state. It's rare to see this sort of clarity on a landing page. Even more impressed to see that it carried over into the documentation, which is excellent. I've been a fan of the plotly/Dash framework, but this looks like an exciting alternative, feeling more immediately accessible without some o…

I would love to hear what your experience is. We've been using Pynecone for a bit and are coming up against some problems. For example trying to write a wrapper for AG Grid there is no way to pass a custom class attribute so you can't style the output with a theme.

My projects are simple dashboards for internal use so I prioritize ugly and functional over aesthetic. technical verdicts from someone with more UI experience/affinity would likely help a lot more than my opinion.

Re: Pynecone – Performant, customizable web apps in pure Python

#27
post #8

I followed the link to try the increment/decrement example/demo from the landing page ( https://pynecone.io/docs/getting-started/introduction ). There is probably almost a full one second delay between the time I click the "increment" button and the updated count being rendered. Not seeing any network requests so I can't imagine why it would be so laggy.

Clicking sends a websocket message to the backend. Which then responds with a state update message which updates the frontend react components. rhe round trip would probably take the same time with rest APIs, but you would have the ability to add some loading indicators or hints, because you'd have full control over client side rendering. You don't have that when using pynecone. It's a tradeof

So it doesn't really have any client side interactivity? Thought it does from the example and wondering what magic they pulled to achieve that, they really should write this in big text up front cuz it's a pretty big factor when considering this software.

Re: Pynecone – Performant, customizable web apps in pure Python

#28
post #18

Don't. Just do not do this Python has a place in scripting Because you can, does not mean you should, build full applications with it It is a colossal waste of resources. It leads to genuine problems as it gets bigger that you will only find when you have considerable sunk costs. This is a terrible idea, it was a terrible idea in 1995 when people did this with Perl, it is a terrible idea now Use Python for what it is…

For this software if you change to any language it will still use the same architecture and technology, setup a http server and generate HTML and some client JS code to run on browser, just syntax difference or maybe performance. Curious what exactly is the part you think Python is dreadful at that this software contains? You can definitely say there are better performance language but I'm curious about if other factors.

Re: Pynecone – Performant, customizable web apps in pure Python

#30
It's not bad if your server isn't far away and you can compromise a bit on UX. A great tool if you need to quickly whip up a UI for some Python code (with more control than those machine learning-focused frameworks give you).

Sadly it's apparently incompatible with SQLAlchemy 2.0, so I can't use it.

Post reply on HN