Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
PyPy: How is PyPy Tested?

Link: https://www.pypy.org/posts/2022/04/how-is-pypy-tested.html

How is PyPy Tested?
In this post I want to give an overview of how the PyPy project does and thinks
about testing. PyPy takes testing quite seriously and has done some from the
start of the project. H
TestDriven.io: Rapid Prototyping with Django, htmx, and Tailwind CSS

Link: https://testdriven.io/blog/django-htmx-tailwind/

This tutorial looks at how to add htmx and Tailwind CSS to Django to reduce the amount of time it takes to create and style an interactive front-end.
"Morphex's Blogologue": Ethereum (classic) accounting data generator for Python

Link: http://blogologue.com/blog_entry?id=1648974077X97

Here's a python tool to generate CSV files suitable for accounting purposes, for incoming and outgoing Ethereum (classic) transactions:https://github.com/morphex/ethereum-classic-taxmanIt will start w
Will McGugan: Exporting SVGs of terminal output with Rich

Link: https://www.willmcgugan.com/blog/tech/post/exporting-svgs-of-terminal-output-with-rich/

Rich recently added two interesting new features.
The first feature is SVG support. Anything printed to the terminal with Rich can be captured and exported to an SVG file. The output is somewhat like
Talk Python to Me: #359: Lifecycle of a machine learning project

Link: https://talkpython.fm/episodes/show/359/lifecycle-of-a-machine-learning-project

Are you working on or considering a machine learning project? On this episode, we'll meet three people from the MLOps community: Demetrios Brinkmann, Kate Kuznecova, and Vishnu Rachakonda. They are he
ItsMyCode: Solving environment: failed with initial frozen solve. retrying with flexible solve

Link: https://itsmycode.com/solving-environment-failed-with-initial-frozen-solve-retrying-with-flexible-solve/

The Solving environment: failed with initial frozen solve. retrying with flexible solve occurs if you try to download any package that already exists and it breaks the anaconda environment.
In this tu
Peter Bengtsson: How to sort case insensitively with empty strings last in Django

Link: http://www.peterbe.com/plog/sort-case-insensitively-empty-strings-last-django

Imagine you have something like this in Django:

class MyModel(models.Models):
last_name = models.CharField(max_length=255, blank=True)
...

The most basic sorting is either: queryset.order_by
ItsMyCode: [Solved] Deprecationwarning: find_element_by_* commands are deprecated. please use find_element() instead

Link: https://itsmycode.com/find-element-by-commands-are-deprecated/

If you use Selenium 4.0.0 or above and try to find the elements on the page using the find_element_by_*() method, you will get an error saying DeprecationWarning: find_element_by_* commands are deprec
ItsMyCode: [Solved] DeprecationWarning: executable_path has been deprecated, please pass in a Service object

Link: https://itsmycode.com/executable-path-has-been-deprecated/

The executable_path is deprecated in Selenium 4 and above if you are still using the executable_path=chrome_driver_path) then you will get DeprecationWarning: executable_path has been deprecated, plea
John Ludhi/nbshare.io: Install PySpark With MongoDB On Linux

Link: https://www.nbshare.io/notebook/88044204/Install-PySpark-With-MongoDB-On-Linux/

Install PySpark With MongoDB On LinuxWe will go through following topics in this tutorial.Install JavaInstall SparkInstall MongoDBInstall PySparkInstall Mongo PySpark ConnectorConnect PySpark to Mongo
eGenix.com: eGenix Antispam Bot for Telegram 0.2.0 GA

Link: https://www.egenix.com/company/news/eGenix-Antispam-Bot-for-Telegram-0.2.0-GA.html

Introduction

eGenix has long been running a local user group meeting in DĂĽsseldorf
called Python Meeting DĂĽsseldorf and we are using a Telegram group
for most of our communication.
In the early days
Mike Driscoll: PyDev of the Week: Jeremy Tuloup

Link: https://www.blog.pythonlibrary.org/2022/04/04/pydev-of-the-week-jeremy-tuloup/

This week we welcome Jeremy Tuloup (@jtpio) as our PyDev of the Week! Jeremy is a core developer of the Jupyter project. You can see Jeremy's other contributions on his GitHub profile. Jeremy also occ
Real Python: YAML: The Missing Battery in Python

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

Python is often marketed as a batteries-included language because it comes with almost everything you’d ever expect from a programming language. This statement is mostly true, as the standard library
Reuven Lerner: The “why” of object-oriented programming (in Python)

Link: https://lerner.co.il/2022/04/01/the-why-of-object-oriented-programming-in-python/

When I ask people — in my corporate training, or when they join my “Better developers” newsletter — what frustrations they have with Python, many people say that it’s object-oriented programming. Even
Python for Beginners: Convert String to Variable Name in Python

Link: https://www.pythonforbeginners.com/basics/convert-string-to-variable-name-in-python

While programming in python, there are several instances when we might need to convert a string to a variable name. For instance, consider that we need to take some user data as input where the user n
Python⇒Speed: Speeding up software with faster hardware: tradeoffs and alternatives

Link: https://pythonspeed.com/articles/fixing-performance-with-hardware/

If you’re writing software to process data, you will often hit performance problems: batch jobs that run too slowly, or use too much memory.
One potential solution is purchasing better hardware.
With
Real Python: Python REST APIs With FastAPI

Link: https://realpython.com/courses/python-rest-apis-with-fastapi/

Creating APIs, or application programming interfaces, is an important part of making your software accessible to a broad range of users. In this video course, you’ll learn the main concepts of FastAPI
Mike Driscoll: Intro to Testing Python with doctest (Video)

Link: https://www.blog.pythonlibrary.org/2022/04/05/intro-to-testing-python-with-doctest-video/

This video tutorial teaches you the basics of using Python's doctest module for testing your code.
This video is based on my article, Python Testing with doctest.

Want to learn more Python? Check out
PyCoder’s Weekly: Issue #519 (April 5, 2022)

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

#519 – APRIL 5, 2022 View in Browser » Python’s urllib.request for HTTP Requests In this tutorial, you’ll be making HTTP requests with Python’s built-in urllib.request. You’ll try out examples a
Python Insider: The last Python 3.11 alpha (3.11.0a7) is available

Link: https://pythoninsider.blogspot.com/2022/04/the-last-python-311-alpha-3110a7-is.html

Brrrrr… do you feel that? That’s the chill of beta freeze coming closer. Meanwhile, your friendly CPython release team doesn’t rest and we have prepared a shiny new release for you: Python 3.11.0a7.ht