home.social

#python — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #python, aggregated by home.social.

  1. Simple raycaster in python with raylib with the effective algorithm by: lodev.org/cgtutor/raycasting.h

  2. Want to add emojis to your program's output? Rich again comes to the rescue:

    import rich
    rich.print('Have a good day! :smile:')

    Just use :NAME: for the emoji you want. I usually use the "shortcodes" part of Emojipedia's "technical" tab.

  3. 🚀 Write your own rules in about 30 lines of , or load plugins from the Hub with hf://OWNER/REPO. safeagents scrub redacts credentials from agent trajectories before you share them.

    📊 Overhead: about 10 to 20 ms per call. One layer of defense, meant to run alongside a sandbox, not instead of one.

    🌐 github.com/huggingface/safeage

  4. 🛡️ Hugging Face open-sourced safeagents: a local proxy between your and its model server that inspects every tool call before it runs. Blocked calls are swapped for a text notice, so the harness executes nothing. Apache-2.0, written in .

    🧵👇

  5. Since 2015, the PSF Grants Program has awarded $3M+ to support Pythonistas worldwide. Thanks to you, we reopened in 2026 for a special funding round. Help us bring back more grants in 2027 with donations & memberships 💛💙

    Read grantee stories and donate: donate.python.org/

  6. Как перенести Telegram-бота в MAX: каталог, заказ и очередь обновлений

    В каталоге собственного магазина керамогранита была ветка Telegram. Для MAX понадобилось сохранить путь покупателя: открыть каталог, выбрать товар и упаковки, оформить заказ, передать контакт и получить заказ у менеджера. Главная трудность оказалась не в переносе кнопок. Между страницей магазина и ботом нужен был другой способ передачи данных: в просмотренном MAX Bridge я не нашёл аналога Telegram sendData. Я сохранил один HTML-интерфейс для двух сред запуска, но разделил способы общения с мессенджером. Дальше расскажу, как устроен этот путь в действующем коде, что удалось проверить в работе и какие ограничения остались. Это собственный проект: бюджета заказчика, прироста продаж и результатов нагрузочного теста у него в этом разборе нет.

    habr.com/ru/articles/1108462/

    #python #max #чатботы #telegram #mini_apps

  7. Please I want some more feminine & non-binary energy in my / "blogs to check out" list --> drop rec's??

    It's fine to link your own blog and bonus points if self-promotion usually gives you the ick: I explicitly want to hear from you quieter folks lurking around in the django/python communities.

    Also definitely no need to be an exclusively technical blog either; we humans are multi-faceted after all <3

  8. We're at in Glasgow!

    Esther Gillespie and Colin Gillespie are at Stand 25, chatting about AI, open source adoption, package validation, and reliable R and Python environments in pharma.

    Come and say hello!

  9. Switch 12–24 V digital outputs straight from your PC. No PLC, no firmware to write.

    Expansum is a USB I/O module you control with plain JSON text messages, from Python, C#, Node or bash. In the video: one command, the output switches.

    It also reads buttons, limit switches and sensors on its 12–24 V inputs.

    Models: 8ID8UD, 16ID, 16UD. Designed and made in Italy.

    expansum.org/en/

    #IndustrialAutomation #Embedded #Python #DIYElectronics #Maker

  10. Turn mypy's wall of text into a shareable HTML report. 299 lines, beginner-friendly, takes --src and --output html. #python #testing #mypy valtersit.com/python/mypy-type

  11. Patroni exposes a REST API on port 8008. This 276-line Python script checks every node, flags a missing leader, and can ping you via ntfy. Intermediate level, uses requests. #python #postgresql #database valtersit.com/python/patroni-c

  12. 📋 Unharnessed is an open-source #coding #agent harness with one idea: the model gets one tool, `ipython`, a persistent #Python REPL. Reading files, searching, patching forty call sites, starting a server: all of it is Python the model writes itself. Built in #Rust, MIT licensed. #AI #opensource

    ⚡ Variables instead of context. A 40,000-line log lands in the kernel under a name, and only the 10 lines the model prints reach the context. Data, functions and running processes survive compaction. 🧵👇

  13. 🎉 New djvite release version 1.6.0 🎊
    Integrates Vite resources into a Django web site.

    📦 gitlab.com/snake_coders/djvite

    Feel free to give feedback 💬, open issues 📝 or merge requests 🎁.
    📢 Boost appreciated.

    gitlab.com/snake_coders/djvite
    #djvite #django #vite #python #javascript #vuejs

  14. RE: mastodon.social/@sirosen/11762

    📢 @sirosen just cut a new release of #pip_tools — v7.7.0! It's the first one shipped from its new home under the #PyPA 🎉

    $ python3.15 -Im pip install --upgrade pip-tools

    🎷➡️ 📦 I wrote up how we moved it out of Jazzband: webknjaz.me/prose/pip-tools-mo

    🕰️ And you can find Stephen's account of this at sirosen.net/2026/11/15/pip-too

    📝 pip-tools.pypa.io/en/stable/ch

    🔏 pypi.org/project/pip-tools/7.7

    🐍 #Python 📦 #Packaging

    👥 github.com/sponsors/sirosen / github.com/sponsors/webknjaz 💰

  15. 🚀 Deploy #Odoo on Rocky Linux #VPS

    This guide walks through the steps to deploy Odoo on Rocky Linux VPS using PostgreSQL, #Python virtual environment, #Nginx reverse proxy, and systemd. This setup is production-ready and appropriate for business deployments.
    What Is Odoo?
    Odoo is an open-source business management platform that integrates many core business functions into one ...
    Continued 👉 blog.radwebhosting.com/deploy- #selfhosted #selfhosting #postgresql #opensource #rockylinux #letsencrypt

  16. Back when I was still on twitter, lol. Anyway, here are two pics. You can take the R,G,B individual components and merge them to create a color image. The notebook is a fun, interactive way of understanding and exploring image format from the mission. #space #mars #python

  17. How to Run Self-Hosted Link-in-Bio Tool with #LinkStack on #AlmaLinux #VPS

    This article provides a guide for how to run self-hosted Link-in-Bio tool with LinkStack on AlmaLinux VPS.
    How to Run ...
    Continued 👉 #letsencrypt #python #composr #opensource #selfhosted #selfhosting #laravel

    How to Run Self-Hosted Link-in...

  18. We are excited to announce Prof. Venkatesh Raghavan as a keynote speaker at the SciPy India 2026 Conference!

    Venkatesh Raghavan (aka Venka) is, presently, Professor Emeritus at Osaka Metropolitan University, Japan. A long-standing advocate of Free and Open Source Software for Geoinformatics (FOSS4G), he has helped advance its development and adoption worldwide for more than three decades.

    ---

    Buy tickets: konfhub.com/scipy-india-2026

  19. Completed a second migration of LeZ's KiCad Python scripts to KiCad 11 IPC: the two-layer PCB coil.

    Our new API atlas was invaluable, but Step 6 proved challenging: constructing footprint pads through protobuf and accounting for changes in PCB serialization, including transforms and net declarations.

    Final verification: 610 tracks, electrical continuity, and zero DRC violations.

    Code: github.com/jlpoolen/kicad-pyth

    #KiCad #Python #OpenSource

  20. Hello #InfoSec!
    I just released the open-source core of IJRAP Security (GNU AGPLv3), an offline-first forensic evidence sealer written purely in the #Python standard library (zero dependencies).

    It binds audio, video, photos & text with UTC timestamps, GPS & hybrid hashing (SHA-256 + SHA-3-256) to protect #Journalism & #HumanRights field data.

    Code & docs: github.com/ijrapmedia/ijrap-se

    Security reviews and feedback are very welcome! #Forensics #OSINT #OpenSource

  21. 33 deliberately malformed queries on NYC yellow taxi data with MUN-AI: 17 returned an error, 3 were cancelled, 13 ran. Some ran on a different column than the one named, e.g. "Average Profit per Vendor" used total_amount. Parsed / Columns used shows it.

    Local Granite 3B + TypeChat + DuckDB. Personal experiment, still a prototype.

    youtu.be/kfgKynCCmGw?si=G8s2DW

    #PyData #Python #DuckDB #TypeChat #DataAnalysis

  22. Want to make your program's output colorful? Rich comes to the rescue:

    import rich
    rich.print('Hello [blue on yellow]out there[/blue on yellow]!')

    rich.print is a superset of the "print" builtin, but lets you add styling. Some people even "from rich import print".

  23. 5th week of Djangonaut Space is done!

    On technical side, I focused the entire week on a single fix/feature (that I wrote more about on Friday's blog post) but the DjangoCon Europe's CFP deadline brought a lot of different kind of life to the community Discord this week.

    hamatti.org/posts/djangonaut-l

  24. The next is on Tuesday, 24 November 2026 at Sievo, right next to the Helsinki Central railway station.

    We'll hear how you model the mass movement of a population during an evacuation, why "the average" is a trickier question than it looks, and how to make your algorithms faster, plus one more talk still to be announced.

    And as always, the PyData Helsinki will not leave us alone.

    pydata-helsinki.fi/events/2026

  25. Zed 1.28.1 Released: Git Workflow Glue and More Reliable AI Agents:
    linuxcompatible.org/story/zed-

    Apache NetBeans IDE 32 Brings Gradle 9.8, Tomcat 11, and GlassFish 8 Support:
    linuxcompatible.org/story/apac

    Rust 1.100.0 Release: Never Type Stabilizes After a Decade:
    linuxcompatible.org/story/rust
    (Yeah never type, just speak, agentic OS is the future! Typing is for boomers! Hashtag Microslop lol (ok, I admit this was a horrible joke))

    PHP 8.6.0 RC6 Released Ahead of 19 November Stable Deadline:
    linuxcompatible.org/story/php-

    PHP 8.6.0 RC7 Released: Final Beta Ahead of November 19 Stable Launch:
    linuxcompatible.org/story/php-

    Python 3.16 Alpha 2 Release Date, New Features and What's Next:
    linuxcompatible.org/story/pyth

    Node.js 26, 24, and 22 Get Major TLS and HTTP/2 Security Fixes:
    linuxcompatible.org/story/node

    Bootstrap 5.3.9 Released: New .modal-xxl Size and Hardened npm Publishing:
    linuxcompatible.org/story/boot

    Dart 3.14 adds SDK migrations, faster Wasm and DartPad:
    alternativeto.net/news/2026/11

    Apache HTTP Server 2.4.71 Releases Critical HTTP/2 RCE Fix for Widespread Vulnerabilities:
    linuxcompatible.org/story/apac

    Godot 4.8 Beta 3 Released: Stable Build Nearing by Late 2026:
    linuxcompatible.org/story/godo

    PostgreSQL Ships Biggest Security Update, Retires Version 14:
    linuxcompatible.org/story/post

    Gitea Runner 6.0.0 removes builtin checkout, requires Gitea 1.26.2:
    alternativeto.net/news/2026/11

    OpenProject 18.0 has been released, making project management more accessible:
    alternativeto.net/news/2026/11

    GNU Emacs 31.1.91 Pretest Launches the 31.2 Development Cycle:
    linuxcompatible.org/story/gnu-

    Libghostty 1.0 brings a stable C ABI for terminals:
    alternativeto.net/news/2026/11

    UniGetUI v2026.3.4 Release: AI Agent Skills, Xcode Extension and Hash Verification:
    ntcompatible.com/story/unigetu

    HestiaCP 1.10.7 Security Release Closes Root-Escalation Flaws:
    linuxcompatible.org/story/hest

    Froxlor 2.3.17 Security Release Patches Major CVEs and Symlink Vulnerabilities:
    linuxcompatible.org/story/frox

    (Post 6/8)

    #WeeklyNews #OpenSource #FOSSNews #FOSS #OpenSourceNews #News #Zed #Rust #Python #PHP #NodeJS #Gitea #Dev #FosseryTech

  26. Почему не сохранялись навыки учеников, хотя код был готов. Три ошибки при передаче данных между сервисами

    В StudyNinja каждая задача знает, какой навык она тренирует. Платформа была готова принимать этот навык и учитывать его везде, где нужно. А потом мы заглянули в данные и увидели, что поле с навыком пустое во всех 1782 попытках учеников на тестовом стенде. Причин нашлось три, и каждой хватило бы одной. Запрос к графу знаний проходил через навык, но не мог вернуть его наружу. Граф отдавал пустую строку вместо честного «значения нет». А платформа искала навык не в том месте ответа, где он лежал. Когда починили все три, всплыло четвёртое звено. Самое неприятное в другом. Ничего не падало и не ругалось. Всё, что опиралось на навыки, тихо считалось по темам и выглядело исправным. Полный разбор с кодом и чек-листом для тех, кто строит похожие системы

    habr.com/ru/articles/1108008/

    #тестирование #python #отладка #обработка_ошибок #микросервисы #neo4j #целостность_данных #cypher #граф_знаний #apiконтракты

  27. Монтируем LLM как жесткий диск. Бесконечная файловая система на Python + FUSE

    Ни для кого не секрет, что языковые модели врут, и врут очень убедительно, часто даже с подробностями. Еще год назад если бы вы попросили у LLM ссылку на исследование, то получили бы статью, которую никто не писал. Спросили бы про метод библиотеки, и модель расписала бы его аргументы, хотя такого метода там не было. С этим продолжают бороться всем миром: привязывают модели к базам знаний, обвешивают скиллами, пишут в промпте «отвечай только по контексту». Помогает это отчасти. Выдумка все равно просачивается туда, где модели не хватило фактов. А теперь давайте вывернем вопрос наизнанку. Бывают ли задачи, где правдоподобная выдумка нужна сама по себе? Бывают, и их немало, например: тестовые данные для программ, наполнение игровых миров, ловушки для взломщиков. На последних остановлюсь подробнее.

    habr.com/ru/companies/selectel

    #fuse #python #информационная_безопасность #файловая_система #honeypot #галлюцинации #llm #llamacpp #ииагенты #qwen3

  28. Exploring PCB design automation with #KiCad!

    Built KiCad 11 (10.99) from source on #GentooLinux and successfully tested its new headless IPC API using #Python.

    Generated 100 vias in 0.017 seconds, saved the PCB, and verified all 100 survived a reload—without opening the GUI!

    Inspired by these elegant KiCad Python scripts:
    github.com/leZfromFr/kicad-pyt

    #PCBDesign #OpenSource #Electronics #EDA

  29. Finally, the Caesar Cipher Workshop is done! That was an interesting Workshop that helped me figure out some more string methods and their uses...

    I wasn't at all frustrated by it and mostly was able to work out what was expected of me throughout the course of said workshop.

    #Python #Learning #FreeCodeCamp

  30. Show HN: Gawain – Require type hints on all Python variables

    github.com/matheuzgomes/gawain

    #github #python

  31. Audit MQTT broker ACL files before they bite you. 319 lines of Python with paho, intermediate level, checks topic permissions against your acl.conf. Run it with --host, --port, --acl-file. #iot #python #mqtt valtersit.com/python/mqtt-brok

  32. This Caesar Cipher is mostly going well...Using String Methods that I somehow managed to skip entirely (FreeCodeCamp added them to the curriculum after I had passed that point). It is very interesting, to use them because I haven't actively considered those string methods and it shows. ROFL

    However, I am almost done with the Caesar Cipher and can enjoy some leisure as I will not be tackling the RPG Character creator lab (not tonight or tomorrow).

    I had been taking breaks in order to not make my brain feel so cooked like the Apply Discount Function had caused or the Travel Weather Planner Lab.

    #Tonight #Python #Learning

  33. 191 lines of Python parse auth.log with regex and pandas to flag IPs failing auth or hitting many ports fast. Advanced level. Runs against your own logs: #python #security #sysadmin valtersit.com/python/port-scan

Share on Mastodon

Enter the server where you have an account.