What's up in the python and tech environment? - Issue #70
Welcome to issue #70 of “What’s up in the Python and tech environment?”.
This newsletter is mainly intended for developers and those passionate about computers.
This week we will discuss Rye, an experimental Python package manager, Django, programming playgrounds, machine learning, Google Bard and more! 😎
From the Python world
A gentle introduction to asyncio TaskGroup and the new timeout API. There is also a presentation for alternatives I will recommend you use where possible instead of asyncio. 🙃
Why Taskgroup and Timeout Are so Crucial in Python 3.11 Asyncio
An article summarizing the talk given by the Faster CPython team. Be aware that it is a bit technical.
Faster CPython at PyCon, part one
An interesting article is showing how to use Server-Sent Events with Django.
N.B: Writing unit tests for this use case is not easy.
Writing a chat application in Django 4.2 using SSE
Continuing with Django, here is an example of a technical stack you can apply to your project.
Recommended stack for your Django Project
And to finish with Django, here are some tips when dealing with databases.
9 Django Tips for Working with Databases
If you use the pytz
library to manipulate dates, you may want to read this article.
pytz: The Fastest Footgun in the West
Here is a simple hack to implement an LRU cache with time-to-live (TTL). It is worth noting that you can use a third-party library like cachetools for that purpose.
Implement a Cache Decorator with Time to Live Feature in Python
A nice project to track unused or misused dependencies in a project.
Armin Ronacher, a seasoned Python / Rust developer (the creator of the Flask web framework) releases an experimental library to manage dependencies. It is an all-in-one tool playing the roles of pip /poetry / pyenv / pipx.
Rye: An Experimental Package Management Solution for Python
From the Web
A developer raises some concerns about Google Bard concerning keyword manipulation exploits. What do you think?
Google Bard is a glorious reinvention of black-hat SEO spam and keyword-stuffing
A curious but instructive project showing how a TLS 1.3 connection is made before fetching a webpage.
See this page fetch itself, byte by byte, over TLS
An attempt to introduce machine learning with visual effects.
A visual introduction to machine learning
An awesome list of programming playgrounds. You will learn about programming languages, network stuff, etc...
A list of programming playgrounds
In this article, you will discover an AWS service to help you create robust applications in AWS cloud.
Resilient Containers for Humans: ECS Workloads with AWS Resilience Hub
Do we have UI designers in the crew? Here is a technique to adapt typography to the size of a screen using CSS techniques.
Container Query Units and Fluid Typography
Bonus
To start the week well I am sharing with you the following picture.
This is all for this week. I hope you enjoy it and if it is the case, don’t hesitate to share it on your social media.
Take care of yourself and see you soon! 🙂