The Python Podcast.__init__

Automatically Enforce Software Structures With Powerful Code Modifications Powered By LibCST


Listen Later

Summary

Programmers love to automate tedious processes, including refactoring your code. In order to support the creation of code modifications for your Python projects Jimmy Lai created LibCST. It provides a richly typed and high level API for creating and manipulating concrete syntax trees of your source code. In this episode Jimmy Lai and Zsolt Dollenstein explain how it works, some of the linting and automatic code modification utilities that you can build with it and how to get started with using it to maintain your own Python projects.

Announcements
  • Hello and welcome to Podcast.__init__, the podcast about Python’s role in data and science.
  • When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to pythonpodcast.com/linode and get a $100 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!
  • Your host as usual is Tobias Macey and today I’m interviewing Zsolt Dollenstein and Jimmy Lai about LibCST, a concrete syntax tree parser and serializer library for Python
  • Interview
    • Introductions
    • How did you get introduced to Python?
    • Can you describe what LibCST is and the story behind it?
    • How does a concrete syntax tree differ from an abstract syntax tree?
      • What are some of the situations where the preservation of the exact structure is necessary?
      • There are a few other libraries in Python for creating concrete syntax trees. What was missing in the available options that made it necessary to create LibCST?
      • What are the use cases that LibCST is focused on supporting
      • Can you describe how LibCST is implemented?
        • How have the design and goals of the project changed or evolved since you started working on it?
        • How might I use LibCST for something like restructuring a set of modules to move a function definition while maintaining proper imports?
          • How do the capabilities of LibCST for codemodding compare to the Rope framework?
          • What are some other workflows that someone might build with LibCST?
          • What are some of the ways that LibCST is being used in your own work?
          • What are the most interesting, innovative, or unexpected ways that you have seen LibCST used?
          • What are the most interesting, unexpected, or challenging lessons that you have learned while working on LibCST?
          • When is LibCST the wrong choice?
          • What do you have planned for the future of LibCST?
          • Keep In Touch
            • Zsolt
              • zsol on GitHub
              • LinkedIn
              • Jimmy
                • jimmylai on GitHub
                • LinkedIn
                • Picks
                  • Tobias
                    • Osprey Manta Backpack
                    • Zsolt
                      • Autotransform
                      • Glean
                      • Jimmy
                        • Paying down technical debt
                        • Closing Announcements
                          • Thank you for listening! Don’t forget to check out our other show, the Data Engineering Podcast for the latest on modern data management.
                          • Visit the site to subscribe to the show, sign up for the mailing list, and read the show notes.
                          • If you’ve learned something or tried out a project from the show then tell us about it! Email [email protected]) with your story.
                          • To help other people find the show please leave a review on iTunes and tell your friends and co-workers
                          • Links
                            • LibCST
                            • Carta
                            • lib2to3
                            • Abstract Syntax Tree
                            • Concrete Syntax Tree
                            • Pyre
                            • Parso
                            • Cython
                              • Podcast Episode
                              • mypyc
                              • Rope
                              • Flake8
                                • Podcast Episode
                                • Pylint
                                • ESLint
                                • Fixit
                                • MonkeyType
                                  • Podcast Episode
                                  • The intro and outro music is from Requiem for a Fish The Freak Fandango Orchestra / CC BY-SA

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

                                    The Python Podcast.__init__By Tobias Macey

                                    • 4.4
                                    • 4.4
                                    • 4.4
                                    • 4.4
                                    • 4.4

                                    4.4

                                    100 ratings


                                    More shows like The Python Podcast.__init__

                                    View all
                                    The Changelog: Software Development, Open Source by Changelog Media

                                    The Changelog: Software Development, Open Source

                                    283 Listeners

                                    Data Skeptic by Kyle Polich

                                    Data Skeptic

                                    482 Listeners

                                    Chat With Traders by Tessa Dao

                                    Chat With Traders

                                    1,981 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

                                    The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence) by Sam Charrington

                                    The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence)

                                    443 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

                                    Machine Learning Guide by OCDevel

                                    Machine Learning Guide

                                    764 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

                                    Practical AI by Practical AI LLC

                                    Practical AI

                                    189 Listeners

                                    The Real Python Podcast by Real Python

                                    The Real Python Podcast

                                    140 Listeners

                                    Hard Fork by The New York Times

                                    Hard Fork

                                    5,425 Listeners