PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Django Day Copenhagen 2023 Videos

The videos of the talks from the fourth edition of Django Day Copenhagen are now available.

https://www.youtube.com/playlist?list=PLEpW1LzVyQWgtT_i_IlUmx2FSP2jHcroX
Python 3.11 vs Python 3.12 – performance testing

This article describes the performance testing results of Python 3.12 compared to Python 3.11. A total of 91 various benchmark tests were conducted on computers with the AMD Ryzen 7000 series and the 13th-generation of Intel Core processors for desktops, laptops or mini PCs.

https://en.lewoniewski.info/2023/python-3-11-vs-python-3-12-performance-testing/
Building Custom Middleware in FastAPI

In this article you’ll see how to build custom middleware, enabling you to extend the functionality of your APIs in unique ways by building function-based and class-based middleware to modify request and response objects to suit your need and to handle rate limiting. You’ll also see how to write test cases and the best practices to follow.

https://semaphoreci.com/blog/custom-middleware-fastapi
Practical AI: HuggingFace Transformers and Diffusers for Beginners

This presentation provides a straightforward overview of the HuggingFace Transformers and Diffusers libraries. Aimed at those without a deep understanding of AI or ML, we’ll focus on practical, hands-on applications. We conclude by setting up a Flask app that generates AI images, demonstrating how these tools can be used to create useful applications.

https://www.youtube.com/watch?v=rK02eXm3mfI
Do Functions Make Design Patterns Obsolete?

In this video, we will demonstrate that functions do not render design patterns obsolete in Python. The developer community has been engaged in extensive discussions on this topic. To illustrate this perspective, we will examine several common design patterns and present an alternative approach using functions.

https://www.youtube.com/watch?v=vzTrLpxPF54
When should you upgrade to Python 3.12?

Python 3.12 is out now–but should you switch to it immediately?
And if you ...

https://pythonspeed.com/articles/upgrade-python-3.12/
Options for passwordless authentication in Django apps

Passwordless authentication is gaining popularity as a secure and user-friendly alternative to traditional password-based authentication in Django applications. In this article, we will delve into three passwordless authentication methods: email-based authentication, authentication with OAuth, and authentication with magic links.

https://www.honeybadger.io/blog/options-for-passwordless-authentication-in-django/
Python Gotcha: Comparisons

Comparing two numerical variables in Python can have surprising results if you aren't aware of some common gotchas. This post covers a couple of the common ones.

https://andrewwegner.com/python-gotcha-comparisons.html