Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Stack Abuse: Formatting Strings with the Python Template Class

Link: https://stackabuse.com/formatting-strings-with-the-python-template-class/

Introduction
Python Templates are used to substitute data into strings. With Templates, we gain a heavily customizable interface for string substitution (or string interpolation).
Python already offer
PyCharm: PyCharm 2019.3.3

Link: http://feedproxy.google.com/~r/Pycharm/~3/R-Wroo-DgKk/

Our PyCharm release is now ready! We’ve added some important fixes to make sure we provide you with the best tool we can, so be sure to update to the newest version! You can get it from within PyCharm
Peter Bengtsson: How to resolve a git conflict in poetry.lock

Link: https://www.peterbe.com/plog/how-to-resolve-a-git-conflict-in-poetry.lock

We use poetry in MDN Kuma. That means there's a pyproject.toml and a poetry.lock file. To add or remove dependencies, you don't touch either file in an editor. For example, to add a package:
poetry ad
IslandT: Plotting earning graph based on the month with Python

Link: https://kibiwebgeek.com/plotting-earning-graph-based-on-the-month-with-python/

For those of you who have followed the record sales and save data into the database project, this will be the final chapter of this project. In the future, you can follow the project updates on the Gi
Talk Python to Me: #250 Capture over 400x C02 as trees with AI and Python

Link: https://talkpython.fm/episodes/show/250/capture-over-400x-c02-as-trees-with-ai-and-python

As the popularity of Python grows, we see it popping up in all sorts of interesting places and projects. On this episode, you'll meet C.K. Sample and Nathan Papapietro from HyperGiant. They are using
Weekly Python StackOverflow Report: (ccxiv) stackoverflow python report

Link: http://python-weekly.blogspot.com/2020/02/ccxiv-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2020-02-08 21:07:24 GMTFastest way for boolean matrix computations - [6
Mike Driscoll: How to Check if a File is a Valid Image with Python

Link: http://www.blog.pythonlibrary.org/2020/02/09/how-to-check-if-a-file-is-a-valid-image-with-python/

Python has many modules in its standard library. One that is often overlooked is imghdr which lets you identify what image type that is contained in a file, byte stream or path-like object.
The imghdr
PyBites: Exploring the Mutpy Library and How PyBites Uses it to Verify Test Code

Link: https://pybit.es/guest-mutpy-exploration.html

A while back we launched our Test Bites. In this follow up article Harrison explains the MutPy mutation testing tool in depth and how we use it to verify test code on our platform. Enter Harrison.
Tab
Kushal Das: Python course inside of NSA via a FOIA request

Link: https://kushaldas.in/posts/python-course-inside-of-nsa-via-a-foia-request.html


Woke on on Sunday morning, and found Chris Swenson's
tweet, he did a
FOIA request about the Python course inside of NSA, and then scanned the
almost 400 pages of course
material. It is 118MB :)
I jus
Ned Batchelder: sys.getsizeof is not what you want

Link: https://nedbatchelder.com//blog/202002/sysgetsizeof_is_not_what_you_want.html

This week at work, an engineer mentioned that they were looking at the sizes
of data returned by an API, and it was always coming out the same, which seemed
strange. It turned out the data was a dict
Techiediaries - Django: Django 3 Tutorial & CRUD Example with MySQL and Bootstrap

Link: https://www.techiediaries.com/django/django-3-tutorial-and-crud-example-with-mysql-and-bootstrap/

Django 3 is released with full async support! In this tutorial, we'll see by example how to create a CRUD application from scratch and step by step. We'll see how to configure a MySQL database, enable
Mike Driscoll: PyDev of the Week: Paul Sokolovsky

Link: http://www.blog.pythonlibrary.org/2020/02/10/pydev-of-the-week-paul-sokolovsky/

This week we welcome Paul Sokolovsky as our PyDev of the Week! Paul is the creator of Pycopy, which is described as “a minimalist and memory-efficient Python implementation for constrained systems, mi
PyBites: Productivity Mondays - How to Instantly Save 2-3 Hours a Day

Link: https://pybit.es/80-20.html


Efficiency is doing things right; effectiveness is doing the right things. - Peter Drucker

Imagine what an extra 2-3 hours a day can give you. Reading consistently for an hour a day in your field ca
IslandT: Create a project which shows the nutrition and diet data for generic foods, packaged foods, and restaurant meals using python

Link: https://kibiwebgeek.com/create-a-project-which-shows-the-nutrition-and-diet-data-for-generic-foods-packaged-foods-and-restaurant-meals-using-python/

Hello, nice to be back again, are you people ready for the next python project? In this latest project which will take maybe around half a month to complete, I will develop a python application that w
Stack Abuse: Bubble Sort in Python

Link: https://stackabuse.com/bubble-sort-in-python/

Introduction
For most people, Bubble Sort is likely the first sorting algorithm they heard of in their Computer Science course.
It's highly intuitive and easy to "translate" into code, which is import
Real Python: Implementing an Interface in Python

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

Interfaces play an important role in software engineering. As an application grows, updates and changes to the code base become more difficult to manage. More often than not, you wind up having classe
Learn PyQt: Display tables in PyQt5/PySide2, QTableView with conditional formatting, numpy and pandas

Link: https://www.learnpyqt.com/courses/model-views/pyqt5-qtableview-modelviews-numpy-pandas/


In the previous chapter we covered an introduction to the Model View architecture. However, we only touched on one of the model views — QListView. There are two other Model Views available in Qt5 — Q
Learn PyQt: Display tables in PyQt5/PySide2, QTableView with conditional formatting, numpy and pandas

Link: https://www.learnpyqt.com/courses/model-views/qtableview-modelviews-numpy-pandas/


In the previous chapter we covered an introduction to the Model View architecture. However, we only touched on one of the model views — QListView. There are two other Model Views available in Qt5 — Q