The Real Python Podcast

Build Streamlit Data Science Dashboards & Verbose Regex f-Strings


Listen Later

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.

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.

Course Spotlight: Using Python Class Constructors

In this video course, you’ll learn how class constructors work in Python. You’ll also explore Python’s instantiation process, which has two main steps: instance creation and instance initialization.

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:

    • ctx Library Hijacked to Steal AWS Keys
    • Typosquatting Attack on ‘requests’ - One of the Most Popular Python packages
    • 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:

        • Do You Have a Favorite Playlist for Coding?
        • Projects:

          • dowsing: Metadata Extraction Without Execution
          • spotify/basic-pitch: A lightweight yet powerful audio-to-MIDI converter with pitch bend detection
          • Additional Links:

            • The Twelve-Factor App
            • Streamlit vs Dash vs Voilà vs Panel — Battle of The Python Dashboarding Giants
            • Getting machine learning to production | Vicki Boykis
            • Detecting deforestation from satellite images | André Ferreira
            • Create an app - Streamlit Docs
            • spotify/pedalboard: 🎛 🔊 A Python library for manipulating audio.
            • Episode #96: Manipulating and Analyzing Audio in Python – The Real Python Podcast
            • Episode #15: Python Regular Expressions, Views vs Copies in Pandas, and More – The Real Python Podcast
            • Episode #64: Detecting Deforestation With Python & Using GraphQL With Django and Vue – The Real Python Podcast
            • Level up your Python skills with our expert-led courses:

              • Data Visualization Interfaces in Python With Dash
              • Regular Expressions and Building Regexes in Python
              • Using Python Class Constructors
              • Support the podcast & join our community of Pythonistas

                ...more
                View all episodesView all episodes
                Download on the App Store

                The Real Python PodcastBy Real Python

                • 4.7
                • 4.7
                • 4.7
                • 4.7
                • 4.7

                4.7

                136 ratings


                More shows like The Real Python Podcast

                View all
                Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

                Software Engineering Radio - the podcast for professional software developers

                272 Listeners

                The Changelog: Software Development, Open Source by Changelog Media

                The Changelog: Software Development, Open Source

                283 Listeners

                Thoughtworks Technology Podcast by Thoughtworks

                Thoughtworks Technology Podcast

                41 Listeners

                Talk Python To Me by Michael Kennedy

                Talk Python To Me

                592 Listeners

                Software Engineering Daily by Software Engineering Daily

                Software Engineering Daily

                624 Listeners

                Soft Skills Engineering by Jamison Dance and Dave Smith

                Soft Skills Engineering

                269 Listeners

                Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

                Super Data Science: ML & AI Podcast with Jon Krohn

                298 Listeners

                Python Bytes by Michael Kennedy and Brian Okken

                Python Bytes

                213 Listeners

                Data Engineering Podcast by Tobias Macey

                Data Engineering Podcast

                142 Listeners

                Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

                Syntax - Tasty Web Development Treats

                982 Listeners

                DataFramed by DataCamp

                DataFramed

                266 Listeners

                Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

                Kubernetes Podcast from Google

                181 Listeners

                Practical AI by Practical AI LLC

                Practical AI

                189 Listeners

                The Stack Overflow Podcast by The Stack Overflow Podcast

                The Stack Overflow Podcast

                64 Listeners

                The Pragmatic Engineer by Gergely Orosz

                The Pragmatic Engineer

                52 Listeners