PythonโSpeed: Speed up pip downloads in Docker with BuildKit's new caching
Docker uses layer caching to speed up builds, but layer caching isnโt always enough. When youโre rapidly developing your Python application and therefore frequently changing the list of dependencies,...
View ArticleTalk Python to Me: #301 Deploying and running Django web apps in 2021
Have you been learning Django and now want to get your site online? Not sure the best way to host it or the trade offs between the various options? Maybe you want to make sure your Django site is...
View ArticleLucas Cimon: fpdf2.3.0 Unbreakable! and PDF quines
Today, I am happy to announce version 2.3.0 of fpdf2, code name: Unbreakable!https://github.com/pyfpdf/fpdf2/ Doc: https://pyfpdf.github.io/fpdf2/Why Unbreakable?As a tribute to M. Night Shyamalan...
View ArticleReal Python: The Real Python Podcast โ Episode #45: Processing Images in...
Are you interested in processing images in Python? Do you need to load and modify images for your Flask or Django website or CMS? Then you most likely will be working with Pillow, the friendly fork of...
View ArticleStack Abuse: How to Format Number as Currency String in Python
IntroductionHaving to manually format a number as a currency string can be a tedious process. You may have just a few lines of modifications to make, however, when we need to do a fair bit of...
View ArticlePyCharm: The Transition to Apple Silicon
In June of last year, Apple announced that the Mac would transition to Appleโs own chips, called Apple Silicon. Here at PyCharm, this would mean major changes to the way we build our software. A change...
View ArticleDaniel Roy Greenfeld: Recap of 2020 and Resolutions for 2021
Recap of 2020I got a job saving the planetFor years I've been worried about climate change. I've tried to live a mostly ecologically friendly life, and this year I dived in with making compost for the...
View ArticleBen Cook: Iterating over rows in Pandas
When you absolutely have to iterate over rows in a Pandas DataFrame, use the .itertuples() method.
View ArticleBen Cook: How to pad arrays in NumPy: Basic usage of np.pad() with examples
The np.pad() function has a complex, powerful API. But basic usage is very simple and complex usage is achievable!
View ArticleWeekly Python StackOverflow Report: (cclxi) stackoverflow python report
These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-01-30 15:03:53 GMTpip install failing on python2 - [21/3]Installing...
View ArticleJohn Cook: Python triple quote strings and regular expressions
There are several ways to quote strings in Python. Triple quotes let strings span multiple lines. Line breaks in your source file become line break characters in your string. A triple-quoted string in...
View ArticleMatt Layman: Are Django and Flask Similar?
Maybe youโre new to web development in Python, and youโve encountered the two most popular Python web frameworks, Django and Flask, and have questions about which one you should use. Are Django and...
View ArticleThe Three of Wands: On structured and unstructured data, or the case for cattrs
If you've ever gone through the Mypy docs, you might have seen the section on TypedDict. The section goes on to introduce the feature by stating:Python programs often use dictionaries with string keys...
View ArticleJuri Pakaste: Alfred Script Filter with find and jq
Lookslike this is a jq blog now, so here's another one.I work on an iOS repository that's used to create a large number of apps and a few frameworks. Each app has a directory with configuration and a...
View ArticlePython Pool: Only Size 1 Arrays Can Be Converted To Python Scalars Error Solved
Python has helped thousands of communities to create solutions for their real-life problems. With thousands of useful modules, Python has proved to be one of the top versatile languages in the coding...
View ArticleZero to Mastery: Python Monthly ๐ป๐ January 2021
14th issue of Python Monthly! Read by 20,000+ Python developers every month. This monthly Python newsletter is focused on keeping you up to date with the industry and keeping your skills sharp, without...
View ArticleZato Blog: How to invoke REST APIs from Zato microservices
This Zato article is a companion to an earlier post - previously we covered accepting REST API calls and now we look at how Zato services can invoke external REST endpoints.Outgoing connectionsJust...
View ArticlePython Pool: Matplotlib Zorder Explained with Examples
Hello geeks and welcome in this article, we will cover Matplotlib Zorder. Along with that, we look at its syntax, what difference does it make to the graph. To do so, we will look at a couple of...
View ArticleMike Driscoll: PyDev of the Week: Carl Friedrich Bolz
This week we welcome Carl Friedrich Bolz (@cfbolz) as our PyDev of the Week! Carl is a core developer of PyPy, which is an RPython variant of CPython that runs faster in general than regular Python. If...
View ArticleDjango Weblog: Django security releases issued: 3.1.6, 3.0.12, and 2.2.18
In accordance with our security release policy, the Django team is issuing Django 3.1.6, Django 3.0.12 and Django 2.2.18. These releases address the security issue with severity "low" detailed below....
View Article