Unit test is very useful and helpful in programming. Python provide built-in unittest module for you to test python class and functions. With third party modules such as html-testRunner and xmlrunner , you can also generate test case reports in html or xml format. This article will tell you how to do that.
JSON is the standard data format that be used to save and transfer text data between programs. It is independent from programming language. Python provide built-in json module to process JSON string and Python object conversion. This article will give you some example.
This example tell you how to read text file content and get the words count in the text file in python. This example is created with eclipse PyDev plugin, you can read article in reference section to learn more about PyDev.
This article will tell you how to use the python os.path and pathlib module to operate files. They are listed below. Check if a file exists or not, create file if not exists. Check if a file is a directory or a file. Check if the file is readable, writable, or executable. How to create …
This example will show you how to use PyPDF2, textract and nltk python module to extract text from a pdf format file. 1. Install PyPDF2, textract and nltk Python Modules. Open a terminal and run below command to install above python library. pip install PyPDF2 pip install textract pip install nltk When install textract, you …
Function is the important concept in Python. You can define function to implement special task, and then use it in other python programs. This article will show you how to define python function and how to pass arguments to the function.
Eclipse is the most popular IDE for java development. A lot of user are familiar with it. Besides java project, it can also be used to develop Python application. This article just want to tell you how to use it to develop Python application.