NanoDjango - single-file Django apps, Is Python Really That Slow? and more
PSF Board Retreat 2024, Can You Tell Free Python Art from Multi-Million Dollar Pieces? with some more interesting news, articles, packages and projects
News
PEP 766 – Explicit Priority Choices Among Multiple Indexes
PSF Board Retreat 2024
The PSF Board met on an annual retreat in September to connect, discuss strategy, and work on how the PSF can continue to grow and support our wonderful Python community! You can read this report to learn more.
PyCA cryptography 44.0.0 released!
Articles
Can You Tell Free Python Art from Multi-Million Dollar Pieces?
Do you want to create abstract art, like Piet Mondrian and Josef Albers's art using Python? Then check out this article by Anna Gordun Peiro. She explained her approach, shared her process and provided the code also. Her work is impressive - it’s hard to tell the difference between her art and the originals!
# Anna Gordun Peiro
If you want to quickly prototype a small Django application and share it with others, check out the NanoDjango package. It lets you build a Django site by coding in a single file, including views, models and admin. The best part? Once you're ready, you can easily convert it into a full Django project. In this BugBytes YouTube video, Lyle demonstrated how to use NanoDjango with a clear example.
# BugBytes
Talk Python rewritten in Quart (async Flask)
Michael Kennedy rebuilt the entire Talk Python website, switching from the Pyramid framework to Quart (an async version of Flask). He shared his journey, explaining why and how he made the change. During this process, he also created a package called Chameleon-Flask.
# Michael Kennedy
Is Python Really That Slow?
You often hear that Python is slow. While this is partly true, it’s not entirely accurate in real-world scenarios since many Python packages are built using C or Rust. In this article, Miguel Grinberg used two examples - Fibonacci numbers and Bubble Sort to share benchmark results comparing CPython 2.7, all versions from 3.8 to 3.13, PyPy, Node.js, and Rust. As expected, Rust performs exceptionally well, but there are surprises, like PyPy’s impressive speed and CPython’s steady improvements.
# Miguel Grinberg
Best Practices for Structuring a Django Project
In this article, Eyong Kevin shared the steps he follows when creating Django projects. He covered several important aspects, such as managing separate requirements.txt
files for development and production without duplication and avoiding nested folders with the same name during project setup, etc.
# Eyong Kevin
Improving GroupBy.map with Dask and Xarray
Recent improvements in using Dask with Xarray have made working with large geospatial datasets much easier. In this article, Patrick Hoefler explained why these issues caused challenges for Xarray users in the past and demonstrated how changes to Dask’s data sub-selection have improved performance and scalability.
# Patrick Hoefler
Interesting Packages and Projects to explore
Nuitka - Nuitka is a Python compiler written in Python. You feed it your Python app, it does a lot of clever things and spits out an executable or extension module.
PyMuPDF - PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
Streamlit searchbox - Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function.
About Upcoming Python Events
PyData Global 2024
December 3 – 5, 2024
DELSU Tech Invasion 2.0 - Python for Academics
December 4 – 5, 2024
PyCon Tanzania 2024
December 1 – 5, 2024
Canberra Python meetup
December 5, 2024
PyLadies Amsterdam: Introduction to Data Storytelling
December 7, 2024