Tag: python
Gateway in Python
A gateway, in networking terms, is a device or software application that acts as a bridge between different networks. In Python, a gateway can be implemented using various libraries, such as sockets. In this blog, we will be discussing how
How To Setup & Install Selenium With Python & Pycharm
Install Python on windows Install Selenium with Python Configure Pycharm with Selenium How to install Python on windows. There is a website to download Python. https://www.python.org https://www.python.org/downloads/ Here, click on “Download Python 3.10.7”. This is the latest version of Python.
How to Delete files from azure storage using python
First, install azure-storage-blob module. pip3 intall azure-storage-blob Then import ContainerClient: from azure.storage.blob import ContainerClient After that get your Credentials “Connection string” from the Microsoft official site https://portal.azure.com/#home inside the storage account option. After that just follow the below-mentioned code: from
Profiling in Python using cProfile
Many times we need to optimize our code as our program is spending too much time on some specific line of code. There are hundreds of lines of code and we are stuck on which piece of code to modify
TypeError: ‘<' not supported between instances of 'int' and 'str' in Python
Description Sometimes there may be a need to access or simply print a python dictionary in a particular order of its keys i.e. ascending or descending as it was in my case. Although it seems that it is not a
Python OpenCV
Introduction to Python OpenCV Python OpenCV Usage:- For main modules- run pip install OpenCV-python cv2.imread() method This method loads an image from the specified file and if the image cannot be read due to some error, it returns an empty
Linting and Security tools for python code
What is a linter? Linters are the tools that analyze code to detect various categories of lint which help in making code better organized, shows warnings and errors and hence, improves quality. The linters can be broadly categorized as following:
How to fetch unread emails from a mailbox
Python code to fetch Unread emails from a Mailbox Script to check and fetch the unread inbox using the following packages. 1. imaplib 2. email 3. csv IMAP is an email retrieval protocol which does not download the emails. It
Add Text to Image with Php and Python
How to add Text to Image with Php and Python Step 1: Call the python file from PHP with the following arguments. $ filePathForPython: Specify the location of the python file. $imageName: Dynamic name of the image. $ imageText: Text