Modern Good Practices for Python Development, 20 Python Projects for Beginners and more
Python 3.12 change results in Apple App Store rejection, Ways to have an atomic counter in Django with some more interesting news, articles, packages and projects
News
Leo Editor 6.8.0 released
There are big changes there like Leo now requires PyQt6.
SCons 4.8.0 Released
You can find the ChangeLog here.
Python 3.12 change results in Apple App Store rejection
It seems that an 'itms-services' string was added in Python 3.12 and it seems that Apple is scanning for this string and auto-rejecting anything containing it because itms-services URL scheme for apps that want to ask Apple's iTunes Store to install another app.
If you have a Python app in Apple’s App Store for now don’t upgrade. It is getting fixed in Python 3.13 so wait for it.
Psycopg 3.2 released
Crawlee for Python is LIVE 👏
Crawlee is one of the web scraping and automation libraries in the JavaScript/TypeScript world here in the Python world.
Articles
Modern Good Practices for Python Development
Best practices make our lives easy in the long run. Stuart Ellis covered some of them. He mentioned that these are some agreed modern best practices but that is debatable like Avoid Using Poetry other than those mostly great practices, which we all should be aware of and follow.
# Stuart Ellis
Ways to have an atomic counter in Django
One common rookie mistake usually most of us make is at the time of incrementing a counter in the database getting that counter field value incrementing and updating it in the database. For applications with less traffic it is not a big deal but if it has good traffic it leads to race conditions. In this article, Gonçalo Valério shared 3 approaches to solve this problem.
# Gonçalo Valério
A Guide to Python's Weak References Using weakref Module
Chances are that you have never touched and maybe haven't even heard about Python's weakref module but it is good to know about it. In some cases, it is useful also like Observer design pattern times. In this article, Martin Heinz explained about the weakref module and weak references with amazing examples.
# Martin Heinz
Python Directory Tree Generator — Your File Hierarchy
If you want to learn how to build a simple desktop application using “tkinter” which is a standard Python library then you should check this article by Himani Bansal. She took a simple example which displays a directory tree of the local path given by the user and explained the code & concepts.
# Himani Bansal
20 Python Projects for Beginners
Ebo Jackson shared summaries & Github URLs of his 20 Python projects which cover scripting, GUI, automation, web development, web scraping, APIs, game development, data science, image processing, and more.
If you are a beginner then check these and if possible build your version of it because doing it by yourself will teach you much more than just reading & skimming them.
# Ebo Jackson
Interesting Packages and Projects to explore
Beautiful Soup - It is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree.
drawpyo - A Python library for programmatically generating Draw.io charts.
Dash - Data Apps & Dashboards for Python. No JavaScript Required.
About Upcoming Python Events
BangPypers - Bangalore Python Users Group
Jul 13, 2024
Building Python Communities – University of Douala
Jul 15 – 16, 2024
Inland Empire Python Users Group monthly meeting
Jul 16, 2024
NZPUG-Auckland: Python, MongoDB, and AI
Jul 17, 2024
PyLadies Dublin July Meetup
Jul 16, 2024