Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book

#323: AI search wars have begun

Published Tue, Feb 14, 2023, recorded Tue, Feb 14, 2023
Watch this episode on YouTube
Play on YouTube
Watch the live stream replay

About the show

Sponsored by Microsoft for Startups Founders Hub.

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: camply

  • A tool to find campsites at sold out campgrounds through sites like recreation.gov and Yellowstone
  • Finding reservations at sold out campgrounds can be tough.
  • Searches the APIs of booking services like recreation.gov (which indexes thousands of campgrounds across the USA) to continuously check for cancellations and availabilities to pop up.
  • Once a campsite becomes available, camply sends you a notification to book your spot!
  • Want to camp in a tower in California?

    camply campgrounds --search "Fire Lookout Towers" --state CA

Brian #2: hatch-fancy-pypi-readme

  • Your ✨Fancy✨ Project Deserves a ✨Fancy✨ PyPI Readme! 🧐
  • Hynek Schlawack
  • Include lots of extras in a README.md
    • text fragments
    • files, like AUTHORS.md or Changelog.md, with custom start, stop, pattern includes, etc.
    • regular expression substitutions
  • Several projects with examples, including black.

Pamela #3: Pyodide dev branch now supports 3.11

Michael #4: EU hates open source?

  • via Pamphile Roy
  • The Cyber Resilience Act (CRA) is an interesting and important proposal for a European law that aims to drive the safety and integrity of software
  • The proposal includes a requirement for self-certification by suppliers of software to attest conformity with the requirements of the CRA including security, privacy and the absence of Critical Vulnerability Events (CVEs).
  • We recognize that the European Commission has framed an exception in recital 10 attempting to ensure these provisions do not accidentally impact Open Source software.
  • However, drawing on more than two decades of experience, we at the Open Source Initiative can clearly see that the current text will cause extensive problems for Open Source software.
  • Since the goal is to avoid harming Open Source software this goal should be stated at the start of the paragraph as the rationale, replacing the introductory wording about avoiding harm to "research and innovation" to avoid over-narrowing the exception.
  • The reference to "non-commercial" as a qualifier should be substituted. The term “commercial” has always led to legal uncertainty for software and is a term which should not be applied in the context of open source
  • OSI recommends further work on the Open Source exception to the requirements within the body of the Act to exclude all activities prior to commercial deployment of the software and to clearly ensure that responsibility for CE marks does not rest with any actor who is not a direct commercial beneficiary of deployment.

Brian #5: So, Single (‘) or Double (“) Quotes in Python?

  • Marcin Kozak
  • PEP8 doesn’t recommend anything.
  • REPL uses single quotes. >>> x = "one" >>> x 'one'
  • Black sides with “double quotes”, due to the apostrophe in the string problem.
    • 'Don\'t be so sad.' vs “Don’t be sad.”
  • You get to pick, and don’t be bullied by black-fanatics.
  • There’s always blue, which is just like black, but
    • defaults to single-quotes
    • line length defaults to 79, not black’s 88.
    • preserves whitespace before hash marks for right hanging comments (so multiple lines can line up).

Pamela #6: Frozen-Flask

Extras

Brian:

Michael:

Pamela:

Jokes:


Want to go deeper? Check our projects