Python Connect MySql Using Pymysql

python mysql pymysql

Python Connect MySql Using Pymysql Pymysql In order to connect Python to a database you need a driver, which is a library used to Interact with the database. For MySQL database we will use module name pymysql Pymysql installation (pyenv) root@juniour:~# pip install pymysql Collecting pymysql Using cached Requirement[…] Continue reading

Python Virtualenv

Python Virtualenv

Python Virtualenv We have dependencies issue while installing different version of python module. In this case virtualenv can help you. It creates an environment that has its own installation directories, that doesn’t share libraries with other virtualenv environments (and optionally doesn’t access the globally installed libraries either). Let me show[…] Continue reading

Python Decorator

Python Decorator Decorator : Decorators allow you to inject or modify code in functions or classes. Function Decorator : A function decorator is applied to a function definition by placing it on the line before that function definition begins. Example @myDecorator def myFunc(): print(“Hello”) Let create decorator myDecorator Download the[…] Continue reading

Request Module Python

Request Module Python Requests allow you to send HTTP/1.1 requests. You can add headers, form data, multipart files, and parameters with simple Python dictionaries, and access the response data in the same way. >>> import requests #Let’s try to get a webpage >>> r = requests.get(“”) Now, we have[…] Continue reading

Python notify2 module


Python notify2 Module In this article we will cover python notify2 module. Python notify2 module enable user to send notification to desktop at any position. Let’s get started. Installation of python notify2 module. pip install notify2 Beagle:~ kumarshubham$ pip install notify2 Collecting notify2 Downloading notify2-0.3.1-py2.py3-none-any.whl Installing collected packages: notify2 Successfully[…] Continue reading

Add Python Environmental Variable in Windows

Add python environmental varibale in windows

Add Python Environmental Variable in Windows This article will show you how to add python environmental variable in windows. Follow my steps . Step 1: Right click on my computer icon and click on last option properties. Step 2: on Left, click on Advanced System Properties. Step 3: Right down,[…] Continue reading

Raspberry pi Controlling Led

  Raspberry pi Controlling Led In this tutorial will show you how to control a Led using raspberry pi. The language used is Python. How to install RPi.GPIO module for python. Explanation of Led. Explanation of breadboard. Explanation of RPi.GPIO python module. Click here to download Rpi.GPIO module In the[…] Continue reading

Simple Python Program to Show Global IP address

Simple Python Program to Show Global IP address   # created by kumar shubham #, # # import urllib2 import re import Tkinter import socket import tkMessageBox try: k=urllib2.urlopen(“”) ip=re.findall(‘\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}’,k) except: tkMessageBox.showerror(‘Internet’,’no internet connection’) main=Tkinter.Tk() main.minsize(200,60) main.title(“Global IP”) frametop=Tkinter.Frame(main) framemid=Tkinter.Frame(main) framebot=Tkinter.Frame(main) frametop.pack() framemid.pack() framebot.pack() host=”Welcome[…] Continue reading