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

System Logging Linux

System Logging Linux System logs must be recorded for the auditing the system and troubleshooting the problems. By Convention all logs are recorded in the /var/log directory. Syslog message is handled by two services systemd-journald and rsyslog. systemd-journald daemons collects log messages from the kernel, early stage of boot process,[…] Continue reading


OpenSSH OpenSSH is used to securly run a shell on remote system. If you have user account on remote linux system providing ssh service running on the system. ssh is the command to is used to normally used to log into the remote system. The ssh command can also be[…] Continue reading

Systemd in Linux

Systemd in Linux Systemd: Systemd, init – systemd system and service manager for Linux operating systems. When run as first process on boot (as PID 1), it acts as init system that brings up and maintains userspace services. This program provides a method for activating system resources, server daemons, and[…] Continue reading

Sudoers File In Linux

Sudoers File In Linux Default sudo security policy plugin. The sudoers policy determines a user sudo privileges. The policy config file is /etc/sudoers. visudo command is the safe way to edit sudoers file. root user and only user with sudo access can edit the file /etc/sudoers. User Privileges Syntax: user[…] Continue reading