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
never heard of it and assuming you mean streamlit.io
the framework itself seems quite nice, even if pretty much only tailored to presenting data in a good looking way, but i’d never run anything on their cloud service.
yeah, no screw that i am more than willing to share code, but nothing more.
and it’s probably easier to find help for flask or django on the internet, both are well known frameworks that see industry use for years, where streamlit seems to be very young and less known(plus the aggressive pointing to there ‘free’ cloud stuff)
Thanks for looking into it! Seems like I will be doing mysef a favor to learn the tried-and-true tools, versus the shiny new thing (did I say shiny? More like shady). Really appreciate the advice, thank you!