PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
5 Horrifying Python Techniques to get you fired

Python is a great language, with a few... exploits. While a lot of implementation details make it easier to work with, they also lead to quirks - quirks which can be exploited for fun (and profit?). Whether it's variables, match statements, type hinting, imports, or even just trying to fit everything on one line, this talk has more than a few slithering tricks up its sleeve.

https://www.youtube.com/watch?v=t863QfAOmlY
Deploy a Voice-Based Chatbot with BentoML, LangChain, and Gradio

The article provides a tutorial on how to deploy a voice-based chatbot using several open-source tools, including BentoML, LangChain, and Gradio. It covers the steps for building and training a chatbot model, integrating it with voice commands, and deploying the model as a web service for real-time interactions with users.

https://towardsdatascience.com/deploy-a-voice-based-chatbot-with-bentoml-langchain-and-gradio-7f25af3e45df
Bevy v2.0 - The Simple Python Dependency Injection Framework

Modern software can be complex, with many components that depend on each other. It can be hard to manage those dependencies without your project becoming a mess of spaghetti code. This article introduces you to Bevy v2.0, a robust Dependency Injection framework that will help you simplify your Python applications.

https://blog.zech.codes/bevy-v2
“Externally managed environments”: when PEP 668 breaks pip

You’re on a new version of Linux, you try a pip install, and it errors out, talking about “externally managed environments” and “PEP 668”. What’s going on? How do you solve this?

https://pythonspeed.com/articles/externally-managed-environment-pep-668/
Trusted Publishing; how to publish to PyPI with Github Actions

https://pgjones.dev/blog/trusted-plublishing-2023/