Python articles, tutorials, and news

Concurrency and Parallelism in Python
Jun 16, 2021 • 10 minutes • 3477 views

Most of us have come across terms like multithreading, parallel processing, multiprocessing, concurrency, etc., though each of these terms has its own meaning. In a broader sense, we need these because we want to avoid some kind of latency (or have an illusion of doing so) in the execution of regular programs. T

Create a menubar app for macOS using Python
Nov 15, 2020 • 7 minutes • 6092 views

While Python is great for building a lot of things, macOS apps are certainly not one of them. I was wondering if it’s possible to build a menu bar app for macOS using Python. I found out that it’s not only possible — it’s “ridiculously uncomplicated”. In this tutorial, we’ll be building a realtime macOS app for sto

Desktop Notifications With 10 Lines of Python Code
Jun 02, 2020 • 3 minutes • 8323 views

We often use the print function to see the progress of a script, or simply for debugging purposes. Rather than constantly looking at the terminal, and waiting for an output to pop up, we can use push notifications as a way to track progress while working on something else. Our approach to make this happen will be v

Web Scraping Without Getting Blocked
Feb 04, 2020 • 8 minutes • 13701 views

We often need to prove "I'm not a robot". That's because there are robots on the internet - and there are a lot of them. These bots, or as we fondly call them, spiders get blocked all the time, there’s no news in it. Companies try their best to keep web crawlers out of their websites (unless it’s <a ="https:

Python One-Liners You Should Know
Jan 08, 2020 • 5 minutes • 2753 views

Python is known for its simplicity. At the same time, it’s fascinating to see how powerful one line of Python code can be sometimes. This article features 5 such one-liners that can do awesome things, or at least save you a few minutes. Python has a built-in module for formatting JSON fil

Introduction to Scrapy: Web Scraping in Python
Dec 04, 2019 • 20 minutes • 28109 views

Scrapy is an open-source web scraping framework, and it does a lot more than just a library. It manages requests, parses HTML webpages, collects data, and saves it to the desired format. Hence, you don’t need separate libraries for every other step. You can also use middlewares in scrapy. Middlewares are sort of 'plugin