Category: Python
Python
Images in Excel In this example I am going to show you how to insert images in excel file using Python script. You may have a requirement that needs to insert one or more images into an excel file. Either to represent something using the images in the excel file or you may need both…
PDF In this example I am going to show you how to add images to PDF documents or files. you may need to add or include images into pdf files along with text information. There are a number of advantages while using pdf as a document for various purposes, such as: PDF format reports allows…
Introduction In this example, I am going to show you how to solve Josephus problem using Python. The Josephus’ Problem can be stated as follows: There was a group of 41 Jewish soldiers surrounded by Roman army, and they didn’t want to get caught. So, they sat down in a circle and came up with…
Introduction In this example I am going to generate Van Eck sequence using Python programming language. Van Eck sequence is not used strictly for research purpose and it is actually application based professional activity. Van Eck sequence can be illustrated as follows: You start with a number 0 at the first position. Not necessarily you…
Table of Contents Introduction Why do you need to prettify the JSON data? Prerequisites Pretty Print JSON Source Code Introduction In this example I am going to show you how to pretty print JSON in Python programming language. The ugly JSON or one liner JSON data or string could be very difficult to read manually…
Table of Contents Introduction Why Need To Reduce Size Other Tools Prerequisites Project Directory Reduce Image Size Testing Image Quality After Reducing Image Size Original Images Scaled Images Optimized Images Source Code Introduction In this tutorial I will show you how to reduce image size using Python program. I am using Pillow package for reducing…
Introduction In this example I will show you how to extract text from images in Python program. The text extraction from image could be used for various purpose, for example, data mining for machine learning projects, reading the content from images can be used for further processing in your applications. To extract text from image…
Introduction In this example I am going to show how your application can reload changes without server restart in Flask applications in development environment. Situations may occur when you need to speed up your development works without having to worry about restarting the server for every change in the piece of code in your application….
In this example I am going to show you how to upload and play video using flask framework. Flask is a light weight web framework used to rapidly develop web applications in Python programming language. I am not validating the file type here but it is always good idea to validate the file type before…