Preview(!!) of something I'm working on: evel, an easy to use Python pub/sub event library.

In my FastAPI applications (and other asyncio-based apps), I sometimes need a way for one part of the code to send data or events to other parts, while still keeping them decoupled and supporting multiple publishers and subscribers to the same topic.

evel attempts to make this as easy as

with bus.subscribe("a", "b") as events:
async for topic, msg in events:

https://codeberg.org/scy/evel

It's also the first project I've set up with Cookiecutter.

It took me the better part of the day to set up my template files for Python projects (because of course I'm not copying someone else's templates, that would be _cheating_), but it's going to allow me to start new projects much faster.

https://codeberg.org/scy/cookiecutters

cookiecutters

Template files for new projects.

Codeberg.org

And another preview of an upcoming little Python library:

Multidog is a SIGALRM-based watchdog that can handle multiple timeouts. It works by keeping track of one or more timeouts configured by you, and set up an alarm signal that will cause the OS to terminate your process when the timeout occurs.

Its main purpose is to kill your application when something _doesn't_ happen for a certain time, and then have systemd or whatever restart your app.

https://codeberg.org/scy/multidog

Preview releases of evel and Multidog are now on PyPI, simplifying installation:

https://pypi.org/project/evel/
https://pypi.org/project/multidog/

Client Challenge

And I've moved from Cookiecutter to Copier after just two days, simply because Cookiecutter lacks one essential feature: The ability to re-apply the template to an existing project.

https://codeberg.org/scy/python-template

Learn more about Copier here:

https://copier.readthedocs.io/

python-template

Template files for new Python projects.

Codeberg.org
@scy danke für den Hinweis. Das ist ein guter Grund mir copier nochmal genauer anzuschauen. Ich nutze Cookiecutter zwar nur für ein einziges Template und genau das hat mich immer genervt.
@daftwullie Der Umstieg hat mich ungefähr ne Stunde oder zwei gekostet und war relativ straightforward

@scy Ich war bisher einfach nur zu faul was besseres zu suchen wenn das alte einigermaßen tut was es soll. Wenn mir jemand allerdings ein Tool präsentiert, dass den größten Schmerz lindert, dann schreckt mich die Arbeit nicht.

(Update: doofe Tippfehler)

@scy Jetzt habe ich einen Ohrwurm 😁

https://www.youtube.com/watch?v=A0Gs4xGw1Eg

Radio Friendly Song

YouTube