Legally Free Python Books List (2026)
Here is my personal list of legally free Python books. Warning: Packt free books are highly unreliable, what can be free today can no longer be free tomorrow They were included as they are ...
Learn how to eat through Python topics.
Here is my personal list of legally free Python books. Warning: Packt free books are highly unreliable, what can be free today can no longer be free tomorrow They were included as they are ...
Publishing a Python package used to feel like a small battle: setup.py rituals, half-forgotten twine commands, and the anxiety of accidentally pushing a broken release to PyPI. Thankfully, modern t ...
Gradient-based optimization lies at the heart of modern machine learning. From linear regression to deep neural networks, the efficiency of training depends heavily on how quickly and stably an opt ...
Table of Content Introduction Scanning the text Looking for specific characters Identifying elements Processing elements Introducti ...
Normally you can tune models to return json. But, fortunately, Gemini First install the lib pip install google-genai Here is a snippet i used to receive JSON ...
Follow any installing azure cli on Linux mint tutorial, but, on the step below add noble main instead of something as generic as jammy main. See com ...
Google Calendar Desklet is a Python-packaged desklet app for Linux. gca ...
Here’s a simple snippet for creating a new custom object in Salesforce in Python. from simple_salesforce import Salesforce sf = Salesforce( username='', ...
To copy files to ec2, use the included by default scp tool in linux Command First follow this tutorial to isolate issues: ssh into the Ec2 ...
Table of Contents Introduction Ensure SSH Port 22 is Allowed Install SSH Create Key Pairs Download Key Pair Generate Public Key from ...
If you use Docker and get it running while using Docker Desktop, you might run into this error: docker.errors.DockerException: Error while fetching server API version: ('Connection a ...
If you want to disable OpenAi or similar crawlers from harvesting your data, create a file called robots.txt at the root of your domain. If your domain is health.com, make sure ...
Table of content What is HunYuan Video model? How does it differ from competitors? Architectural novelties How to install How to run? Doc ...
The Prefect documentation about deplyments are super vague. This post explains how to add deployments. Table of content Where are deploym ...
The Django syntax error on migrating is very annoying, specially when you don’t find any error when looking for one. This post contains a working solution. Table of contents I ...
Rye is impressive both as a package manager and as an onboarding tool for Python projects. I have done quite some workshops/sessions and one main pain point is getting Python up and running. Rye in ...
Really, oreiller is the french word for a pillow. I always heard about the PIL fork, Pillow but never used it. When I finally used it, I found it to be tedious sometimes. Like including emoj ...
There are many different approaches to chatting with your own data. One way is to upload your PDF to the OpenAi chatGPT cloud. This comes with several limitations such as data being deleted or um ...
LangChain is a superb library to productionize LLMs. It has few concepts which make it great. If you want to quickly get started with LangChain as maybe like me you have production in front of you, ...
pipx allows you to use python projects on the commandline without using a virtual environment each time. Here’s how to install it on Ubuntu and Linux Mint ...
Deep learning is one of the most useful and trending topics in the current world scenario, which works on the concepts of neural networks, computer vision, perceptrons, and many other techniques. P ...
Ml wizard
If you are trying to build a spam filter, a sentiment analyzer, or any machine learning model that processes text, you face an immediate problem: Machine Learning algorithms cannot understa ...
Ml wizard
Bag of Words and TF-IDF are great, but they suffer from a fatal flaw: they have no concept of meaning. To those algorithms, “car” and “automobile” are just as different as “car” an ...
Ml wizard
In our Bag of Words guide, we saw how to turn text into numbers by counting word frequencies. But there is a ...
Ml wizard
We can take linear algebra as a backbone of machine learning, as almost all the machine learning techniques and algorithms somehow use linear algebra to some extent. Some famous machine learning te ...
Ml wizard
Linear algebra in machine learning is one of the essential topics to learn and have an idea about, as it is applicable and plays a critical role in many machine learning applications. Recommendatio ...
Ml wizard
In machine learning to achieve higher accuracies and performance of the model, the data quality plays a major role while enhancing the model. If good quality data with meaningful f ...
Ml wizard
Heatmaps can bring your data to life. Versatile and eye-catching. There are many situations where they can highlight important relationships in your data. Specifically, we will discuss how you can ...
Data scientist
Matrix decomposition in linear algebra is one of the most valuable techniques for reducing the matrix into smaller parts. In matrix decomposition, the eigendecomposition is a fundamental concept th ...
Ml wizard
Data and its quality affect machine learning models and their accuracy, and the quality of the data can not be well in some types of problems which can be solved by machine learning. Here the scale ...
Ml wizard
In machine learning, the algorithm plays a significant role while training and building a successful model. According to the data and its behavior, a proper machine learning algorithm should be sel ...
Ml wizard
In machine learning, using an appropriate algorithm according to the behavior of the data and its pattern is an essential thing to achieve higher accuracies and accurate performing models. Many mac ...
Ml wizard
Machine Learning algorithms are one of the most important things to decide during model training and building. All the datasets and problem statements related to that in machine learning are not th ...
Ml wizard
Cost functions in machine learning measure the performance of the machine learning algorithm trained on a particular dataset. By measuring the cost function or cost for a specific model, we can eas ...
Ml wizard
Activation functions in deep learning are the functions that decide the output from node or hidden layers from a given set of inputs in neural networks. There are many activation functions used in ...
Ml wizard
Machine learning is the concept that a computer program can learn and adapt to new data without human intervention. It is a sub-field of artificial intelligence that keeps a computer’s built-in alg ...
Ml wizard
The Ensemble technique is one of the best-performing techniques used in the field of machine learning for getting better results on complex types of datasets. There are many ensemble techniques ava ...
Ml wizard
Which database is best? The question, obviously, depends on what you want to use it for. ...
Data scientist
Statistics is a critical component of data science and machine learning algorithms. Almost all the machine learning algorithms use mathematics in the backend, which is linear algebra and statistics ...
Ml wizard
The Lasso regression is a regularization technique and a type of regression that is well-suited for m ...
Ml wizard
We will understand what is automatic differentiation for absolute beginners, although this concept requires a fair amount of theoretical understanding of derivatives and the chain rule, But don’t w ...
Data scientist
In deep learning, optimizers are the type of function which are used to adjust the parameters of the model. The optimizers are used in deep learning to adjust the weights and biases of the neural n ...
Ml wizard
Topology is a classical branch of mathematics, born essentially from Euler’s studies in the XVII century. It deals with the abstract notion of shape and geometry. The last decades ...
Data scientist
Miscellaneous routines in scipy included convenient functions. This article cover the removal of this feature. Table of content Why was _Miscellaneous routines_ r ...
Data scientist
NeuroJson, founded by Qianqian Fang, is an open-source project which aims to create easy-to-adopt, easy-to-ext ...
Data scientist
This article is a gentle introduction to symmetric indefinite matrices in Python Table of content What are symmetric indefinite matrices andwhere are they used? Imple ...
Data scientist
Biosim4 is a project in which there’s a 2-dimensional world where creatures with neural brains live in it. They have genomes (complete genetic information) that they pass on from o ...
Data scientist
There exist many terminal plotting libraries. In Python there are some 3-4 main ones. In this post we’ll have an overview of the libraries. a ...
Django packages in Flask seems like a far-away dream, but shopyo 4.6.0 allows you to install Shopyo apps from pypi. What is Shopyo? Sh ...
P5Js is an implementation of processing.org’s library in JavaSript. It can be thought of as a canvas management library. Integrating such a library with a common backend like Flask unlocks amazing ...
Shopyo is a framework to get started with Flask really quick. It includes several libraries to get started by default. In this tutorial we will build ...
Talk notes thepkg/ # is a package since has __init__.py __init__.py a.py b.py data/ ...
This article shows how to integrate Tinymce 5 with Flask even including csrf protection! Text area <textarea id="content"></textarea> ...
This page lists the very best Python engineering articles of the internet, hand-picked to give hours and hours of pure reading joy. It is especially designed for onboarding new members on your Pyt ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. To follow this tutorial, download/clone ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ''' Abdur-Ramaan Janhangeer Updated ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. Callback demo ''' Abdur-Ramaa ...
Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. Simple window Be sure to read first: ...
People talk about FastAPI a lot, but they give little attention to Sebastián Ramírez, alias tiangolo. It’s so obvious to me that FastAPI is a reflection of someone cool. It’s hard to miss the fact ...
I wanted to do import module module() I thought this did not exist in Python but Chris Angelico, a P ...
Python-efl is the binding for EFL, an awesome and performance-obcessed set of libraries. EFL stands for Enlightment Foundation Libraries. It was started for the ...
I was looking through Grinberg’s tuto on celery and flask. I saw querying tasks by ...
Using celery 5.1.2 you can get the task id by the following code snippet: from celery import current_app as celery_app # in your function: celery_app.tasks[' ...
Here’s a convenient way to set task id in celery: import uuid # in-built in Python task_id = str(uuid.uuid1()) task_dosomething.apply_async(task_id=task_id) ...
After much struggling, here’s the magical formula we got for getting the server response back for chunck uploads: var myDropzone = new Dropzone(document.body, ...
FastAPI positions itself as one of the best choices for API development in Python. The project is polished for sure, the ...
Association Analysis is an unsupervised learning technique used to discover interesting relationships hidden in large datasets. It’s most famous for its use in “Market Basket Analy ...
So far, we’ve focused on Supervised Learning. Now, we enter the world of Unsupervised Learning, where the machine is given data without any labels and must find patterns on its own ...
Naive Bayes is a simple yet powerful classification algorithm based on Bayes’ Theorem. It’s particularly popular for text classification and spam filtering. Bayes’ Theorem ...
Neural Networks are the backbone of modern Artificial Intelligence, powering everything from face recognition to self-driving cars. In this post, we’ll explore the basic building block of a neural ...
Support Vector Machines (SVM) are powerful supervised learning models used for classification and regression. In this post, we’ll break down the geometry and logic behind them. The Goal: Fi ...
This problem was asked by Stripe. Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that ...
This problem was asked by Jane Street. cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair. For example, car(cons(3, 4)) returns 3, and ...
This problem was asked by Google. Given the root to a binary tree, implement serialize(root), which serializes the tree into a string, and deserialize(s), which deserializes the string back ...
This problem was asked by Uber and is a popular variation of array manipulation questions. The Problem Given an array of integers, return a new array such that each element at index ...
This problem was recently asked by Google and is a classic interview question often referred to as “Two Sum”. The Problem Given a list of numbers and a number k, return ...
Here’s how to solve the file not found for training chatterbot on Google collab: # Install !pip install chatterbot !pip install chatterbot-corpus # move engl ...
Chris has been learning Flask to help with Dog Care. He felt Flask would help him in his business activities! Let’s have a chat with him! Welcome Chris Hopkinson, Can you present you ...
Since you already know how to implement notifications, let’s see how to implement beautiful notifications in Flask. ...
Implementing notifications in Flask goes way beyond using flash. You have to add this snippet in your templates: <div id="flashed-messages"> {% with m ...
If your Flask application uses a next parameter to redirect users after login, you might be vulnerable to Open Redirects. This is a subtle but dangerous vulnera ...
When building Flask applications, it is very common to reuse the same variables across multiple templates. These may include application-level configuration, branding details, environment flags, or ...
Flask-wtf recommends using @csrf.exempt to disable csrf protection for particular routes as in the case of APIs. Now this is pretty confusing. What does csrf refers to? I ...
Steps: Have a login route accept a next parameter Define your model view and admin index view Register models In the example below, auth.login is the lo ...
Here is a sample login and logout route taken from the shopyo web framework. You can learn ...
Note: I wrote a quite complete article on the Zen but for some reason it went down in seo history. I am tired seeing people write ‘in-depth’ article with commentaries from the top of their head ...
Table of contents Why were Python generators introduced? How do Python Generators differ from normal functions? Execution flow Immediate usefulness ...
Here’s a realtime CPU monitor using PyGame: ''' Author: https://github.com/Abdur-rahmaanJ Instructions: pip install psutil hooman==0.3.6 ''' from hooman ...
""" Author: Abdur-Rahmaan Janhangeer Github: https://github.com/Abdur-rahmaanJ Instructions: pip install hooman """ from hooman import Hooman import pygame from ...
Linux owners configure makefiles so as to have easy commands to perform operations such as make dependencies to pip install required packages. Here are the dry simple steps to run make ...
There are in the Python world many Flask Linux-only apps. However in many case, with some twerking we can make them work on Windows. We’ll take the case of the AFPy site. First fork the ...
Shopyo is an Open Source Flask-based, Python-pow ...
import sys from PySide2 import QtCore from PySide2 import QtWidgets from PySide2 import QtGui class MainWindow(QtWidgets.QMainWindow): def __init__(self, par ...
Here is a list of Python free courses that i maintain An Introduction to Interactive Programming in Python (Part 1) ...
To upload your project to Pypi, this assumes you have your setup.py ready cd into your package directory and type python setup.py sdist ...
The Python programmer’s journey inevitably leads him to one of the black belts of the industry: packaging and distribution. But, particularly in Python, distribution can also be a black beast. We’v ...
Python is set to release a new version next year, the shiny 3.9. This one omitted the sys.argv change rolled back in alpha2 Here’s our take of the most noticeable changes: Keyword Arguments ...
Question: I have a QTableView in PyQT5 / PySide2 I want to * Know if a row is selected (my tableview is set to select by rows) * Know which row is selected Thanks Answer: ...
Python’s help function lets you see the help message written for you by the developer. It is particularly useful in IDLE / shell to inspect modules and explore. Here is a sample shell demo ...
String manipulation functions, good ones are available by default in Python. Ignorance make people always re-invent. Python is powerful and … thoughtful. We were strict and choose only 5, the five ...
If you are in web development, maybe you’ve heard of Sass, Less, Pug, ...
While Decision Trees are easy to understand, they have a major weakness: they tend to overfit the data. In this post, we’ll see how Random Forests solve this probl ...
In the previous post, we saw how Decision Trees split data based on “purity.” But how do we measure this purity mathematically? This is where Entropy and Information Gain ...
Some machine learning methods are versatile enough to be used for both Classification and Regression. These are often called “Mixed Methods.” In this post, ...
In this part, we explore the engine under the hood of most machine learning algorithms: Optimization. Specifically, we will look at the Cost Function and G ...
geo plotting has never been so easy. thanks dhrumil patel! download the data file here ...
In the previous parts, we introduced machine learning and supervised learning. Today, we focus on one of the two main pillars of supervised learning: Regression. What is Re ...
Supervised learning is a fundamental concept in machine learning where we have labelled data available. The machine “learns” from this data, much like a student learning from a tea ...
Machine Learning ♡ supervised learning ♡ unsupervised learning ♡ reinforcement learning #2 supervised learning in supervised learnin ...
When building desktop applications with PyQt5 or PySide2, the QTableView is the go-to widget for displaying spreadsheet-like data. A common requirement is to retrieve the data from a r ...
Machine Learning (ML) is one of the most exciting fields in technology today. But what exactly is it? In this introductory series, we will break down the core concepts of ML, starting from the very ...
Supervised learning is a fundamental concept in machine learning where we have labelled data available. The machine “learns” from this data, much like a student learning from a tea ...
Checking if a number is prime is a fundamental programming task. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. In this tutorial, we ...
Have you ever finished a book by a brilliant author and wished there was just one more chapter? While we can’t bring back the great thinkers of the past, we can use Markov Chains t ...
In this post, we’ll explore a classic beginner programming problem: Armstrong Numbers. What is an Armstrong Number? An Armstrong number (also known as a Narcissisti ...
Sometimes, a standard CLI tool isn’t enough, but a full-blown programming language is overkill. This is where a Domain Specific Language (DSL) shines. A DSL is a mini-language desi ...
If you’re starting multiple Python projects, you will quickly run into a problem: one project needs Version 1.0 of a library, while another needs Version 2.0. If you install everything globally, yo ...
Regular Expressions, or Regex, are often seen as a “dark art” by beginning programmers. At first glance, they look like a jumble of bizarre symbols and incomprehensible strings. Ho ...
When cleaning data in Pandas, we often need to remove columns. While dropping by name (df.drop(columns=['Name'])) is common, there are many scenarios where it’s more efficient to drop ...
Excel is the world’s most popular data tool, but for advanced analysis and machine learning, we often need to move our data into Python. The Pandas library makes this incredibly ea ...
In data science and machine learning, measuring the similarity between two points is a foundational task. One of the most common ways to do this is by calculating the Euclidean Distance ...
Have you ever wondered how web-based email clients like Gmail or Outlook actually work? At their core, they are web applications that take user input and send it to an email server. In this tutoria ...
OpenCV (Open Source Computer Vision Library) is the industry standard for image processing and computer vision. However, installing it on a Raspberry Pi 3 can be notoriously difficult. While modern ...
One of the greatest features of the Raspberry Pi is that you don’t actually need a dedicated monitor or keyboard to use it. Through SSH (Secure Shell), you can control your Pi’s te ...
If you’ve ever tried to build a code editor or a text processor in Tkinter, you’ve likely used the Text widget tags. Tags are incredibly powerful—they allow you to change the color ...
Coder
The Raspberry Pi is a remarkably powerful credit-card-sized computer, but when you first take it out of the box, it’s a “blank slate.” It has no operating system and no built-in storage. In this fi ...
When building a tile-based game, you constantly need to translate between two different worlds: 1. Screen Space: The actual pixel coordinates on your monitor (e.g., the mouse is a ...
In game development, Procedural Generation is the technique of using algorithms to create game content automatically rather than manually. While complex games like Minecraft ...
Whether you’re building a classic RPG or a puzzle game, tile-based rendering is one of the most efficient ways to create large, structured game worlds. Instead of drawing every pix ...
Have you ever wondered how vector drawing tools allow you to click and create complex shapes? In this tutorial, we will build a simple Polygon Drawer using Processing.py. This proj ...
When using Python’s string formatting methods, curly braces {} are special characters used as placeholders for variables. But what happens when you actually want to print a literal cur ...
Machine Learning can often feel like a “black box” of complex math and scary terminology like “Tensors” and “Neural Networks.” But at its core, Machine Learning is just applied statistics. ...
One of the most frequent questions when working with Matplotlib is: “How do I label each point in my scatter plot?” While plotting coordinates is straightforward, adding de ...
In many programming languages, like C or Java, scope is defined by curly braces {}. However, languages like Python, Pug, and Haskell ...
we have drafted our data usage policy and taken appropriate measures to ensure transparency. it can be found here ...
Understanding how to build a lexer (lexical analyzer) is a rite of passage for many programmers. It opens up a world of possibilities, from creating your own Domain Specific Langua ...
What does it take to create a programming language from scratch? While many think of complex C++ compilers, you can actually build a functional (though simple) language using Python. This is the st ...
Coder
Tkinter is the most common way for beginners to start building GUIs in Python. It’s powerful, but it can be frustrating when you write your code, run it, and… nothing happens. Or perhaps the window ...
In creative coding, adding a “trail” effect can transform a simple animation into something dynamic and visually appealing. A trail is essentially a visual history of where an object has been. In t ...
Tkinter is the standard GUI (Graphical User Interface) package that comes bundled with most Python installations. However, if you are working on a codebase that needs to support both Python 2 and P ...