Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Python 3.12 Preview: Ever Better Error Messages

Link: https://realpython.com/python312-error-messages/

Python 3.12 will be released in October 2023. Even though October is still months away, you can already preview some of the upcoming features, including how Python 3.12 will offer even more readable a
Python for Beginners: Convert INI to XML Format in Python

Link: https://www.pythonforbeginners.com/basics/convert-ini-to-xml-format-in-python

INI and XML files are used to store configuration and system data in software. This article discusses how to convert an INI file to XML format in Python using different approaches.
Table of ContentsWh
Luke Plant: The different uses of Python type hints

Link: https://lukeplant.me.uk/blog/posts/the-different-uses-of-python-type-hints/

When you use type hints in Python, you could be using them for one or more of at least 5 different things:
Interactive programming help
Many editors will be able to use type hints to give you help wit
PyBites: Dane Hillard on Python packaging and effective developer tooling

Link: https://pybit.es/articles/dane-hillard-on-python-packaging-and-effective-developer-tooling/


Watch here:


Or listen here:

In this week’s episode we talk with Dane about packaging and the rich ecosystem of Python tooling.
Dane is the author of Publishing Python Packages, a new Manning book
The Three of Wands: Algebraic Data Types in (typed) Python

Link: https://threeofwands.com/algebraic-data-types-in-python/

By properly utilizing Algebraic Data Types (ADTs, not to be confused with abstract data types), you can transform certain types of invalid states from runtime errors into type-checking errors, making
Python⇒Speed: Polars for initial data analysis, Polars for production

Link: https://pythonspeed.com/articles/polars-exploratory-data-analysis-vs-production/

Initial data analysis (IDA) has different goals than your final, production data analysis:

With IDA you need to examine the initial data and intermediate results, check your assumptions, and try diff
Stack Abuse: How to POST JSON Data Using requests Library in Python

Link: https://stackabuse.com/how-to-post-json-data-using-requests-library-in-python/

Introduction
As developers, we often work with APIs or web services, and one common task is sending data in JSON (JavaScript Object Notation) format to a server. Fortunately, Python provides us with a
Talk Python to Me: #410: The Intersection of Tabular Data and Generative AI

Link: https://talkpython.fm/episodes/show/410/the-intersection-of-tabular-data-and-generative-ai

AI has taken the world by storm. It's gone from near zero to amazing in just a few years. We have ChatGPT, we have Stable Diffusion. But what about Jupyter Notebooks and pandas? In this episode, we me
Python Bytes: #330 Your data, validated 5x-50x faster, coming soon

Link: https://pythonbytes.fm/episodes/show/330/your-data-validated-5x-50x-faster-coming-soon

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

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

<p>Sponsored by <a href="https://pythonbytes.fm/
Real Python: The Real Python Podcast – Episode #152: Automate Processes and Distribute Python Tools With RPA and RCC

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

Are you exploring automation of your repetitive business tasks with Python? How are you going to share your helpful tools with co-workers? This week on the show, Sampo Ahokas from Robocorp is here to
Read the Docs: Read the Docs newsletter - April 2023

Link: https://blog.readthedocs.com/newsletter-april-2023/

News and updates

📚️ Over the past ~6 months,
we gradually refactored our user documentation to align with the Diátaxis Framework.
The results are now manifested in the structure of the navigation sid
Kushal Das: 40 years of the first email to Sweden

Link: https://kushaldas.in/posts/40-years-of-the-first-email-to-sweden.html


40 years ago today, at 14:02 on 1983/04/07 (7th April), Björn Eriksen received
the first ever email in Sweden. It was from Jim McKie of European Unix Network
(EUnet) in Amsterdam. Björn had a VAX 780
Python for Beginners: Pandas Insert Row into a DataFrame

Link: https://www.pythonforbeginners.com/basics/pandas-insert-row-into-a-dataframe

We use pandas dataframes to manipulate tabular data in Python. In this article, we will discuss different ways to insert a row into a pandas dataframe.
Table of ContentsInsert Row in A Pandas DataFram
Stack Abuse: How to Generate Random Strings in Python

Link: https://stackabuse.com/how-to-generate-random-strings-in-python/

Introduction
Random strings can be incredibly useful in various scenarios. You can use them to generate strong passwords, create unique identifiers, and even as valuable help in testing and validation
Michał Bultrowicz: Developer workflow with local tests using Docker Compose

Link: https://bultrowicz.com/dev_workflow_with_local_tests_using_docker_compose/


Recently, I did a presentation about my development workflow for back-end applications.
Python for Beginners: Convert XML to INI Format in Python

Link: https://www.pythonforbeginners.com/basics/convert-xml-to-ini-format-in-python

We use XML and INI file formats for storing configuration data for software systems. This article discusses how to convert an XML file or string to an INI file in Python.
Table of ContentsWhat is XML
ListenData: Open Source ChatGPT Models: A Step-by-Step Guide

Link: https://www.listendata.com/2023/03/open-source-chatgpt-models-step-by-step.html

In this article we will explain how Open Source ChatGPT Models work and how you can run them. We will cover six different open source models, namely Alpaca, GPT4All, Cerebras-GPT, GPT-J 6B, Vicuna and
ListenData: Open Source GPT-4 Models Made Easy

Link: https://www.listendata.com/2023/04/open-source-gpt-4-models-made-easy.html

In this post we will explain how Open Source GPT-4 Models work and how you can use them as an alternative to a commercial OpenAI GPT-4 solution. Everyday new open source large language models (LLMs) a
Mike Driscoll: PyDev of the Week: Marius van Niekerk

Link: https://www.blog.pythonlibrary.org/2023/04/10/pydev-of-the-week-marius-van-niekerk/

This week we welcome Marius van Niekerk (@__mvn__) as our PyDev of the Week! Marius works on conda-forge, among other projects. You can see what else Marius is working on over on GitHub.
Let’s spend s
Python for Beginners: Convert INI Files to JSON Format in Python

Link: https://www.pythonforbeginners.com/basics/convert-ini-files-to-json-format-in-python

We use the INI file format to store configuration files. On the other hand, JSON files are normally used for data transfer between two software systems. This article discusses how to convert an INI fi