Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python⇒Speed: Speeding up text processing in Python (is hard)

Link: https://pythonspeed.com/articles/faster-text-processing/

If you’re doing text or string manipulation in Python, what do you do if your code is too slow?
Assuming your algorithm is reasonably efficient, the next step is to try faster alternatives to Python:
"Mathspp Pydon'ts": Streaming data from Flask to HTMX using Server-Side Events (SSE)

Link: https://mathspp.com/blog/streaming-data-from-flask-to-htmx-using-server-side-events


This short reference article shows how to stream data from a Flask web app to HTMX using server-side events (SSE).

Introduction
I have been trying to create a web app with Flask and HTMX that update
Stack Abuse: How to Get JSON from a URL in Python

Link: https://stackabuse.com/how-to-get-json-from-a-url-in-python/

Introduction
Being able to retrieve data from remote servers is a fundamental requirement for most projects in web development. JSON is probably one of the most popular formats for data exchange due t
PyCharm: PyCharm 2023.1 Release Candidate 2 Is Out!

Link: https://blog.jetbrains.com/pycharm/2023/03/2023-1-rc-2/

The second PyCharm 2023.1 Release Candidate (RC) build is here.
To see what has already been added in the PyCharm 2023.1 Early Access Program (EAP), take a look at our EAP blog posts.
The Toolbox App
John Ludhi/nbshare.io: ElasticSearch Empty Reply From Server Error

Link: https://www.nbshare.io/notebook/57079652/ElasticSearch-Empty-Reply-From-Server-Error/

ElasticSearch Empty Reply From Server ErrorIn Elasticsearch latest versions, xpack security is enabled by default. To resolve the error "Empty reply from server" curl --cacert /etc/elasticsearch/certs
Anwesha Das: Women in tech, Stockholm 2023

Link: http://anweshadas.in/women-in-tech-stockholm-2023/

What does a good day look like? For me, it is the day to spend with friends and doing what I love the most, talking and spreading knowledge about Open Source. Yesterday was one such day.

Yesterday wa
Real Python: The Real Python Podcast – Episode #150: Lessons Learned From Four Years Programming With Python

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

What are the core lessons you've learned along your Python development journey? What are key takeaways you would share with new users of the language? This week on the show, Duarte Oliveira e Carmo is
Talk Python to Me: #408: Hatch: A Modern Python Workflow

Link: https://talkpython.fm/episodes/show/408/hatch-a-modern-python-workflow

In recent years, there has been a lot of experimenting how we work with dependencies and external libraries for our Python code. There is pip, pip-tools, Poetry, pdm, pyenv, pipenv, Hatch and others w
Glyph Lefkowitz: What Would You Say You Do Here?

Link: https://blog.glyph.im/2023/03/what-would-you-say-you-do-here.html

What have I been up to?
Late last year, I launched
a Patreon. Although not quite a “soft”
launch — I did toot about it, after all — I didn’t promote it very much.
I started this way because I realize
meejah.ca: Forwarding streams over Magic Wormhole

Link: https://meejah.ca/blog/fow-wormhole-forward

An experimental ‘fow’ command to forward TCP streams on Dilation subchannels
CodersLegacy: Changing HTML tags and content with Python BeautifulSoup

Link: https://coderslegacy.com/changing-html-tags-beautifulsoup-in-python/

If you’re working with HTML in Python, the BeautifulSoup library is an excellent choice for parsing and manipulating HTML content. Most people only know about BeautifulSoup in the context of “parsing”
PyBites: Teaching packaging by building a Python package

Link: https://pybit.es/articles/teaching-packaging-by-building-a-python-package/

Listen here

Or watch here (recommended because there will be code!)


Welcome back to our podcast. In this week’s episode we look at Python packaging.
I was teaching this on our weekly PDM Code Cli
Sandipan Dey: Histopathologic Cancer Detection with CNN

Link:

Brief description of the problem and data In this mini-project, we shall use binary classification to classify an image into cancerous (class label 1) or benign (class label 0), i.e., to identify meta
Python for Beginners: Convert Dictionary to INI File in Python

Link: https://www.pythonforbeginners.com/basics/convert-dictionary-to-ini-file-in-python

INI files are primarily used as a file format for configuration files. In this article, we will discuss how to convert a python dictionary to an INI file using the configparser module.
Table of Conten
Glyph Lefkowitz: Telemetry Is Not Your Enemy

Link: https://blog.glyph.im/2023/03/telemetry-is-not-your-enemy.html

Part 1: A Tale of Two Metaphors
In software development
“telemetry” is data
collected from users of the software, almost always delivered to the authors of
the software via the Internet.
In recent yea
Kay Hayen: Nuitka Release 1.5

Link: https://nuitka.net/posts/nuitka-release-15.html

This is to inform you about the new stable release of Nuitka. It is the extremely compatible Python compiler,
“download now”.
This release contains the long awaited 3.11 support, even if only on an
ex
Michał Bultrowicz: Separating different kinds of tests

Link: https://bultrowicz.com/separating_kinds_of_tests/


When I work on a project I differentiate three kinds of tests: unit, integrated, and external.
In this post I’ll explain how I think about them.
Mike Driscoll: PyDev of the Week: Kevin Kho

Link: https://www.blog.pythonlibrary.org/2023/03/27/pydev-of-the-week-kevin-kho/

This week we welcome Kevin Kho as our PyDev of the Week! Kevin is a core developer on the Fugue package. You can catch up with Kevin on Medium where Kevin writes about Fugue, Python, and more. You can
Python for Beginners: Convert INI File to Dictionary in Python

Link: https://www.pythonforbeginners.com/basics/convert-ini-file-to-dictionary-in-python

INI files are one of the simplest configuration files that we use in software systems. In this article, we will discuss how to convert an INI file to a python dictionary.
Table of ContentsWhat is the
Real Python: How to Read Python Input as Integers

Link: https://realpython.com/python-input-integer/

If you’ve ever coded an interactive text-based application in Python, then you’ve probably found that you need a reliable way of asking the user for integers as input. It’s not enough simply to displa