Rewriting a Python script as a Bash one-liner
In this post, I will describe how I went about replacing a Python with a bash liner and how it decreased the runtime from 30 seconds to 1 second Background For …
In this post, I will describe how I went about replacing a Python with a bash liner and how it decreased the runtime from 30 seconds to 1 second Background For …
In this article, I will show you how you can update a project, that was created from a copier template. In my previous article, we learnt how we can create a …
Hi 👋 everyone, in this blog post I’m going to over how we can use Copier to create templates for our repositories. Why create a template repo ? I’m sure some of …
TIL you can hash None in Python Recently I saw some Python code which looked something like: snippet.py d = { None: "value", "another_key": "another_value", } …
In this article I will show you how you can have separate modules for your Socketio event handlers. Rather than keeping them all in the same file. Hopefully …
In this article I will show you how you can test an async Socketio application in Python, where the ASGI server we are running is uvicorn. I will be referring …
In this article, we will go over what the yield keyword is used for. We will also cover how you can use a yield with a pytest fixture to allow us to “teardown” …
On a recent project, I was working on, I wanted to test my web service using docker-compose where I can run and kill Docker containers used by the application …
In this article, I will show you how you can test a Python web service that was built using Connexion (a wrapper library around Flask). We will go over how you …
In this article, we will go over how we can use a makefile and tox to automate various Python related tools. This article assumes you are running bash (or …
RESTful APIs are very popular at the moment and Python is a great language to develop web APIs with. In this article we will go over a documentation first …
Pytest is a popular Python library used for testing. It is my preferred testing library because it requires less boilerplate code than the alternatives such as …
SQLAlchemy is an object-relational mapper (ORM), it allow us to interact with a database using Python functions and objects. For example, if we have a table …
Docker Image: Is a file used to execute code in a Docker container, built from a set of instructions. Docker Container: Is a Docker image that is being executed …
Recently I had to test some of my Python 🐍 🐍 🐍 code which required an external dependency and communicating by using TCP sockets 🔌 . You can think of this …
SQLAlchemy is an Object-relational mapping (ORM) made for the Python programming language. ORMs in theory allow programmers to abstract away SQL. In simple …