Artwork

Inhalt bereitgestellt von Michael Kennedy and Brian Okken. Alle Podcast-Inhalte, einschließlich Episoden, Grafiken und Podcast-Beschreibungen, werden direkt von Michael Kennedy and Brian Okken oder seinem Podcast-Plattformpartner hochgeladen und bereitgestellt. Wenn Sie glauben, dass jemand Ihr urheberrechtlich geschütztes Werk ohne Ihre Erlaubnis nutzt, können Sie dem hier beschriebenen Verfahren folgen https://de.player.fm/legal.
Player FM - Podcast-App
Gehen Sie mit der App Player FM offline!

#382 A Simple Game

28:10
 
Teilen
 

Manage episode 417027871 series 1305988
Inhalt bereitgestellt von Michael Kennedy and Brian Okken. Alle Podcast-Inhalte, einschließlich Episoden, Grafiken und Podcast-Beschreibungen, werden direkt von Michael Kennedy and Brian Okken oder seinem Podcast-Plattformpartner hochgeladen und bereitgestellt. Wenn Sie glauben, dass jemand Ihr urheberrechtlich geschütztes Werk ohne Ihre Erlaubnis nutzt, können Sie dem hier beschriebenen Verfahren folgen https://de.player.fm/legal.
Topics covered in this episode:
Watch on YouTube
About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

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.

Finally, if you want an artisanal, hand-crafted digest of every week of

the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Brian #1: act: Run your GitHub Actions locally!

  • Why?
    • “Fast Feedback - Rather than having to commit/push every time you want to test out the changes you are making to your .github/workflows/ files (or for any changes to embedded GitHub actions), you can use act to run the actions locally. The environment variables and filesystem are all configured to match what GitHub provides.”
    • “Local Task Runner - I love make. However, I also hate repeating myself. With act, you can use the GitHub Actions defined in your .github/workflows/ to replace your Makefile!”
  • Docs: nektosact.com
  • Uses Docker to run containers for each action.

Michael #2: portr

  • Open source ngrok alternative designed for teams
  • Expose local http, tcp or websocket connections to the public internet
  • Warning: Portr is currently in beta. Expect bugs and anticipate breaking changes.
  • Server setup (docker basically).

Brian #3: Annotating args and kwargs in Python

  • Redowan Delowar
  • I don’t think I’ve ever tried, but this is a fun rabbit hole.
  • Leveraging bits of PEP-5891, PEP-6462, PEP-6553, and PEP-6924.
  • Punchline:

    from typing import TypedDict, Unpack *# Python 3.12+* *# from typing_extensions import TypedDict, Unpack # < Python 3.12* class Kw(TypedDict): key1: int key2: bool def foo(*args: Unpack[tuple[int, str]], **kwargs: Unpack[Kw]) -> None: ... 
  • A recent pic from Redowan’s blog:

Michael #4: github badges

  • smiling face with sunglasses A curated list of GitHub badges for your next project

Extras

Brian:

Michael:

Joke: silly games

Closing song: Permission Granted

  continue reading

389 Episoden

Artwork

#382 A Simple Game

Python Bytes

1,808 subscribers

published

iconTeilen
 
Manage episode 417027871 series 1305988
Inhalt bereitgestellt von Michael Kennedy and Brian Okken. Alle Podcast-Inhalte, einschließlich Episoden, Grafiken und Podcast-Beschreibungen, werden direkt von Michael Kennedy and Brian Okken oder seinem Podcast-Plattformpartner hochgeladen und bereitgestellt. Wenn Sie glauben, dass jemand Ihr urheberrechtlich geschütztes Werk ohne Ihre Erlaubnis nutzt, können Sie dem hier beschriebenen Verfahren folgen https://de.player.fm/legal.
Topics covered in this episode:
Watch on YouTube
About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

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.

Finally, if you want an artisanal, hand-crafted digest of every week of

the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Brian #1: act: Run your GitHub Actions locally!

  • Why?
    • “Fast Feedback - Rather than having to commit/push every time you want to test out the changes you are making to your .github/workflows/ files (or for any changes to embedded GitHub actions), you can use act to run the actions locally. The environment variables and filesystem are all configured to match what GitHub provides.”
    • “Local Task Runner - I love make. However, I also hate repeating myself. With act, you can use the GitHub Actions defined in your .github/workflows/ to replace your Makefile!”
  • Docs: nektosact.com
  • Uses Docker to run containers for each action.

Michael #2: portr

  • Open source ngrok alternative designed for teams
  • Expose local http, tcp or websocket connections to the public internet
  • Warning: Portr is currently in beta. Expect bugs and anticipate breaking changes.
  • Server setup (docker basically).

Brian #3: Annotating args and kwargs in Python

  • Redowan Delowar
  • I don’t think I’ve ever tried, but this is a fun rabbit hole.
  • Leveraging bits of PEP-5891, PEP-6462, PEP-6553, and PEP-6924.
  • Punchline:

    from typing import TypedDict, Unpack *# Python 3.12+* *# from typing_extensions import TypedDict, Unpack # < Python 3.12* class Kw(TypedDict): key1: int key2: bool def foo(*args: Unpack[tuple[int, str]], **kwargs: Unpack[Kw]) -> None: ... 
  • A recent pic from Redowan’s blog:

Michael #4: github badges

  • smiling face with sunglasses A curated list of GitHub badges for your next project

Extras

Brian:

Michael:

Joke: silly games

Closing song: Permission Granted

  continue reading

389 Episoden

Alle Folgen

×
 
Loading …

Willkommen auf Player FM!

Player FM scannt gerade das Web nach Podcasts mit hoher Qualität, die du genießen kannst. Es ist die beste Podcast-App und funktioniert auf Android, iPhone und im Web. Melde dich an, um Abos geräteübergreifend zu synchronisieren.

 

Kurzanleitung