PythonHub
2.37K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Writing down (and searching through) every UUID

The post describes a creative project to generate and catalog every possible Version 4 UUID, creating a comprehensive searchable database of unique identifiers. The author developed a method to systematically generate all 2^122 possible UUIDs, enabling full-text search and exploration of these globally unique identifiers.

https://eieio.games/blog/writing-down-every-uuid/
Django and Postgres for the Busy Rails Developer

The article compares Django and Ruby on Rails frameworks from a Rails developer's perspective, focusing on database interactions with PostgreSQL. It highlights similarities and differences in language runtime management, library management, migrations, models, and command-line tools, providing insights for developers familiar with Rails who are exploring Django.

https://andyatkinson.com/django-python-postgres-busy-rails-developer
Building a Tiny CDN With pyinfra and Chimera Linux

The author set up a DIY content delivery network for his link blog using multiple servers worldwide, reducing average response time from 807ms to 189ms. He utilized pyinfra for automation, Chimera Linux as the host OS, and implemented GeoDNS for traffic routing, demonstrating significant performance improvements without relying on major CDN providers.

https://www.wezm.net/v2/posts/2024/tiny-cdn/
Jules

Jules by Google is an experimental AI-powered code agent that can handle Python and JavaScript bug fixes and other coding tasks. It integrates with GitHub, creates detailed plans, and generates code, saving developers time and boosting productivity.

https://labs.google.com/jules/home
Django: launch pdb when a given SQL query runs

This article discusses a technique for debugging Django applications by using database instrumentation to identify and break on specific SQL queries. This allows you to trace the execution flow back to the code that triggered the query, even when it's not immediately obvious.

https://adamj.eu/tech/2024/12/05/django-sql-breakpoint/
Helping Securing the Python with Mike Fiedler

The episode discusses the security challenges faced by PyPI, including account takeovers and typo-squatting, highlighting the importance of measures like 2FA and collaboration with security researchers. It also explores the debate between maintaining legacy systems and greenfield development, emphasizing the complexities of managing critical infrastructure and the often underestimated ro...

https://share.transistor.fm/s/db1d4d9f
Try This if You Don’t Like Python’s Exception Handling

Struggling with Python's unpredictable errors and None checks? This video shares a unique approach to making your code cleaner and more reliable using the returns package—no complicated try-except nests required.

https://www.youtube.com/watch?v=qkxf583t4Vc