still find it funny that i used subprocess.Popen in python to basically turn it into a fancy bash script with proper array and hashmap support, rather than using 3rd party modules
Today I implemented the simplest and most brain-dead event observer/emitter implementation possible, which still includes the ability for observers to subscribe/unsubscribe and for the emitter to execute a named event function
on the observer *if it exists*.
It doesn't require your objects to inherit *anything*, so any object can be an observer and adding emitter functionality to an object is only a few lines.
Here's a gist:
> https://codeberg.org/jackwilliambell/gists/src/branch/main/Python/simpleevents/simpleevents.py
#programming #Python #SoftwarePatterns
🚨 CFP closing in <12 hrs (anywhere on earth)! 🚨
Kiwi PyCon 2025 wants your talk.
Don’t wait fam — make your move now 💛
👉 https://talks.kiwipycon.nz/kiwi-pycon-xiv-2025/cfp
🌖 PlutoPrint:Python HTML 轉 PDF/圖像輕量級函式庫
➤ 從 HTML 擁抱高品質 PDF 與影像輸出的 Python 解決方案
✤ https://github.com/plutoprint/plutoprint
PlutoPrint 是一個基於 PlutoBook 的 Python 函式庫,旨在輕鬆高效地將 HTML 或 XML 內容轉換為高質量的 PDF 和圖像檔案。它提供簡潔的 API,支援從命令列或 Python 程式碼進行操作,並可嵌入 Matplotlib 繪製的圖表。
+ 這個函式庫看起來很有用,對於需要自動化報告或文件生成的專案來說,是一個不錯的選擇。
+ 能夠直接在 HTML 中嵌入 Matplotlib 圖表,這個功能非常吸引人,省去了不少中間步驟。
#Python #HTML to PDF #PDF Generator #HTML to Image #PlutoBook
#cplusplus #cpp #programming #Python
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_08_20
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding #trimesh #shapely
My #Python office hours are starting in 23.5 hours.
See you tomorrow!
https://pym.dev/office-hours/schedule
🎫 Snag your TICKET today to lock in the best price before late bird kicks in!
Get ready for a weekend full of Python talks, community fun, and inspiration.
👉 https://2025.pycon.org.au/attend?ref=fv
#PyConAU #Python #Data #AI #Science #Education

Show HN: PlutoPrint – Generate PDFs and PNGs from HTML with Python
Link: https://github.com/plutoprint/plutoprint
Discussion: https://news.ycombinator.com/item?id=44966170
"Rust usage for Python extensions surged 22% in one year as developers choose memory safety and C-level performance over traditional approaches. "
https://thenewstack.io/rust-pythons-new-performance-engine/
7 Surprisingly Useful #Python #Scripts You’ll Use Every Week
https://www.kdnuggets.com/7-surprisingly-useful-python-scripts-youll-use-every-week
7 Surprisingly Useful #Python #Scripts You’ll Use Every Week
www.kdnuggets.com/7-surprising...
7 Surprisingly Useful Python S...