Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.

#361 Proper way to comment your code!

November 21, 2023 00:29:39 29.01 MB Downloads: 0
Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by Scout APM

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am PT. Older video versions available there too.

Michael #1: The many shapes and sizes of keyboards

Brian #2: appeal - a CLI framework from Larry Hastings

  • “Give your program APPEAL!”
  • Appeal is a command-line argument processing library for Python, like argparse, optparse, getopt, docopt, Typer, and click. But Appeal takes a refreshing new approach.
  • Hello World example:

    import appeal
    
    app = appeal.Appeal()
    
    @app.command()
    def hello(name):
        print(f"Hello, {name}!")
    
    app.main()
    
  • looks fun, no idea how to test with it “yet”.

    • But I plan on looking into that.

Michael #3: Graphinate: Data to Graphs

  • via Eran Rivlis
  • Graphinate is a python library that aims to simplify the generation of Graph Data Structures from Data Sources.
  • Write a function to definite the edges as a generator, call materialize
  • Based on NetworkX
  • See the github page for visual examples

Brian #4: A Disorganized List of Maintainer Tasks

  • David Lord
    • Plus, David Lord, lead maintainer of Flask, Jinja, Click, … on Pallets, also PSF Fellow, has a blog. Neat.
  • TLDR; Next time you want to ask "When's the next release?", instead look at the project and see where you can start getting involved. The more help maintainers have, the more they can get done.
  • Long list of stuff David thinks about when maintaining a project.
    • My list is shorter, but it’s still long, and my projects are tiny in comparison to his

Extras

Brian:

Michael:

Joke: The proper way to comment your code!