It was a challenge, now in the final stage to migrate packages which trigger rebuild of >1%of all available ones on python-team branch.
Strategy so far: stabilise build for >1%, stabilise build for packages with >10 inputs, hopefully it would cover the majority of the graph.

Stats per build system: https://codeberg.org/Hellseher/guix-files
Milestone: https://codeberg.org/guix/guix/milestone/20775

Guix people, it would be helpful to have a public API which returns some core stats per package

#Guix#Python

Tired of broken video downloaders?

Meet yt-dlp: the powerhouse successor to youtube-dl. Download videos from over 1,000+ sites with lightning speed and incredible flexibility. Supports playlists, subtitles, and even audio extraction. Keep your favorite content offline!

https://github.com/yt-dlp/yt-dlp

#devtools #opensource #automation #python#videodownloader

Bookmark this for later.

Tired of broken video downloaders?

Meet yt-dlp: the powerhouse successor to youtube-dl. Download videos from over 1,000+ sites with lightning speed and incredible flexibility. Supports playlists, subtitles, and even audio extraction. Keep your favorite content offline!

https://github.com/yt-dlp/yt-dlp

#devtools #opensource #automation #python#videodownloader

Bookmark this for later.

The code needs a lot of cleanup, and then I have to automate deployment when I change things. But I've posted it here for anyone curious:

https://codeberg.org/bfordham/naughtybaptist_2

#python#softwareDevelopment #coding #blogging

gittaca
gittaca boosted

TIL: #Python 3.11 introduced a new method called add_note for exceptions, which allows you to add extra information to exceptions in an easy, intuitive way. I've wanted this forever, didn't know I already had it.

<br/>try:<br/> 1/0<br/>except ZeroDivisionError as e:<br/> e.add_note(&quot;This is a note about the error&quot;)<br/> e.add_note(&quot;This is another note&quot;)<br/> e.add_note(&quot;All notes must be strings&quot;)<br/> raise <br/>
Yields:

ZeroDivisionError: division by zero
This is a note about the error
This is another note
All notes must be strings

https://daniel.feldroy.com/posts/til-2025-05-exception-add_note via https://python.libhunt.com/newsletter/479

It was a challenge, now in the final stage to migrate packages which trigger rebuild of >1%of all available ones on python-team branch.
Strategy so far: stabilise build for >1%, stabilise build for packages with >10 inputs, hopefully it would cover the majority of the graph.

Stats per build system: https://codeberg.org/Hellseher/guix-files
Milestone: https://codeberg.org/guix/guix/milestone/20775

Guix people, it would be helpful to have a public API which returns some core stats per package

#Guix#Python

TIL: #Python 3.11 introduced a new method called add_note for exceptions, which allows you to add extra information to exceptions in an easy, intuitive way. I've wanted this forever, didn't know I already had it.

<br/>try:<br/> 1/0<br/>except ZeroDivisionError as e:<br/> e.add_note(&quot;This is a note about the error&quot;)<br/> e.add_note(&quot;This is another note&quot;)<br/> e.add_note(&quot;All notes must be strings&quot;)<br/> raise <br/>
Yields:

ZeroDivisionError: division by zero
This is a note about the error
This is another note
All notes must be strings

https://daniel.feldroy.com/posts/til-2025-05-exception-add_note via https://python.libhunt.com/newsletter/479

Guess who discovered Python "textual" TUI framework today! blobaww
https://textual.textualize.io/

I tried creating an interactive mode for freedom-maker.

$ python3 -m freedom-maker --interactive

is the command to trigger it.

There's even a Select All feature. One trigger to do all the new stable builds once Debian 13 is out this month!

Note: This is not in the package yet, it's just an experiment.

More details in each screenshot below.

#Textual#Python#TUI#FreedomBox

just small circles 🕊
d@nny disc@ mc²
just small circles 🕊 and 1 other boosted

fowl 25.7.0 is released.
https://pypi.org/project/fowl/25.7.0/

Extensively re-thought internal and external APIs, centered around giving each peer maximum control, while being safe by default.

There is now a usable Python + Twisted API for programmatic use: FowlCoop, fledge() and roost()

Coming next week: demo applications on top of this: "Git With Me" and "Shell With Me" for peer-to-peer git and terminal sharing (respectively)

#magicWormhole #p2p #python #twisted