Skip to content
Discussion options

You must be logged in to vote

Alright, I think I've come to a solution I'm happy with.

Some more context for you, hopefully helps explain why I chose this - I have a schema for telemetry being sent back by one or more devices I've attached to my PC. Stuff like temperature, volts, amps, etc. Using that schema, I auto-generate the deserialisation code and shove it into dataclasses. The use of this data might be spread over several screens in my app, so I can't embed the data into a Widget using my code-gen.

My initial implementation was a Rich Live that updated at 10Hz, redrawing the screen each time at a CPU cost of about 5-8%. Works great, but I didn't like the expense.

I experimented a bit with message passing, but i…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mon
Comment options

@davep
Comment options

@mon
Comment options

@mon
Comment options

Answer selected by mon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants