python

Back Open Paginator
02.08.2025 15:00
pythoncerrado (@pythoncerrado@pynews.com.br)

🔴 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: youtube.com/watch?v=7bLftumf0uc




Show Original Post


02.08.2025 14:37
sgofferj (@sgofferj@mastodon.social)

TAK Server Mission API tutorial part 1

gofferje.net/it-stuff/tak-miss




Show Original Post


02.08.2025 14:04
pythoncerrado (@pythoncerrado@pynews.com.br)

🔴 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: youtube.com/watch?v=o-qsxc76LYc




Show Original Post


02.08.2025 13:41
matthewbadger (@matthewbadger@fosstodon.org)

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.

willcrichton.net/rust-api-type

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 😔.)




Show Original Post


02.08.2025 12:28
jtk (@jtk@infosec.exchange)

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!

docs.python.org/3.6/library/cs




Show Original Post


02.08.2025 12:28
wraptile (@wraptile@fosstodon.org)

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




Show Original Post


02.08.2025 12:03
markwalker (@markwalker@fosstodon.org)

Here's a pytest snippet that I think is great.

It creates a fixture for all your models which (I find) really useful.

gist.github.com/marksweb/5f17f

#python #django




Show Original Post


02.08.2025 11:44
danzin (@danzin@mastodon.social)

@melissawm Conheci a Camila Maia @cmaiacd, ela disse que vocês têm várias coisas em comum. Hoje ela apresenta o KeyNote da , mais uma pra lista de coisas que as duas já fizeram :)

Vai ser transmitida às 9h em youtube.com/@PythonCerrado.




Show Original Post


02.08.2025 10:39
booyaa (@booyaa@hachyderm.io)

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. simonwillison.net/2024/Dec/19/
docs.astral.sh/uv/guides/scrip





Show Original Post


02.08.2025 10:01
r (@r@fed.brid.gy)

#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




Show Original Post


02.08.2025 07:44
WatsonTechWorld (@WatsonTechWorld@mastodon.social)

Day 9 of my challenge.

I decided to practice making visualizations with . I didn't have enough time to customize the main visualization, but was able to make a simple one with seaborn and matplotlib.
github.com/sinocelt/useful-pan

Also I wrote more in my book "Learn Python by Example" which I might eventually publish.
github.com/sinocelt/learn-pyth




Show Original Post


02.08.2025 07:17
GripNews (@GripNews@mastodon.social)

🌘 利用ESC/POS指令在熱感式收據印表機上列印每日天氣預報
➤ 將數位天氣資訊化為實體收據的技術指南
github.com/chr15m/print-weather
本專案說明如何使用 Python 腳本,將每日天氣預報的資訊,透過 ESC/POS 指令格式化後,列印在熱感式收據印表機上。專案詳述了必要的軟體依賴、安裝步驟、天氣圖示的獲取方法,以及如何透過命令列參數或環境變數指定地理位置與時區。此外,也提供了使用 cron 排程自動化列印的設定範例。
+ 這個專案很有趣,把天氣預報印出來,感覺很復古!而且可以自訂地點,太實用了。
+ 感謝作者提供如此詳盡的步驟,對於想 DIY 製作這種小裝置的人來說,這份文件絕對是寶藏。
/POS




Show Original Post


1 ...1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 ...1545
UP