Python Socket: Technical Guide for Beginners and Experts

If you are interested in the network programming side of Python, you have come to the right place. The socket module is a basic tool for enabling communication between devices. Understanding this will help you in developing chat applications, building custom protocol, and so many more applications. Instead of just the applications, we recommend learning […]

Read More

argh: How to Create Clean and Maintainable CLIs

Building command-line tools is fun and engaging. From automation scripts to system utilities, many Python applications need to interact with users via the terminal. One often overlooked but powerful library that simplifies this process is argh. Though this sounds like a sound of disappointment, argh is quite the opposite. This article is your comprehensive guide […]

Read More

pytesseract in Python: How to Build OCR Function

pytesseract is a Python wrapper for Google’s Tesseract-OCR Engine. This wrapper lets you extract text from images with just a few lines of code. This tool will be very helpful to you if you are working with document digitization, data extraction, and image-to-text conversion if you know the basics of Python, which you will, if […]

Read More

Python Define Function: Step-by-Step Instructions

When you get more familiar with programming, you will feel the need for “code reuse”. Functions make code reuse easy. To understand functions, let us take an example. If your friend needs the instructions to come to your house, either you can give them a step-by-step instruction list, or make it easier by referencing landmarks. […]

Read More

Python ++: Understanding this Increment Operator

If you have ever used languages like C, C++, or Java, you might have seen the classic increment operators: “++” and “–“. They are the common operators for quickly increasing or decreasing values by one. However, if you do the same in Python, like using “i++” in a Python program, you will see an error. […]

Read More

PySide6: How to Build GUI with Python

Graphical User Interfaces (GUIs) are the primary reasons why more and more people are slowly moving “into” tech instead of just using them. GUIs give ways for us to interact with applications. If you are interested in Python GUI development, PySide6 is a powerful toolkit you should learn. Today at PythonCentral, we will explain what […]

Read More

Decouple Configurations: How to do in Python

It is perfectly fine if you look at your Python applications and they look “simple”. With experience and an appetite for complexity, your Python applications will continue to grow in size and dependencies. In those times, managing configuration settings directly inside your code is difficult. And as we say in PythonCentral, there is a library […]

Read More

Pydub: How to Process Audio in Python

Just like we say “there is an app for everything” when we talk about mobile phones, there is a library for everything in Python. If you want to process audio files like trimming MP3 files, converting WAV files to other formats, or adding effects to existing audio files, there are a few Python libraries that […]

Read More

Big O Calculator: Calculate and Improve Efficiency

Anybody can write code. That is the beauty of code. But with time, we should start writing code that is efficient and beautiful. Since technology has come a long way, there are dedicated tools and calculators that tell us if our algorithms are efficient. One such calculation method is the Big O notation. Understanding algorithmic […]

Read More

Python ord(): How to Convert Character to Unicode

Python is full of useful and powerful functions. One such Python function is “ord()”. You can use the ord function to convert a single character to its Unicode code point i.e., integer representation. This function becomes very helpful when you are working with text processing, encoding, and ASCII or Unicode values. Today at PythonCentral, let […]

Read More