Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Build an Asteroids Game With Python and Pygame

Link: https://realpython.com/asteroids-game-python/

Do you want to create your own computer games but like Python too much to abandon it for a career as a game developer? There’s a solution for that! With the Pygame module, you can use your amazing Pyt
Python Pool: Best Ways to Use Python String __contains__() Method

Link: https://www.pythonpool.com/python-string-__contains__/?utm_source=rss&utm_medium=rss&utm_campaign=python-string-__contains__

Introduction
There are many ways to check if the substring is present on the main string in python in python. In that, one of the methods is Python String __contains__(). This method is used to check
Python Pool: How to Convert Numpy Array to Pandas Dataframe

Link: https://www.pythonpool.com/numpy-array-to-pandas-dataframe/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-array-to-pandas-dataframe

Introduction
In python, there are many ways to convert a numpy array to a pandas dataframe. But, sometimes we are asked to solve with particular methods. So In this tutorial, we will be seeing all the
Python Pool: Prime Factorization | How to Find Prime Factors of a Number in Python

Link: https://www.pythonpool.com/prime-factorization-python/?utm_source=rss&utm_medium=rss&utm_campaign=prime-factorization-python

Introduction
In this article, we will see a python program to print all the prime factors of the given number. If a number is a prime number and perfectly divides the given number then that number is
Python Pool: How to Start Using Numpy logspace() Method in Python

Link: https://www.pythonpool.com/numpy-logspace/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-logspace

What is numpy logspace?
The Numpy logspace() function returns or creates the array by using the numbers that are evenly separated on a log scale. In the linear space, the sequence basically starts at
The Digital Cat: AWS Log Insights as CloudWatch metrics with Python and Terraform

Link: https://www.thedigitalcatonline.com/blog/2021/03/22/aws-log-insights-as-cloudwatch-metrics-with-python-and-terraform/

Recently I started using AWS CloudWatch Log Insights and I find the tool really useful to extract data about the systems I'm running without having to set up dedicated monitoring tools, which come wit
ABlog for Sphinx: ABlog v0.10.15 released

Link: https://ablog.readthedocs.org/release/ablog-v0.10-released/#ablog-v0-10-15-released

ABlog v0.10.15 released
Python for Beginners: How to Comment Inside a Python Dictionary

Link: https://www.pythonforbeginners.com/comments/how-to-comment-inside-a-python-dictionary


Comments in python are very handy in increasing the readability and maintainability of code. Generally we use comments to describe functions and class descriptions, for documentation purposes or to e
Peter Bengtsson: Umlauts (non-ascii characters) with git on macOS

Link: https://www.peterbe.com/plog/umlauts-with-git-on-osx

Use `git config --global core.quotePath false` to not get problems with umlauts in `git`.
Podcast.__init__: Be Data Driven At Any Scale With Superset

Link: https://www.pythonpodcast.com/superset-data-driven-episode-207/

Becoming data driven is the stated goal of a large and growing number of organizations. In order to achieve that mission they need a reliable and scalable method of accessing and analyzing the data th
Matthew Wright: Unit testing Python code in Jupyter notebooks

Link: https://www.wrighters.io/unit-testing-python-code-in-jupyter-notebooks/

It is possible to unit test Python code that lives in a Jupyter notebook. This article looks at three reasonable choices.The post Unit testing Python code in Jupyter notebooks appeared first on wright
"CodersLegacy": Improving Performance in Pygame – Speed up your Game

Link: https://coderslegacy.com/improving-speed-performance-in-pygame/

While Pygame may be lacking features and optimization when compared to actual game development frameworks, low performance in it is not often it’s fault. If your simple 2D game is having performance i
ABlog for Sphinx: ABlog v0.10.16 released

Link: https://ablog.readthedocs.org/release/ablog-v0.10-released/#ablog-v0-10-16-released

ABlog v0.10.16 released
Matt Layman: Deploy A Site Live

Link: https://www.mattlayman.com/understand-django/deploy-site-live/

In the previous Understand Django article, we looked at automated testing and how writing tests to check your Django project can be very valuable to save you time and make sure your site works for you
Mike Driscoll: Python 201: The functools Module (Video)

Link: https://www.blog.pythonlibrary.org/2021/03/23/python-201-the-functools-module-video/

I recently did a talk on Python’s neat functools module. This screencast covers the majority of the module:

Caching

cache
lru_cache


total_ordering
partial
reduce
singledispatch
wraps

 

Related R
Anarcat: Major email crash with syncmaildir

Link: https://anarc.at/blog/2021-03-22-email-crash/

TL:DR; lost half my mail (150,000 messages, ~6GB) last night. Cause
uncertain, but possibly a combination of a dead CMOS battery, systemd
OnCalendar=daily, a (locking?) bug in syncmaildir, and general
Real Python: Records and Sets: Selecting the Ideal Data Structure

Link: https://realpython.com/courses/records-sets-ideal-data-structure/

There are a variety of ways for storing and managing data in your program and the choice of the right data structure has an effect on the readability of your code, ease of writing, and performance. Py
death and gravity: Dataclasses without type annotations

Link: https://death.andgravity.com/dataclasses

The dataclasses standard library module
reduces the boilerplate of writing classes
by generating special methods like __init__ and __repr__.
I've noticed a small (but vocal) minority of people that:
Python⇒Speed: The worst so-called "best practice" for Docker

Link: https://pythonspeed.com/articles/security-updates-in-docker/

Somebody is always wrong on the Internet, and bad Docker packaging advice is quite common.
But one particular piece of advice keeps coming up, and it’s dangerous enough to merit its own article.
In a
Reuven Lerner: One year of “Python for non-programmers”

Link: https://lerner.co.il/2021/03/23/one-year-of-python-for-non-programmers/

In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible