Planet Python RSS
215 subscribers
16.8K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
PyBites: Avoiding Silent Failures in Python: Best Practices for Error Handling

Link: https://pybit.es/articles/python-errors-should-not-pass-silently/

In the world of programming, errors are inevitable. But how we choose to handle these errors can make the difference between a system that is robust and user-friendly and one that is fraught with ambi
ListenData: How to Run Proton VPN in Windows with Python

Link: https://www.listendata.com/2023/08/python-code-to-run-proton-vpn.html

In this tutorial, we will show you how to run Proton VPN in Windows using Python Code.
Prerequisite
First you need to download and install the OpenVPN GUI. OpenVPN GUI is a user-friendly application t
ListenData: How to Run Windscribe VPN in Windows with Python

Link: https://www.listendata.com/2023/08/python-code-to-run-windscribe-vpn.html

In this tutorial, we will show you how to run Windscribe VPN in Windows using Python Code. Windscribe is a popular VPN service that offers several features. Windscribe's free version maintains the sam
Real Python: What Does if __name__ == "__main__" Mean in Python?

Link: https://realpython.com/courses/if-name-main-python/

You’ve likely encountered Python’s if __name__ == "__main__" idiom when reading other people’s code. You might have even used if __name__ == "__main__" in your own scripts. But did you use it correctl
PyCoder’s Weekly: Issue #589 (Aug. 8, 2023)

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

#589 – AUGUST 8, 2023 View in Browser » Exploring Pandas 2.0 & Targets for Apache Arrow What are the new ways to describe your data in pandas 2.0? Will the addition of Apache Arrow to the data b
Python Bytes: #347 The One About Context Mangers

Link: https://pythonbytes.fm/episodes/show/347/the-one-about-context-mangers

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

<p><strong>About the show</strong></p>

<p>Sponsored by us! Support our work through:</p
Real Python: Prompt Engineering: A Practical Example

Link: https://realpython.com/practical-prompt-engineering/

You’ve used ChatGPT, and you understand the potential of using a large language model (LLM) to assist you in your tasks. Maybe you’re already working on an LLM-supported application and read about pro
PyBites: Why Our Python Mentoring Beats the Traditional Coding Bootcamp

Link: https://pybit.es/articles/why-our-python-mentoring-beats-the-traditional-coding-bootcamp/

If you’ve come across our PDM and PDI programs, you might be wondering: Is this just another bootcamp? And how can it help me become a proficient Python developer?
We’re here to demonstrate why our a
PyBites: The Arbitrary (Keyword) Arguments (args and kwargs) don’t come “for free” in Python

Link: https://pybit.es/articles/the-arbitrary-keyword-arguments-args-and-kwargs-dont-come-for-free-in-python/

Python allows you to use *args and **kwargs in function definitions to accept an arbitrary number of positional and keyword arguments, respectively.
Here is a simple example:

Different types of funct
Anarcat: OpenPGP key transition

Link: https://anarc.at/blog/2023-08-09-openpgp-key-transition/

This is a short announcement to say that I have changed my main
OpenPGP key. A signed statement is available with the
cryptographic details but, in short, the reason is that I stopped
using my old Yub
The Open Sourcerer: Please help test (and fix) GTG’s GTK 4 port

Link: https://fortintam.com/blog/call-for-testing-gtg-gtk4-branch/

As you know, even with a “simple” language like Python, porting a desktop application to a new version of GTK can be a pretty significant amount of work; doubly so when it is accompanied by major refa
Talk Python to Me: #426: What's New in PyScript [August 2023]

Link: https://talkpython.fm/episodes/show/426/whats-new-in-pyscript-august-2023

One of the most exciting initiatives in the Python space these days is pyscript which enables Python running natively in your browser. With consistent support from the folks at Anaconda, this project
William Minchin: AutoLoader Plugin 1.2.1 for Pelican Released

Link: https://blog.minchin.ca/2023/08/autoloader-121-released.html

AutoLoader is a plugin for Pelican,
a static site generator written in Python.
AutoLoader is a “meta plugin” in that it doesn’t directly affect your Pelican
site, but rather works to make your other p
Python People: Bob Belderbos - PyBytes, Code Challenges, Coaching, Spain, and Books

Link: https://pythonpeople.fm/episodes/bob-belderbos

Bob Belderbos built PyBites with Julian Sequira. PyBites started with code challenges to help people learn Python, and has grown into a learning platform and community, and now includes coaching.We ta
Nicola Iarocci: Cerberus v1.3.5 released

Link: https://nicolaiarocci.com/cerberus-v1.3.5-released/

Thanks to funkyfuture’s tireless work, yesterday we released version 1.3.5 of Cerberus, the data validation package for Python. This release officially supports Python 3.10 and 3.11, fixes a few issue
Abhijeet Pal: DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

Link: http://djangocentral.com/drf-serializer-handling-ordereddict-and-converting-it-to-a-dictionary-or-json/

In Django Rest Framework (DRF) tests, when you access serializer.data, you might encounter an OrderedDict instead of a regular dictionary. This behavior is intentional and reflects the design of DRF's
PyBites: How the Flocking Rules Can Help You Refactor Your Code

Link: https://pybit.es/articles/how-the-flocking-rules-can-help-you-refactor-your-code/

In this new podcast episode we are excited to have Chris May back to delve deeper into the intricacies of refactoring.
Watch here:


Listen here:

We talk about the significance of the Flocking Rules,
Abhijeet Pal: Django Rest Framework CheetSheet: Mastering API Development

Link: http://djangocentral.com/django-rest-framework-cheat-sheet/

Django Rest Framework (DRF) is a powerful toolkit that makes building robust and scalable web APIs with Django a breeze. Whether you're a seasoned Django developer or a newcomer, having a comprehensiv
Real Python: The Real Python Podcast – Episode #168: Common Python Stumbling Blocks & Quirky Behaviors

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

Have you ever encountered strange behavior when trying something new in Python? What are common quirks hiding within the language? This week on the show, Christopher Trudeau is here, bringing another
EuroPython Society: EuroPython 2023 Code of Conduct Transparency Report

Link: https://www.europython-society.org/europython-2023-transparency-report/

The 2023 version of the EuroPython conference took place both online and in person in July 2023. This was the first conference under our new Code of Conduct (CoC), and we had Code of Conduct working g
PyBites: When to refactor your code?

Link: https://pybit.es/articles/when-to-refactor-your-code/

How to make refactoring part of your Definition of Done
Photo by rtisanyb on Unsplash
Writing code is an iterative process. The first iteration is usually not the best result. Grooming and polishing