🔴 AO VIVO AGORA!
“Software livre pra quem?” é o tema da palestra da incrível Emme Menezes na #PythonCerrado2025! 🐍✨
Vem refletir com a gente sobre acesso, comunidade e como incluir pessoas no mundo #oss e #python.
📺 Assista ao vivo: https://www.youtube.com/watch?v=7bLftumf0uc
TAK Server Mission API tutorial part 1
https://www.gofferje.net/it-stuff/tak-mission-api-1/
#TAK #TAKServer #API #development #python
🔴 AO VIVO AGORA!
Já começou a keynote de Camila Maia na #PythonCerrado2025! 🚀🐍
Corre para acompanhar essa palestra imperdível sobre tecnologia, comunidade e muito #python!
📺 Assista aqui: https://www.youtube.com/watch?v=o-qsxc76LYc
I've been writing a lot of #rustlang for the last couple of months, porting a lot of stuff from #python, and yesterday (thanks to @jonhoo) I learned about the typestate pattern. It uses unit structs to enforce the order of operations on a given type at compile time, and it's really nice.
https://willcrichton.net/rust-api-type-patterns/typestate.html
My approach to writing Python (API first, everything type checked) has made learning Rust feel very natural, and I'm really really enjoying it. (But I really miss generators 😔.)
Spent a 30 minutes to discover #Python's csv module, which I've used often for years, defaults to CRLF on output regardless of what the source file's line endings are and what your local environment is.
I was converting a TSV to CSV and puzzling over why the resulting file was larger.
I will have to remember to set lineterminator='\n' going forward. Lossless compression achieved!
https://docs.python.org/3.6/library/csv.html#csv.Dialect.lineterminator
Been evaluating #Zed for a week now and I really like it. There's a bit of setup for #python and #nixos but it's really fast and the native vim integration is really smooth. Probably not going back to #vscode
Here's a pytest snippet that I think is great.
It creates a fixture for all your models which (I find) really useful.
https://gist.github.com/marksweb/5f17f1b12dc829b6ebbb501620011543
@melissawm Conheci a Camila Maia @cmaiacd, ela disse que vocês têm várias coisas em comum. Hoje ela apresenta o KeyNote da #PythonCerrado2025, mais uma pra lista de coisas que as duas já fizeram :)
Vai ser transmitida às 9h em https://www.youtube.com/@PythonCerrado.
TIL you can embed #python dependencies in a gist and then run it as a one-shot script using uv. In screenshot 1 I've pulled in pyfiglet to create a snazzy message. You can inline your dependencies into your script using `uv add --script <dep>`. This adds the necessary preamble as a comment (screenshot 2). I came across this tip whilst surfing Simon Willison’s gists. I've linked to Simon's more detailed blog post and the documentation in #uv. https://simonwillison.net/2024/Dec/19/one-shot-python-tools/
https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies

#BlueLZ
Auch zu diesem Monatsanfang hat Miss Verständlich 🦣 eine neue Ausgabe von #BestOfFediLZ getrötet.
kmz-sbk.taskcards.app#/board/505cc...
Sie schreibt: „Auch im Juli sind wieder feine Sachen zusammengekommen - zu Brücken, #Python, #TikTok etc.“
TaskCards
Day 9 of my #100DaysOfCode challenge.
I decided to practice making visualizations with #seaborn. I didn't have enough time to customize the main visualization, but was able to make a simple one with seaborn and matplotlib.
https://github.com/sinocelt/useful-pandas-code/blob/main/visualization/visualization-03.ipynb
Also I wrote more in my book "Learn Python by Example" which I might eventually publish.
https://github.com/sinocelt/learn-python-by-example/blob/main/learn-python-by-example.ipynb
#HireMe #JobSeeker #DataScience #Python #portfolio
🌘 利用ESC/POS指令在熱感式收據印表機上列印每日天氣預報
➤ 將數位天氣資訊化為實體收據的技術指南
✤ https://github.com/chr15m/print-weather
本專案說明如何使用 Python 腳本,將每日天氣預報的資訊,透過 ESC/POS 指令格式化後,列印在熱感式收據印表機上。專案詳述了必要的軟體依賴、安裝步驟、天氣圖示的獲取方法,以及如何透過命令列參數或環境變數指定地理位置與時區。此外,也提供了使用 cron 排程自動化列印的設定範例。
+ 這個專案很有趣,把天氣預報印出來,感覺很復古!而且可以自訂地點,太實用了。
+ 感謝作者提供如此詳盡的步驟,對於想 DIY 製作這種小裝置的人來說,這份文件絕對是寶藏。
#Python #天氣預報 #硬體 #熱感式印表機 #ESC/POS