Загрузка...

Visualize Your Github Stars History with Streamlit, Plotly & GHApi

In this video, we have a look at https://star-history.com/, a website to visualize the evolution of the number of stars of any Github repo, and see how to replicate it in about 60 lines of Python! You'll get all the knowledge necessary to request the Github API with a personal token and the ghapi library, display an interactive plot with Plotly Express, and get a glimpse on what I think about when coding + my process in building a Streamlit app.

00:00 Intro to Github star-history
00:37 Let's get a Github Personal Access Token
02:17 Overview of our Streamlit app
02:41 Designing the dataframe to plot
03:08 Get user input
03:20 Create a GHApi session and fetch rate-limit
03:50 Check the existence of repos from user input
04:23 Download and consolidate the star-history data
07:03 Plot with Plotly Express
07:28 Outro

---

🗣️ Stay up to date with the Data Web App Ecosystem

- 📑 Follow my socials ➡ https://andfanilo.com
- 📧 Get my latest updates in your inbox ➡ https://newsletter.andfanilo.com
- 💰 Buy me a coffee to stay awake while editing ➡ https://www.buymeacoffee.com/andfanilo

🔗 Links

- Code: https://github.com/andfanilo/social-media-tutorials/blob/master/20220404-streamlitstarhistory/streamlit_app.py
- Streamlit website: https://streamlit.io/
- Streamlit docs: https://docs.streamlit.io/
- Streamlit forum: https://discuss.streamlit.io/
- Streamlit Discord (official): https://discord.gg/bTz5EDYh9Z
- Plotly Express: https://plotly.com/python/plotly-express/
- GHApi: https://ghapi.fast.ai/

🔧 My tools (Affiliate links to support me)

- 📕 Streamlit Official Book - https://amzn.to/3QuRPwl
- 📷 Main Camera - https://amzn.to/3QvTosB
- 📷 Main Lens - https://amzn.to/3svYCwq
- 🎙️ Microphone - https://amzn.to/47l5ewA
- 🎵 Music & Sound Effects - https://www.epidemicsound.com/referral/a2p22s

---

🪶 Well thank you for reading this far! 14th Youtube video, and 1st one where I really had fun recording, what a grind!

⚠️ Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. Thank you for supporting my channel so I can continue providing you with free content!

#streamlit #python #datascience #dataapps

Видео Visualize Your Github Stars History with Streamlit, Plotly & GHApi канала Fanilo Andrianasolo
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять