Issue #635 (June 25, 2024)

#635 – JUNE 25, 2024

PEP 2026: Calendar Versioning for Python

This PEP proposes updating the versioning scheme for Python to include the calendar year. This aims to make the support lifecycle clear by making it easy to see when a version was first released, and easier to work out when it will reach end of life (EOL). Associated discussion
PYTHON

Rounding Numbers in Python

In this video course, you’ll learn about the mistakes you might make when rounding numbers and how to best manage or avoid them. It’s a great place to start for the early to intermediate Python developer who’s interested in using Python for finance, data science, or scientific computing.
REAL PYTHON course

Pair Your Weekly Dose of Python With a Free Training Course

Stay up to date with the latest advancements in technology by joining the NVIDIA Developer community. Get access to the latest tools, training, and experts. Join the community today and get a free course from the Deep Learning Institute →
NVIDIA sponsor

Testing With Python (Part 7)

The latest in a series of articles on testing in Python, this one shows you how to generate test data on the fly, in a repeatable way.
BITECODE

Quiz: Creating Great README Files for Your Python Projects

Take this quiz to test your understanding of how a great README file can make your Python project stand out and how to create your own README files.
REAL PYTHON

NumPy 2.0.0 Released

NUMPY

Articles & Tutorials

Ruff: A Python Linter for Error-Free and Maintainable Code

Ruff is an extremely fast, modern linter with a simple interface, making it straightforward to use. It also aims to be a drop-in replacement for other linting and formatting tools, like Pylint, isort, and Black. It’s no surprise it’s quickly becoming one of the most popular Python linters.
REAL PYTHON

Detecting Outliers in Your Data With Python

How do you find the most interesting or suspicious points within your data? What libraries and techniques can you use to detect these anomalies with Python? This week on the show, we speak with author Brett Kennedy about his book “Outlier Detection in Python.”
REAL PYTHON podcast

On Heroku? Read Our Ultimate Guide to Autoscaling

Autoscaling is critical for any resilient, cost-conscious deployment. Are you running Django, Flask, Celery, RQ? This is for you. You’ll learn the ups and downs 😎 of autoscaling in our illustrated guide →
JUDOSCALE sponsor

Why Does SQLite (In Production) Have Such a Bad Rep?

SQLite has improved a lot over the years, but its non-production reputation seems to have stuck. This is despite the fact that it is in almost every phone on the planet. This short post from Avinash talks about why it has the reputation it does.
AVINASH SAJJANSHETTY

Narwhals, scikit-lego, and Dataframe-Agnosticism

scikit-lego is a library that adds extra estimators for machine learning in scikit-learn. Its most recent release takes advantage of the Narwhals package to support dataframes from a variety of packages.
MARCO GORELLI • Shared by Marco Gorelli

How to Publish a Python Package to PyPI

Do you have a Python package that you’d like to share with the world? You should publish it on the Python Package Index (PyPI). This article gives a short example of what you need to do to publish.
MIKE DRISCOLL

Joining Strings in Python: A “Huh” Moment

A post on Mastodon caused Veronica to go down a rabbit hole. Turns out that in one particular situation, a generator isn’t faster than a list. Learn why str.join() doesn’t like generators.
VERONICA BERGLYD OLSEN

Prohibiting Outlook Email Domains

Due to an inordinate amount of bot accounts coming from outlook.com and hotmail.com, PyPI has disallowed new account sign-ups with email addresses from these domains.
THE PYTHON PACKAGE INDEX BLOG

Python Wheel Filenames Have No Canonical Form

Turns out there are no canonical rules for the names of wheel files. This can cause some confusion when determining if two files are for the same version of a module.
WILLIAM YOSSARIAN

Optimal SQLite Settings for Django 5.1

The alpha version of Django 5.1 contains new features for setting pragma controls for databases. This article describes the best choices when working with SQLite.
GIOVANNI COLLAZO

Managing My Motivation as a Solo Dev

“One of the biggest sticking points of being a solo dev is maintaining motivation.” This post from Marcus discusses some of the things he does to stay motivated.
MARCUS BUFFETT

R or Python for Bioinformatics?

If you’re in the bioinformatics field and thinking of learning to code, is R or Python your better choice? This article and video highlight the differences.
MING TANG

My Thoughts on Python in Excel

Microsoft’s new Python in Excel functionality was released almost a year ago. Having now had time to play with it, Felix gives his take.
FELIX ZUMSTEIN

NumPy 2.0: An Evolutionary Milestone

Lots has changed and been added with the release of NumPy 2.0. This article gives you the highlights.
SCIENTIFIC PYTHON BLOG

Projects & Code

redis-py: Redis Python Client

GITHUB.COM/REDIS

Automate WordPress Page Creation

GITHUB.COM/MAUBORRE

pyodmongo: ODM for MongoDB

GITHUB.COM/MAURO-ANDRE

wavepde: Wave Partial Differential Equation Solver in Python

GITHUB.COM/SALASTRO

simpleaudiostretch: Change Audio Files Speed

GITHUB.COM/MEWS

Events

Weekly Real Python Office Hours Q&A (Virtual)

June 26, 2024
REALPYTHON.COM

SPb Python Drinkup

June 27, 2024
MEETUP.COM

North Bay Python 2024

June 29 to June 30, 2024
NORTHBAYPYTHON.ORG

PyDelhi User Group Meetup

June 29, 2024
MEETUP.COM

PythOnRio Meetup

June 29, 2024
PYTHON.ORG.BR

Happy Pythoning!
This was PyCoder’s Weekly Issue #635.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s