PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How to implement CommandBus in Python

CommandBus is a communication mechanism used to decouple the sender of a command from its handler or executor. It is a part of the Command Pattern and is commonly used in applications that follow the CQRS (Command Query Responsibility Segregation) pattern or other similar architectural styles. This article provides a comprehensive guide on implementing the CommandBus in Python

https://blog.szymonmiks.pl/p/how-to-implement-commandbus-in-python/
Composition over inheritance: The case for function-based views

The author shares some of his thoughts re. function- vs class-based views in Django.

https://406.ch/writing/composition-over-inheritance-the-case-for-function-based-views/
Fixit 2: Meta’s next-generation auto-fixing linter

Fixit is dead! Long live Fixit 2 – the latest version of our open-source auto-fixing linter. Fixit 2 allows developers to efficiently build custom lint rules and perform auto-fixes for their codebases.

https://engineering.fb.com/2023/08/07/developer-tools/fixit-2-linter-meta/
Structuring your Infrastructure as Code

The author proposes a layered approach to IaC, with each layer representing a different aspect of your infrastructure. This approach makes it easy to isolate changes to different parts of your infrastructure, and to reuse code across different environments.

https://leebriggs.co.uk/blog/2023/08/17/structuring-iac
A Comprehensive Guide to Python Logging with Structlog

Structlog is an open-source logging tool for Python known for its simple API, performance, and quality of life features. This tutorial explores the essential aspects of Structlog.

https://betterstack.com/community/guides/logging/structlog/
AttackGen

AttackGen is a cybersecurity incident response testing tool that leverages the power of large language models and the comprehensive MITRE ATT&CK framework. The tool generates tailored incident response scenarios based on user-selected threat actor groups and your organization's details.

https://github.com/mrwadams/attackgen
OpenCopilot

Build and embed open-source AI Copilots into your product with ease.

https://github.com/opencopilotdev/opencopilot
Git log customization

The Git log command can be customized to display the information you want to see. This article shows you how to customize the Git log command using different formatting options.

https://www.justinjoyce.dev/customizing-git-log-format/