Python

Python Programming Tutorials

Pydantic & Dataclasses – How to Allow Extra Kwargs

Dataclasses act as code generators when working with Objects and Classes in python. It allows us to easily benefit from the dunder methods that are required when creating a class such as __init__, `__eq__`, etc . When working with external data sources, however, there may arise situations where additional parameters beyond those explicitly declared in …

Pydantic & Dataclasses – How to Allow Extra Kwargs Read More »

How to use PyGWalker with Flask in Python

Pygwalker is a python framework with a look and feel like Tableau, that allows data scientists to analyze data and visualize patterns with simple drag-and-drop operations. In this tutorial we will see how to use PyGWalker in Flask. We will build a web application whereby a user can upload a csv file and analyze it …

How to use PyGWalker with Flask in Python Read More »

How to Use Github Actions and Pytest For Your Python Project

Continuous Integration and Continuous Delivery and Deployment are essential principles in softwaredevelopment cycle. It has become the standard for every source version control hosting platform such as GitLab, Github, Azure Devops,etc to offer CI/CD pipelines in their platform. In this tutorial we will explore how to use Github Actions – a form of CI/CD workflow …

How to Use Github Actions and Pytest For Your Python Project Read More »

The Threats and Downsides of LLMs and ChatGPT

ChatGPT and LLMs(Large Language Models) are very useful information and search technologies.Unlike search engines,they do not just give information when queried they rather generate the written content.They offer several benefits such as below. It offers a conversational and interactive experience for retrieving information. It can be used for language translation and grammer correction It can …

The Threats and Downsides of LLMs and ChatGPT Read More »

Supervisor – A Process Management Tool in Python

Supervisor is a process control and management system which is very useful when running programson servers continuously. Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. By the end of this tutorial you will learn How to install and setup supervisor How to …

Supervisor – A Process Management Tool in Python Read More »

Create an Upload and Download Files API Endpoint with FastAPI

FastAPI is an awesome and simple framework for building APIs (application programming interfaces). Among the various features of FastAPI out of the boxwe will be exploring how to include an endpoint whereby we can upload a json file and return another file that we can download. In this tutorial we will create an endpoint for …

Create an Upload and Download Files API Endpoint with FastAPI Read More »

How to Stop Django or Flask Server without Ctrl + C

Ctrl + C is an awesome and common way to stop most process especially when being run from the terminal. In this tutorial we will explore how to stop a Django application or Flask application without using Ctrl + C. This idea is useful when you are working within a script or a CI/CD pipeline …

How to Stop Django or Flask Server without Ctrl + C Read More »