PythonHub
2.39K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How the CIA Writes Python

The article explores the CIA's Python coding practices, including their style guide based on Google's, preferences for Python versions, and practical insights on development tools. It highlights unique aspects like using local PyPI servers, specific testing setups, and templates for CLI scripts, reflecting a blend of security considerations and pragmatic development approaches.

https://compileralchemy.substack.com/p/how-the-cia-writes-python
Debugging Python with VS Code and Sentry

Pairing VS Code and Sentry can lead to quicker resolved issues in your app. Learn how to debug your Python project with these two tools here.

https://blog.sentry.io/debugging-python-with-vs-code-and-sentry/
Building an LLM-Powered Slackbot

This article describes Benchling's development of a Slackbot powered by a Large Language Model (LLM). The LLM taps into a knowledge base stored in Amazon Bedrock, allowing developers to ask questions and receive answers directly through the familiar Slack interface.

https://benchling.engineering/building-an-llm-powered-slackbot-557a6241e993
All your Python project in one file with shiv

Summary(This article assumes you are comfy with pip + venv. If you are not, we have articles for ...

https://www.bitecode.dev/p/all-your-python-project-in-one-file
OpenSPG / KAG

KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs. It is used to build logical reasoning and factual Q&A solutions for professional domain knowledge bases. It can effectively overcome the shortcomings of the traditional RAG vector similarity calculation model.

https://github.com/OpenSPG/KAG
Python: debug unraisable exceptions with Rich

Take this Python class:
class Widget:
def del(self):
1 / 0

It implements a del ...

https://adamj.eu/tech/2025/01/02/python-unraisiable-exceptions/