Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Anywhere: Issues after system maintenance on 2024-09-05

Link: https://blog.pythonanywhere.com/215/

tl;dr
On Thursday 5 September 2024 we performed some system maintenance. It appeared
to have gone well, and was completed at the scheduled time (06:20 UTC), but
unfortunately there were unexpected kn
Python Circle: Removing PDF pages using Python and PyPDF2

Link: https://pythoncircle.com/post/787/removing-pdf-pages-using-python-and-pypdf2/

Python code to remove pages from PDF files. How to delete pages from PDF files. Trim a PDF file. Pull a few pages from the PDF file and make a new one. Reduce PDF file size.
Real Python: When to Use .__repr__() vs .__str__() in Python

Link: https://realpython.com/courses/repr-vs-str/

One of the most common tasks that a computer program performs is to display data. The program often displays this information to the program’s user. However, a program also needs to show information t
Quansight Labs Blog: Announcing Scientific Python Accessibility Events

Link: https://labs.quansight.org/blog/announcing-scientific-python-accessibility-events

I am happy to announce two upcoming public events focused on helping the scientific Python ecosystem develop their accessibility skills before the new year.
PyCoder’s Weekly: Issue #646 (Sept. 10, 2024)

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

#646 – SEPTEMBER 10, 2024 View in Browser » Using Pydantic to Simplify Python Data Validation Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization li
ListenData: How to Integrate Gemini API with Python

Link: https://www.listendata.com/2024/05/how-to-use-gemini-in-python.html


In this tutorial, you will learn how to use Google's Gemini AI model through its API in Python.
Steps to Access Gemini API
Follow the steps below to access the Gemini API and then use it in python.
Real Python: How to Use Conditional Expressions With NumPy where()

Link: https://realpython.com/numpy-where-conditional-expressions/

The NumPy where() function is a powerful tool for filtering array elements in lists, tuples, and NumPy arrays. It works by using a conditional predicate, similar to the logic used in the WHERE or HAVI
Glyph Lefkowitz: Python macOS Framework Builds

Link: https://blog.glyph.im/2024/09/python-macos-framework-builds.html

When you build Python, you can pass various options to ./configure that
change aspects of how it is built. There is documentation for all of these
options, and they are
things like --prefix to tell t
Real Python: Quiz: Python Virtual Environments: A Primer

Link: https://realpython.com/quizzes/python-virtual-environments-a-primer/

So you’ve been primed on Python virtual environments! Test your understanding of the tutorial here.

[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your i
Real Python: Quiz: Python 3.13: Free-Threading and a JIT Compiler

Link: https://realpython.com/quizzes/python313-free-threading-jit/

In this quiz, you’ll test your understanding of the new features in Python 3.13.
By working through this quiz, you’ll revisit how to compile a custom Python build, disable the Global Interpreter Lock
Will Kahn-Greene: Switching from pyenv to uv

Link: https://bluesock.org/~willkg/blog/dev/switch_pyenv_to_uv.html

Premise
The 0.4.0 release of uv
does everything I currently do with pip, pyenv, pipx, pip-tools, and
pipdeptree. Because of that, I'm in the process of switching to uv.
This blog post covers switching
James Bennett: Know your Python container types

Link: https://www.b-list.org/weblog/2023/dec/24/python-container-types/

This is the last of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve.
Real Python: The Real Python Podcast – Episode #220: Configuring Git Pre-Commit Hooks & Estimating Software Projects

Link: https://realpython.com/podcasts/rpp/220/

How do you take advantage of Git pre-commit hooks? How do you build custom software checks and rules that run every time you commit your code? Christopher Trudeau is back on the show this week, bringi
Python⇒Speed: When should you upgrade to Python 3.13?

Link: https://pythonspeed.com/articles/upgrade-python-3.13/

Python 3.13 will be out October 1, 2024—but should you switch to it immediately?
And if you shouldn’t upgrade just yet, when should you?
Immediately after the release, you probably didn’t want to upgr
Python⇒Speed: It's time to stop using Python 3.8

Link: https://pythonspeed.com/articles/stop-using-python-3.8/

Upgrading to new software versions is work, and work that doesn’t benefit your software’s users.
Users care about features and bug fixes, not how up-to-date you are.
So it’s perhaps not surprising how
Matt Layman: Cloud Migration Beginning - Building SaaS #202

Link: https://www.mattlayman.com/blog/2024/cloud-migration-beginning-building-saas-202/

In this episode, we started down the path of migrating School Desk off of Heroku and onto Digital Ocean. Most of the effort was on tool changes and beginning to make a Dockerfile for deploying the app
Ned Batchelder: Cogged GitHub profile

Link: https://nedbatchelder.com/blog/202409/cogged_github_profile.html

Cog is my tool for using bits of Python to generate
content inside an otherwise static file. I used it in extreme ways to generate
my GitHub profile page.If you haven’t seen it before, you can custom
Python Morsels: Boolean operators

Link: https://www.pythonmorsels.com/boolean-operators/

Python's Boolean operators are used for combining Boolean expressions and negating Boolean expressions.



Table of contents

Combining two if statements using and
Combining expressions with Boolean o
Django Weblog: Nominate a Djangonaut for the 2024 Malcolm Tredinnick Memorial Prize

Link: https://www.djangoproject.com/weblog/2024/sep/16/nominate-a-djangonaut-for-2024-malcolm-prize/

Hello Everyone 👋 It is that time of year again when we recognize someone from our community in memory of our friend Malcolm.
Malcolm was an early core contributor to Django and had both a huge influen
Zato Blog: Smart IoT integrations with Akenza and Python

Link: https://zato.io/en/blog/akenza-iot-python-websockets.html


Smart IoT integrations with Akenza and Python


2024-09-16, by Dariusz Suchojad


Overview
The Akenza IoT platform, on its own, excels in collecting and managing data from a myriad of IoT devices.