Planet Python RSS
215 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Luke Plant: pyastgrep and custom linting

Link: https://lukeplant.me.uk/blog/posts/pyastgrep-and-custom-linting/

A while back I released pyastgrep, which is a rewrite of astpath. It’s a tool that allows you to search for specific Python syntax elements using XPath as a query language.
As part of the rewrite, I s
Python Anywhere: New help page: Playwright

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

We’ve had an increasing number of people asking us how to use
Playwright on
PythonAnywhere. Playwright is a browser automation framework that was
developed by Microsoft; like the more-established
Sel
Quansight Labs Blog: Writing fast string ufuncs for NumPy 2.0

Link: https://labs.quansight.org/blog/numpy-string-ufuncs

The journey of writing string ufuncs and creating the np.strings namespace for NumPy 2.0
Matt Layman: Export Journal Feature - Building SaaS with Python and Django #191

Link: https://www.mattlayman.com/blog/2024/export-journal-feature-building-saas-with-python-and-django-191/

In this episode, I started with cleaning up a few small items. After those warmups, we moved on to building an export feature that will allow users to take their journal entries if they want to leave
Talk Python to Me: #463: Running on Rust: Granian Web Server

Link: https://talkpython.fm/episodes/show/463/running-on-rust-granian-web-server

So you've created a web app with Python using Flask, Django, FastAPI, or even Emmett. It works great on your machine. How do you get it out to the world? You'll need a production-ready web server. On
Zato Blog: Web scraping as an API service

Link: https://zato.io/en/blog/web-scraping-api-integrations.html


Web scraping as an API service


2024-05-27, by Dariusz Suchojad


Overview
In systems-to-systems integrations, there comes an inevitable time when we have to employ some kind of a web scraping too
Real Python: How to Create Pivot Tables With pandas

Link: https://realpython.com/how-to-pandas-pivot-table/

A pivot table is a data analysis tool that allows you to take columns of raw data from a pandas DataFrame, summarize them, and then analyze the summary data to reveal its insights.
Pivot tables allow
Robin Wilson: How to install the Python triangle package on an Apple Silicon Mac

Link: https://blog.rtwilson.com/how-to-install-the-python-triangle-package-on-an-apple-silicon-mac/

I was recently trying to set up RasterVision on my Apple Silicon Mac (specifically a M1 MacBook Pro, but I’m pretty sure this applies to any Apple Silicon Mac). It all went fine until it came time to
Quansight Labs Blog: Dataframe interoperability - what has been achieved, and what comes next?

Link: https://labs.quansight.org/blog/dataframe-interop-pycon-lit-2024

An overview of the dataframe landscape, and solution to the "we only support pandas" problem
Python Software Foundation: Thinking about running for the Python Software Foundation Board of Directors? Let’s talk!

Link: https://pyfound.blogspot.com/2024/05/blog-post.html

PSF Board elections are a chance for the community to choose representatives to help the PSF create a vision for and build the future of the Python community. This year there are 3 seats open on the P
Real Python: Efficient Iterations With Python Iterators and Iterables

Link: https://realpython.com/courses/efficient-iterations-iterators-iterables/

Python’s iterators and iterables are two different but related tools that come in handy when you need to iterate over a data stream or container. Iterators power and control the iteration process, whi
Go Deh: Recreating the CVM algorithm for estimating distinct elements gives problems

Link: http://paddy3118.blogspot.com/2024/05/recreating-cvm-algorithm-for-estimating.html

  Someone at work posted a link to this Quanta Magazine article. It describes a novel, and seemingly straight-forward way to estimate the number of distinct elements in a datastream. Quanta describes
Ned Batchelder: One way to fix Python circular imports

Link: https://nedbatchelder.com/blog/202405/one_way_to_fix_python_circular_imports.html

In Python, a circular import is when two files each try to import the other,
causing a failure when a module isn’t fully initialized. The best way to fix
this situation is to organize your code in la
PyCoder’s Weekly: Issue #631 (May 28, 2024)

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

#631 – MAY 28, 2024 View in Browser » Building a Python GUI Application With Tkinter In this video course, you’ll learn the basics of GUI programming with Tkinter, the de facto Python GUI framew
Trey Hunner: PyCon 2024 Reflection

Link: https://treyhunner.com/2024/05/pycon-2024-reflection/

I traveled back home from PyCon US 2024 last week.
This is my reflection on my time at PyCon.
Attempting to eat vegan
Since 2020, I’ve been gradually eating more plant-based and a few months ago I dec
Python Morsels: Equality versus identity in Python

Link: https://www.pythonmorsels.com/equality-vs-identity/

Equality checks whether two objects represent the same value. Identity checks whether two variables point to the same object.



Table of contents

The equality operator in Python
The is operator in
Real Python: What Are CRUD Operations?

Link: https://realpython.com/crud-operations/

CRUD operations are at the heart of nearly every application you interact with. As a developer, you usually want to create data, read or retrieve data, update data, and delete data. Whether you access