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!

  • Dunstabzugshaubitze@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    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.

    By making Provider Content available and/or accessible through the Service, Provider hereby grants to Company a non-exclusive, irrevocable, transferable, sub-licensable, worldwide, royalty-free license to use, display, publish, perform, reproduce, distribute, copy, modify, and create derivative works of Provider Content in connection with operating and providing the 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)

    • friendly_ghost@beehaw.orgOP
      link
      fedilink
      arrow-up
      3
      ·
      24 hours ago

      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!