Best Python library for displaying dynamically-generated data?
Best Python library for displaying dynamically-generated data?
Hi all, I am one year into my coding journey and could use a little guidance on a project. I have created a Python program that provides real-time hockey stats and game information, using API calls (documentation here: https://github.com/Zmalski/NHL-API-Reference). The code is working, and it's really fun to see stats updating in real time as I'm watching my favorite sport. Just one problem: this is all happening in the terminal window ๐ What Python library would you recommend for creating a pleasing visual display for dynamically-generated data? I thought it might be Pygame, which I have some experience with, but now I'm not sure. Right now I'm only presenting text and numbers, not drawing any plots, but should I consider matplotlib? Thanks for any advice!
Edit: I think the term for what I'm trying to make is a "dashboard"? Is that correct, and does that help answer the question? Thanks y'all!
If you are interested in web technologies, you can turn your python program into a local API using something like Flask, then make a web interface using HTML/JS.
yep, turning this into a webapp using flask or django seems like a good way to learn more.
the flask mega guide
or obey the testing goat provide good guidance for someone getting into web apps with python.
obey the testing goat is more focused on teaching test driven development though, but writing good tests is a great skill regardless when you write them.
Thank you both so much! That seems like a great way to go. Any opinions on using Streamlit for this? I came across it in a search and it seems promising