Category: Python

How To Install Python Pip For Linux?

Python provides tool named pip in order to install python modules. Most of the python applications uses pip in order to install dependencies. In order to use pip we should install it.  In this tutorial we will look how to install pip  for Python 2 and Python 3. Install For Python 2 On Ubuntu, Debian, Mint, Kali We can install pip for Python for

Continue reading

How To Execute Shell Command with Python

Python provides a lot of modules for different operating system related operations. Running external command or shell command is very popular Python developers. We can call Linux or Windows commands from python code or script and use output. Import os Module We can use system() function inorder to run shell command in Linux and Windows operating systems. system() is provided

Continue reading

How To Create Reverse Proxy with Nginx?

Nginx is very popular web server software. It has some advantages over Apache. Some developers and system administrators use Nginx with Apache to get more from advantages. Nginx Reverse proxy is very popular because of the speed provided by Nginx with files and directories by using threads. In this tutorial we will look how to configure a reverse proxy with

Continue reading

How To Generate and Configure Htpasswd Password In Linux For Apache and Nginx Server?

Today world is insecure. We have to provide different type of security measures like authentication. In HTTP servers like Apache or Nginx we can use HTTP Basic Authentication. HTTP Basic Authentication is authentication protocol provided by web server. We can use htpasswd tool to create HTTP Basic Authentication Database and Users. Using application level authentication is better solution by the

Continue reading

How To Download, Install and Use Python Idle Editor?

Python is popular programming language used by a lot of people from different professions. Python is a scripting language supported by different platforms and operating systems like Windows, Linux, MacOs, BSD etc. Developing and running python can be done in different ways but in practical way we generally need some editor. Python Idle is simple editor which provides basic features

Continue reading

Python os.path Library and Using exist, isdir, isfile Examples

Python provides os.path module in order to use some file and directory related functions. We can use os.pathin order to check whether a file or directory exists, given path is file or directory, the access time of the directory and path etc. Import os.path Before starting examples we need to import os.path module which provides functionalities examined below.


Continue reading

Enjoy this blog? Please spread the word :)