PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Build a One-Product Shop With the Python Django Framework and Htmx

This is the first of a two-part series using Django, htmx, and Stripe to create a one-product e-commerce website. In this part, we'll start our Django project and integrate it with htmx.

https://blog.appsignal.com/2024/08/28/build-a-one-product-shop-with-the-python-django-framework-and-htmx.html
NTLM Credential Theft in Python Windows Applications

The article discloses vulnerabilities in popular Python frameworks (Gradio, Jupyter Server, and Streamlit) that can lead to NTLMv2 hash theft on Windows systems through exploitation of file system operations. It explains how these vulnerabilities can be exploited, potentially leading to credential theft or remote code execution, and emphasizes the increased risk as Python applications be...

https://www.horizon3.ai/attack-research/disclosures/ntlm-credential-theft-in-python-windows-applications/
Quick and Easy Rate Limiting for FastAPI

If you don’t want your API to crash due to too many requests, use rate limiting! This video covers how rate limiting works, what types of rate limiting you can do, how to implement it in FastAPI, and what you need to be mindful of.

https://www.youtube.com/watch?v=pZunzLJ1qcQ
Layman's Guide to Python Built-in Functions

This is a plain language guide to every built-in function in Python, paired with a simple example that shows each function in action.

https://www.mattlayman.com/blog/2024/layman-guide-python-built-in-functions/
PyRoboCOP: Python-Based Robotic Control and Optimization Package

https://ieeexplore.ieee.org/abstract/document/10440590
Why I Still Use Python Virtual Environments in Docker

The article argues for using Python virtual environments in Docker containers, citing benefits like predictability, standardization, and easier debugging. The author contends that virtual environments provide a consistent, well-understood structure for Python applications, making communication and deployment across teams more straightforward, while also simplifying Python's import behavior.

https://hynek.me/articles/docker-virtualenv/
Maximizing Python Code Efficiency: Strategies to Overcome Common Performance Hurdles

This article talks about performance issues caused by nested loops and memory allocation issues. It provides strategies to overcome these issues while improving efficiency.

https://towardsdatascience.com/maximizing-python-code-efficiency-strategies-to-overcome-common-performance-hurdles-c6292610d785