Planet Python RSS
217 subscribers
16.7K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: How to Write Beautiful Python Code With PEP 8

Link: https://realpython.com/python-pep8/

PEP 8, sometimes spelled PEP8 or PEP-8, is the official style guide for Python code. PEP 8 gives guidelines on naming conventions, code layout, and other best practices. Guido van Rossum, Barry Warsaw
Real Python: How to Get a List of All Files in a Directory With Python

Link: https://realpython.com/get-all-files-in-directory-python/

To get all the files in a directory with Python, you can leverage the pathlib module. This tutorial covers how to use methods like .iterdir(), .glob(), and .rglob() to list directory contents.
For a
Real Python: Variables in Python: Usage and Best Practices

Link: https://realpython.com/python-variables/

In Python, variables are symbolic names that refer to objects or values stored in your computer’s memory. They allow you to assign descriptive names to data, making it easier to manipulate and reuse v
Real Python: Python's assert: Debug and Test Your Code Like a Pro

Link: https://realpython.com/python-assert-statement/

Python’s assert statement allows you to write sanity checks in your code. These checks are known as assertions, and you can use them to test if certain assumptions remain true while you’re developing
Zato Blog: Understanding API rate-limiting techniques

Link: https://zato.io/en/blog/api-rate-limiting-intro.html


Understanding API rate-limiting techniques


2025-01-13, by Dariusz Suchojad


Enabling rate-limiting in Zato means that access to Zato APIs can be throttled per endpoint, user or service - includi
Real Python: Build a Personal Diary With Django and Python

Link: https://realpython.com/django-diary-project-python/

Creating a Django diary allows you to build a personal, secure web app on your computer without using external cloud services. This tutorial guides you through setting up a Django project, where you c
Python Bytes: #416 A Ghostly Episode

Link: https://pythonbytes.fm/episodes/show/416/a-ghostly-episode

<strong>Topics covered in this episode:</strong><br>

<ul>
<li><strong>Terminals &amp; Shells</strong></li>
<li><strong><a href="https://github.com/Vizonex/Winloop?featured_on=pythonbytes">Winloop</a
Eli Bendersky: Reverse mode Automatic Differentiation

Link: https://eli.thegreenplace.net/2025/reverse-mode-automatic-differentiation/

Automatic Differentiation (AD) is an important algorithm for calculating the
derivatives of arbitrary functions that can be expressed by a computer program.
One of my favorite CS papers is
"Automatic
Python Software Foundation: Powering Python together in 2025, thanks to our community!

Link: https://pyfound.blogspot.com/2025/01/powering-python-together-in-2025-thanks.html

We are so very grateful for each of you who donated or became new members during our end-of-year fundraiser and membership drive. We raised $30,000 through the PyCharm promotion offered by JetBrains–
Django Weblog: Django security releases issued: 5.1.5, 5.0.11, and 4.2.18

Link: https://www.djangoproject.com/weblog/2025/jan/14/security-releases/

In accordance with our security release policy, the Django team
is issuing releases for
Django 5.1.5,
Django 5.0.11, and
Django 4.2.18.
These releases address the security issues detailed below. We en
Real Python: Building Dictionary Comprehensions in Python

Link: https://realpython.com/courses/building-dictionary-comprehensions/

Dictionary comprehensions are a concise and quick way to create, transform, and filter dictionaries in Python. They can significantly enhance your code’s conciseness and readability compared to using
Daniel Roy Greenfeld: TIL: Using inspect and timeit together

Link: https://daniel.feldroy.com/posts/til-2025-01-timeit-and-inspect

Two libraries in Python's standard library that are useful for keeping load testing code all in one module.
Python Morsels: Python's range() function

Link: https://www.pythonmorsels.com/range/

The range function can be used for counting upward, countdown downward, or performing an operation a number of times.



Table of contents

Counting upwards in Python
Using range with a step value
Cou
Python⇒Speed: Catching memory leaks with your test suite

Link: https://pythonspeed.com/articles/identifying-resource-leaks-with-pytest/

Resource leaks are an unpleasant type of bug.
Little by little your program uses more memory, or more file descriptors, or some other limited resource.
Everything seems fine—until you run, and now you
Python Insider: Python 3.14.0 alpha 4 is out

Link: https://pythoninsider.blogspot.com/2025/01/python-3140-alpha-4-is-out.html

Hello, three dot fourteen dot zero alpha four!
https://www.python.org/downloads/release/python-3140a4/
This is an early developer preview of Python
3.14
Major
new features of the 3.14 series, compared
PyCoder’s Weekly: Issue #664: Django vs FastAPI, Interacting With Python, Data Cleaning, and More (Jan. 14, 2025)

Link: https://pycoders.com/issues/664

#664 – JANUARY 14, 2025 View in Browser » Django vs. FastAPI, an Honest Comparison David has worked with Django for a long time, but recently has done some deeper coding with FastAPI. As a resul
Peter Bengtsson: How I run standalone Python in 2025

Link: http://www.peterbe.com/plog/run-standalone-python-2025

`uv run --python 3.12 --with requests python $@` to quickly start a Python interpreter with the `requests` package installed without creating a whole project.
Mike Driscoll: Textual – Switching Screens in Your Terminal

Link: https://www.blog.pythonlibrary.org/2025/01/14/textual-switching-screens-in-your-terminal/

The Screen is a container for your widgets. These screens occupy the dimensions of your terminal by default. While you can have many different screens in a single application, only one screen may be a
Glyph Lefkowitz: Small PINPal Update

Link: https://blog.glyph.im/2025/01/small-pinpal-update.html

Today on stream, I updated
PINPal to fix the memorization algorithm.
If you haven’t heard of PINPal before, it is a vault password memorization
tool. For more detail on what that means, you can check
Real Python: How to Replace a String in Python

Link: https://realpython.com/replace-string-python/

Replacing strings in Python is a fundamental skill. You can use the .replace() method for straightforward replacements, while re.sub() allows for more advanced pattern matching and replacement. Both o