SECRET OF CSS

The Python Edition — June 2022. Our 12 favorite Python stories for… | by Coffee Bytes | Jul, 2022


Our 13 favorite Python stories for developers

Hey everyone,

Welcome to the 34th edition of Coffee Bytes, a newsletter by Better Programming.

This issue highlights some Python guides and tutorials that we thoroughly enjoyed reading and publishing during June. From different ways to retain states in Python to securing your APIs to efficiently visualising data — we’ve got a wide range of topics. Let’s get started!

Martin Thoma stresses upon the need for smaller maintainable interfaces and shows how to do it with a builder pattern implementation. The result? He managed to reduce the core objects’ public methods from eight to two.

Eldad Uzman walks us through the benefits of using a cutting-edge Python ORM package named tortoise ORM and provides a hands-on demonstration of use cases.

Want to list down your Google Timeline data to analyse it further? Maksym Kozlenko shows how it can be done.

Alessandro Mangone builds an authentication microservice using Django, that protects its routes with a decorator to verify if the user is authorized to interact with the views.

Tired of invoking scripts from a directory every time? Liu Zheng builds a handy utility to wrap up scripts into built-in command-line tools.

0*
Image by Liu

Badji N’Wuitcha’s exploratory guide shows how to build a simple Django application based on GraphQL.

To quickly visualize datasets on a map, Ivelina Yordanova walks us through a hands-on implementation that leverages Uber’s open-source library.

Python decorators can help keep OpenTelemetry tracing instrumentation DRY — by Roni Dover

Through a use case that deals with managing guests in a fictitious hotel, Theophano Mitsa explores different ways to handle and retain states in Python.

Maps are a handy tool for visualizing data. Through his quick guide, Nik Piepenbreier shows how to create beautiful choropleth maps using GeoPandas in Python.

Xiaoxu Gao’s latest piece guides us through strategies and Python practices to secure your APIs. ratelimiter certainly piqued my interest.

To avoid getting blocked while scraping websites, Ander Rodriguez’s guide focuses on building a custom proxy rotator Python tool.

Vadim Markovtsev hacked asyncpg — an asyncio PostgreSQL client library — to parse the SELECT-ed records from low-level PostgreSQL protocol directly to NumPy structured arrays without materializing Python objects, and avoding most of the overhead.

That’s it for now. Until your next coffee,

Anupam and the Better Programming team.



News Credit

%d bloggers like this: