Press ESC to close

Vyom Srivastava

Create Discord Bot Python

In this blog, I’m going to show you how to build your chatbot in Discord. The reason why you would want to build one for yourself is that it can process all the information it receives and in turn, you can return a response to only certain users or all of them with the same response. We are going to use the discord.py Python library, a free-to-use library designed for retrieving data from the popular text and voice chat service known as Discord. Without further ado, let’s get into building it: Steps to create Discord bot Python 1. Create Discord…

Peewee ORM Tutorial in Python for Beginners

One problem people face when they attempt to use databases is that they have a hard time writing SQL queries. This makes it hard to connect to a database and perform actions on it. Peewee helps you solve this problem by being an ORM (Object Relational Mapper). Instead of writing SQL queries, Peewee uses python-like syntax to give you a better feel for writing code. This can help you write code faster and more efficiently. ORMs are an important tool for structuring data in an application and keeping an organized database. In Python, it is essential to use an ORM…

How to Configure Playbook in Ansible

In the world of DevOps, Ansible is one of the leading open-source IT automation solutions. IT automation doesn’t need to require an advanced degree. With Ansible, the largest independent provider of IT automation solutions, DevOps and IT teams are three times as productive and spend three times less time on their IT automation projects. Whether it’s cloud, hybrid, physical, or virtual, Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. Ansible is a simple IT automation platform used by more than 100,000 organizations worldwide. It enables IT teams, to execute commands…

Fuzzy Text Search using Python

Fuzzy string matching is like using regex and using the equals operator but in a fuzzy way so it doesn’t have to be the same string. In simple words, Fuzzy string matching is a technique of locating partial matches to a search query in data based on phonetic similarity. In this post, we’re going to look at Fuzzy Text Search using Python that uses the Levenshtein Distance method. Levenshtein Distance, also known as Edit Distance, it’s a technique used to measure how similar two strings are. So how does it work?  First, we calculate the Levenshtein distance between the two…

How to Write a Cross-Platform Application in Python with Beeware

Python has been a tremendously popular language for data analysis and data science. There is a good reason for this popularity. Python is simple and powerful. It’s easy to learn and it’s easy to use. But computing has changed over the last 10 years. We’ve seen the emergence of a whole new class of computing devices like mobile phones and tablets and watches where you can’t use Python out of the box. So how do you take a powerful language like Python and use that to build applications that work on these new computing devices and improve the experience for…

Big Data using Python

As the name suggests, Big Data is a concept that deals with the massive amounts of data stored and processed in such a way that it can produce meaningful insights. Big Data Analytics is a way to structure the computation and storage in such a way that it can process such a large amount of data. This can be accomplished by leveraging one or more tools but requires quite some expertise to make effective use of these tools for analytics purposes.  There are many libraries and packages available for Big Data using Python, but one library that is especially popular…

15 Python Packages for Image Processing

Image classification is a branch of computer science that studies how to build algorithms that automatically label images. For example, you can use image processing to automatically label your company’s logo as a car logo, flower logo, etc. In this post, we’ll explore 15 Python Packages for Image Processing. OpenCV OpenCV is an open-source python library that includes several thousand functions to ease the development of computer vision applications. It includes a set of image processing algorithms, algorithms to detect and recognize faces, track objects, classify human actions in videos, etc. The library supports multiple operating systems (Windows, Mac OS…

Add CKEditor in Django Template

In a world where time is in ever-diminishing supply, it’s often beneficial to use tools that save us the legwork required when working with content creation. One of those tools is WYSIWYG (What You See Is What You Get) editor which makes it easier for people who don’t know how to code their pages. This way we can spend more time focussing on ideas and less time fiddling around with formatting to make the content look aesthetically pleasing. It allows people without technical experience to quickly upload images and make links between pages using a visual interface which saves everyone…

Programmatically Generate Video or Animated GIF in Python

GIFs have been around for a little over 20 years, and in that time, they’ve become the preferred format of communication for many. They can try to say more than words by not just depicting a quick action or response, but by also mimicking the tone and facial cues of the person or group trying to get their message across in an entertaining, informative way. This blog post is about how to programmatically generate video or animated GIF in Python. I’ll take you on an animated GIF-making journey. We’ll walk through the process of turning your video footage into a…

How to create CLI in Python?

A command-line interface is a powerful tool for developers and admins. This tool helps you to automate routine activities and provides easy access to the full power of a programming language. There are many different command-line interfaces but today, we will look at how to create CLI using Python and a library called click. What is CLI? Command-line interface (CLI) is a way of interacting with a computer program where the user types a command into a text terminal. A program that requires the user to type in commands is often referred to as a command-line interface, command language, or…