Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Mike Driscoll: Automating Excel with Python Now on ProductHunt

Link: https://www.blog.pythonlibrary.org/2022/02/10/automating-excel-with-python-now-on-producthunt/

My latest Python book, Automating Excel with Python is now on ProductHunt

If you have a ProductHunt account, I would appreciate it if you voted the book up.
The book is currently available for purcha
Python Bytes: #270 Can errors really be beautiful?

Link: https://pythonbytes.fm/episodes/show/270/can-errors-really-be-beautiful

<p><strong>Watch the live stream:</strong></p>

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

<p><strong>About the show</strong></p>
Real Python: The Real Python Podcast – Episode #97: Improving Your Django and Python Developer Experience

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

How often have you thought about your Developer Experience (DX)? How do you improve your workflow, find documentation, and simplify code formatting? This week on the show, Adam Johnson is here to talk
Python⇒Speed: Faster Python calculations with Numba: 2 lines of code, 13× speed-up

Link: https://pythonspeed.com/articles/numba-faster-python/

Python is a slow language, so computation is best delegated to code written in something faster.
You can do this with existing libraries like NumPy and SciPy, but what happens when you need to impleme
Brian Okken: Beta 9.0 of Python Testing with pytest, 2nd ed, available.

Link: https://pythontest.com/book/2nd-ed-beta-9/

The Beta 9.0 is available for Python Testing with pytest, 2nd edition, as of Feb 9, 2022.

With this 9th beta release, copy edit and indexing are complete. Next it goes to layout, then to printing.
Am
PyCharm: Webinar “Beginner Concurrency with asyncio” with Jeremy Schulman

Link: https://blog.jetbrains.com/pycharm/2022/02/webinar-beginner-concurrency-with-asyncio-with-jeremy-schulman

Interested in learning async Python using a real-world example? Concurrency can be hard. Getting started with asyncio may feel intimidating if you are starting off by reading the language reference do
Nicola Iarocci: Work in progress on Eve 2.0

Link: https://nicolaiarocci.com/work-in-progress-on-eve-2.0/

I’ve been back at the forge working on Eve 2.0. Version 2 will support Python 3.7+ and drop Python 2.7, 3.5 and 3.6. It will bring support for PyMongo 4+ as well, along with several other minor fixes
Mike Driscoll: PyDev of the Week: Roman Right

Link: https://www.blog.pythonlibrary.org/2022/02/14/pydev-of-the-week-roman-right/

This week we welcome Roman Right (@roman_the_right) as our PyDev of the Week! Roman is the creator of Beanie, an Asynchronous Python object-document mapper (ODM) for MongoDB.

You can see what else Ro
Real Python: Python's zipfile: Manipulate Your ZIP Files Efficiently

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

Python’s zipfile is a standard library module intended to manipulate ZIP files. This file format is a widely adopted industry standard when it comes to archiving and compressing digital data. You can
Daniel Roy Greenfeld: More Married

Link: https://daniel.feldroy.com/posts/2022-02-more-married

Audrey and I met in early 2010 and within days were in love. We were married in late 2013. This program calculates how much more we've been married than not married.
For example:

At some point in Nov
Zero-with-Dot (Oleg Żero): How to write better scientific code in Python?

Link: https://zerowithdot.com/improve-data-science-code/

Introduction
A large part of any scientific effort lies down in writing code.
Be it typical machine-learning modeling, an analysis, or contributing to a data project,
a significant part of the time go
Python GUIs: Using the PySide6 ModelView Architecture to build a simple Todo app (updated for PySide6)

Link: https://www.pythonguis.com/tutorials/pyside6-modelview-architecture/

As you start to build more complex applications with PySide6 you'll likely come across issues keeping widgets in sync with your data.
Data stored in widgets (e.g. a simple QListWidget) is not readily
Abhijeet Pal: Python Program to Calculate Power of a Number

Link: http://example.com/calculate-power-of-a-number/

Problem Definition Create a Python program to take two numbers from the user one being the base number another the exponent then calculate the power. Program import math base_number = float(input("Ent
Abhijeet Pal: Python Program to Find the Factors of a Number

Link: http://example.com/find-the-factors-of-a-number/

The factor of any number is a whole number which exactly divides the number into a whole number without leaving any remainder. For example, 3 is a factor of 9 because 3 divides 9 evenly leaving no rem
Abhijeet Pal: Python Programs to Create Pyramid and Patterns

Link: http://example.com/create-pyramid-and-patterns/

In this article, we will go over different ways to generate pyramids and patters in Python. Half pyramid of asterisks def half_pyramid(rows): for i in range(rows): print('*' * (i+1)) half_pyramid(6) O
Abhijeet Pal: Python Program to Convert Binary Number to Decimal and Vice-Versa

Link: http://example.com/convert-binary-number-to-decimal-and-vice-versa/

A binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols 0 and 1. The decimal numeral system is the standard system for denoting integer
Abhijeet Pal: Python Program to Convert Octal Number to Decimal and vice-versa

Link: http://example.com/convert-octal-number-to-decimal-and-vice-versa/

The octal numeral system, or oct for short, is the base-8 number system and uses the digits 0 to 7. The main characteristic of an Octal Numbering System is that there are only 8 distinct counting digi
Abhijeet Pal: Python Program To Reverse a Sentence

Link: http://example.com/reverse-a-sentence/

Problem Definition Create a python program to reverse a sentence. Algorithm Take a string as input. Convert the sentence into a list of words. Join the list in the reverse order which ultimately is t
Abhijeet Pal: How To Fix - FATAL: Peer authentication failed for user "postgres" Error

Link: http://example.com/how-to-fix-fatal-peer-authentication-failed-for-user-postgres-error/

Peer authentication failed error arrives when you try to login to your PostgreSQL user but authentication fails because by default psql connects over UNIX sockets using peer authentication instead of