The Python Podcast.__init__

Generate Your Text Files With Python Using Cog


Listen Later

Summary

Developers hate wasting effort on manual processes when we can write code to do it instead. Cog is a tool to manage the work of automating the creation of text inside another file by executing arbitrary Python code. In this episode Ned Batchelder shares the story of why he created Cog in the first place, some of the interesting ways that he uses it in his daily work, and the unique challenges of maintaining a project with a small audience and a well defined scope.

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 Ned Batchelder about Cog, a tool for generating files or text from embedded Python logic
  • Interview
    • Introductions
    • How did you get introduced to Python?
    • Can you describe what Cog is and the story behind it?
    • What are the use cases that you initially created Cog to address?
    • What were the shortcomings or extraneous overhead that you encountered in tools such as Jinja, Mako, Genshi, etc. that led you to create a new tool?
    • What was your path from a quick and dirty script that suited your own purposes to turning it into a niche open source project that was general and stable enough for the broader community?
    • One of your claims to fame is your role as the maintainer for coverage.py. How has your experience managing such a widely used project translated to the relatively small and low traffic project like Cog?
    • Can you describe how Cog is implemented?
      • How did you approach the design of the syntactic elements for embedding Python code into a host file?
      • What is the workflow for someone using Cog to generate all or parts of a file?
        • How does the introduction of third party dependencies impact the viability and utility of Cog as compared to other templating systems?
        • What are the most interesting, innovative, or unexpected ways that you have seen Cog used?
        • What are the most interesting, unexpected, or challenging lessons that you have learned while working on Cog?
        • When is Cog the wrong choice?
        • What do you have planned for the future of Cog?
        • Keep In Touch
          • Website
          • nedbat on GitHub
          • @nedbat on Twitter
          • LinkedIn
          • Picks
            • Tobias
              • Samson Q9U Microphone
              • Ned
                • McFly Command Line History Tool
                • Go for a walk
                • 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
                    • Cog
                    • Boston Python
                    • Lotus
                    • Lotus Notes
                    • Zope
                    • Cheetah Template Engine
                    • Coverage.py
                      • Podcast Episode
                      • Unix Philosophy
                      • Hungarian Notation
                      • Jupyter Notebooks
                      • GitHub Profile ReadMe
                      • Ned’s GitHub Profile
                        • Raw Markdown
                        • 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

                          285 Listeners

                          Data Skeptic by Kyle Polich

                          Data Skeptic

                          470 Listeners

                          Chat With Traders by Tessa Dao

                          Chat With Traders

                          1,984 Listeners

                          Talk Python To Me by Michael Kennedy

                          Talk Python To Me

                          586 Listeners

                          Software Engineering Daily by Software Engineering Daily

                          Software Engineering Daily

                          628 Listeners

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

                          Super Data Science: ML & AI Podcast with Jon Krohn

                          296 Listeners

                          Python Bytes by Michael Kennedy and Brian Okken

                          Python Bytes

                          213 Listeners

                          Data Engineering Podcast by Tobias Macey

                          Data Engineering Podcast

                          140 Listeners

                          Machine Learning Guide by OCDevel

                          Machine Learning Guide

                          763 Listeners

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

                          Syntax - Tasty Web Development Treats

                          988 Listeners

                          DataFramed by DataCamp

                          DataFramed

                          269 Listeners

                          Practical AI by Practical AI LLC

                          Practical AI

                          190 Listeners

                          The Real Python Podcast by Real Python

                          The Real Python Podcast

                          136 Listeners

                          Confident Business English by Anna Connelly

                          Confident Business English

                          136 Listeners

                          All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

                          All-In with Chamath, Jason, Sacks & Friedberg

                          8,773 Listeners