PythonHub
2.4K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How a Decorator Crashed My Flask App: Lessons Learned

The article explains how a decorator without functools.wraps caused a Flask app to crash by assigning the same name to multiple endpoints. It demonstrates the importance of using functools.wraps to maintain function metadata, thus preventing such errors.

https://suyogdahal.com.np/posts/how-decorator-crashed-my-flask-app/
PyCon US 2024 Videos

Couldn't attend PyCon US 2024? The videos of the talks have started trickling down.

https://www.youtube.com/playlist?list=PL2Uw4_HvXqvYhjub9bw4uDAmNtprgAvlJ
Rye: A Hassle-Free Python Experience

https://rye.astral.sh/
Crawlee

A web scraping and browser automation library for Python to build reliable crawlers. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with BeautifulSoup, Playwright, and raw HTTP. Both headful and headless mode. With proxy rotation.

https://github.com/apify/crawlee-python
Entering text in the terminal is complicated

The article explores the complexities and inconsistencies of text input in terminal environments, discussing various modes from basic input to advanced systems like readline and custom solutions. It provides insights into how different programs handle text input, offers tips for users, and explains the origins and features of common keyboard shortcuts used in terminal text editing.

https://jvns.ca/blog/2024/07/08/readline/