Planet Python RSS
215 subscribers
16.8K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Juri Pakaste: Splitting a Xcode project with SPM

Link: https://juripakaste.fi/split-swift-project-with-spm/

I was talking on Mastodon about splitting an Xcode project into smaller pieces. Here's an elaboration.
Background: With SwiftUI previews you want small focused Xcode schemes. The larger your scheme, t
Matt Layman: Practical Business Jinja

Link: https://www.mattlayman.com/blog/2023/practical-business-jinja/

Inspired by the Practical Business Python blog this Python Frederick meetup will cover how to automate document creation using Python-docx and Jinja.
Abhijeet Pal: How to Use Subquery() in Django With Practical Examples

Link: http://djangocentral.com/how-to-use-subquery-in-django/

In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing efficient and optimized web applications is
Stack Abuse: How to Unzip a .gz File Using Python

Link: https://stackabuse.com/how-to-unzip-a-gz-file-using-python/

Introduction
Working with compressed files is a common occurrence in programming, and of the various types of compressed files, .gz files are pretty popular in the Unix and Linux world.
In this Byte,
Stack Abuse: Fixing "ModuleNotFoundError: No module named 'mysql'" in Python

Link: https://stackabuse.com/fixing-modulenotfounderror-no-module-named-mysql-in-python/

Introduction
Python is a very dynamic and flexible language with a great ecosystem of modules and libraries. However, it can be very frustrating when you encounter module errors, like ModuleNotFoundEr
Real Python: What Are Python Asterisk and Slash Special Parameters For?

Link: https://realpython.com/python-asterisk-and-slash-special-parameters/

Whenever you think of Python’s asterisk operator (*), you most likely think of multiplication or exponentiation. Similarly, you probably associate the forward slash operator (/) with division. But yo
Stack Abuse: Error "Sequence item 0: expected str instance, X found" in Python

Link: https://stackabuse.com/error-sequence-item-0-expected-str-instance-x-found-in-python/

Introduction
In Python, like any other programming language, we often encounter different types of errors. These errors can sometimes be difficult to understand and address, especially for beginners.
Real Python: Process Images Using the Pillow Library and Python

Link: https://realpython.com/courses/python-pillow/

When you look at an image, you see the objects and people in it. However, when you read an image programmatically with Python or any other language, the computer sees an array of numbers. In this vide
Stack Abuse: Counting Non-NaN Values in DataFrame Columns

Link: https://stackabuse.com/counting-non-nan-values-in-dataframe-columns/

Introduction
Data cleaning is an important step in any data science project. In Python, Pandas DataFrame is a commonly used data structure for data manipulation and analysis.
In this Byte, we will foc
PyCoder’s Weekly: Issue #590 (Aug. 15, 2023)

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

#590 – AUGUST 15, 2023 View in Browser » How to Annotate Methods That Return self In this tutorial, you’ll learn how to use the Self type hint in Python to annotate methods that return an instan
Python Bytes: #348 JavaScript in Your Python

Link: https://pythonbytes.fm/episodes/show/348/javascript-in-your-python

<a href='https://www.youtube.com/watch?v=0DfmSdA2jM8' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>

<p>Sponsored by us! Support our work through:</p
PyBites: ⚠️Why you should avoid import * in Python 🐍

Link: https://pybit.es/articles/why-you-should-avoid-import-in-python/

Anyone who’s worked with Python knows that modules can be a Godsend, saving you time, effort, and many lines of code.
They even have namespacing built-in
To expand on this a bit:

Saving time, effo
Python GUIs: Trademarks and Open Source Software: What you need to know

Link: https://www.pythonguis.com/faq/trademarks-and-open-source-software/

As previously discussed, a central concept of open source licenses is that the author of a given program grants anyone permission to use, modify, or redistribute their code without seeking specific pe
Real Python: Python Polars: A Lightning-Fast DataFrame Library

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

In the world of data analysis and manipulation, Python has long been the go-to language. With extensive and user-friendly libraries like NumPy, pandas, PySpark, and Dask, there’s a solution available
PyBites: Break Out of Tutorial Hell, Build up The Python Coding Habit on Our Platform 💪

Link: https://pybit.es/articles/no-more-tutorial-hell-code-python-on-our-platform/

Ready to level up your Python skills?
Stop tutorial paralysis and start implementing
Here are 10 reasons coding on our platform (CodeChalleng.es) is so effective for (aspiring) Python programmers.
Mike Driscoll: Global Interpreter Lock Optional in Python 3.13

Link: https://www.blog.pythonlibrary.org/2023/08/16/global-interpreter-lock-optional-in-python-3-13/

Python’s Global Interpreter Lock (GIL) may finally be coming to an end. The Python Steering Council recently announced that they are accepting PEP 703. This PEP proposes adding a build configuration (
Stack Abuse: How to Select Columns in Pandas Based on a String Prefix

Link: https://stackabuse.com/how-to-select-columns-in-pandas-based-on-a-string-prefix/

Introduction
Pandas is a powerful Python library for working with and analyzing data. One operation that you might need to perform when working with data in Pandas is selecting columns based on their
Anwesha Das: Ansible 8.3.0 out now

Link: http://anweshadas.in/ansible-8-3-0-out-now/

I released the Ansible 8.3.0 on 15th August, 2023. This is the Ansible stable release. You can read the full Changelog here
You can install it via pip.
python3 -m pip install ansible==8.3.0 --user
Yo
CodersLegacy: Python Lazy Loading with Importlib

Link: https://coderslegacy.com/python-lazy-loading-with-importlib/

Welcome to this tutorial on Python Lazy Loading with importlib! In this tutorial, we’ll explore how to use the importlib library to achieve lazy loading of modules in your Python code.






T
Stack Abuse: Using For and While Loops for User Input in Python

Link: https://stackabuse.com/using-for-and-while-loops-for-user-input-in-python/

Introduction
Python, a high-level, interpreted programming language, is known for its simplicity and readability. One of the many features that make Python so powerful is the for and while loops. Thes