Real Python Podcast Episode #113 Title Artwork

Episode 113: Build Streamlit Data Science Dashboards & Verbose Regex f-Strings

The Real Python Podcast

Jun 10, 2022 50m

Would you like a fast way to share your data science project results as an interactive dashboard instead of a Jupyter notebook? Streamlit is a library for creating simple web apps and dashboards using just Python. This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects.

Episode Sponsor:

We talk about the article “Forget About Jupyter Notebooks - Showcase Your Research Using Dashboards.” It covers the basics of turning a data science script into an interactive dashboard using Streamlit. We also share some additional resources to get you started with the library.

Christopher discusses an article covering ways to make life easier when working with Python regular expressions. He talks about composing verbose regexes using f-strings and potentially reusing these patterns.

We cover several other articles and projects from the Python community, including a news roundup, a step-by-step project to build a URL shortener with FastAPI, the fact that Python’s functions are sometimes classes, an automatic water pistol pigeon deterrent project, a discussion about music playlists for coding, a project for Python metadata extraction without execution, and a powerful audio-to-MIDI converter library.

Topics:

  • 00:00:00 – Introduction
  • 00:02:22 – ctx Library Hijacked to Steal AWS Keys
  • 00:04:33 – Typosquatting Attack on ‘requests’
  • 00:06:55 – Build a URL Shortener With FastAPI and Python
  • 00:10:51 – Sponsor: Rookout
  • 00:11:31 – Python’s Functions Are Sometimes Classes
  • 00:14:05 – Forget Jupyter, Showcase Your Data with Dashboards
  • 00:22:08 – The Unreasonable Effectiveness of f-strings and re.VERBOSE
  • 00:25:43 – Robotic Water Pistol as Pigeon Deterrent
  • 00:28:13 – Video Course Spotlight
  • 00:29:34 – Do You Have a Favorite Playlist for Coding?
  • 00:40:05 – dowsing: Metadata Extraction Without Execution
  • 00:42:01 – spotify/basic-pitch: A lightweight yet powerful audio-to-MIDI converter
  • 00:49:12 – Thanks and goodbye

News:

Topic Links:

  • Build a URL Shortener With FastAPI and Python – In this step-by-step project, you’ll build an app to create and manage shortened URLs. Your Python URL shortener can receive a full target URL and return a shortened URL. You’ll also use the automatically created documentation of FastAPI to try out your API endpoints.
  • Python’s Functions Are Sometimes Classes – Ever use list() or enumerate()? Think of them as functions? They’re not—they’re classes. Sometimes we call classes functions in Python. Why? And what’s a “callable”?
  • Forget Jupyter, Showcase Your Data with Dashboards – Streamlit can be used as an alternative to Jupyter notebooks for sharing research data. Streamlit is a relatively new library for creating simple web apps and dashboards using just Python. Learn why it might be the right choice for your next data project.
  • The Unreasonable Effectiveness of f-strings and re.VERBOSE – A look at one or two ways to make life easier when working with Python regular expressions.
  • Robotic Water Pistol as Pigeon Deterrent – Max built a wifi-equipped water gun to shoot the pigeons on his balcony. It is controlled over the Internet by a Python script running openCV reading the camera image from an old iPhone. See all the details.

Discussion:

Projects:

Additional Links: