Posts

Showing posts from 2022

How to install Setuptools Python with windows shell

Image
Before learning Setuptools , it is important to understand the fundamentals of Distutils . Python comes with a module called distutils that provides a set of tools to distribute your Python applications. It provides the following : A skeleton to provide standard metadata fields such as the author, author email, version,license and many others. A set of helper who knows how to build a distribution over the code of a package -it's containing one or more modules. Even you can create a set of precompiled python files or a real installer for Windows. But distutils is limited to the package, and doesn't provide a way to define its dependencies over other packages. setuptools enhances this by adding a basic dependency system and a lot of other features. It also provides an automatic package finder that knows how to fetch dependencies and install them automatically. This tool has become very popular and is now almost mandatory when writing Python applications that are meant to be distr

ImportError: cannot import name 'Dash' from partially initialized module 'dash' (most likely due to a circular import)

Dash from partially initialized module 'dash' Error came due to the version conflict with your Python version dash No worry make it easy to upgrade the dash by pip or pip3 commands ;once you upgrade the Dash >2.0.0 and delete the dash related files like  dash.cpython-311.pyc  from  __pycache__ folder . Open your terminal and RUN the below commands. #uninstall  old version pip uninstall dash Or pip3 uninstall dash #install latest version  pip install dash --upgrade python -m pip install dash --upgrade Or pip3 install dash --upgrade python3 -m pip install dash --upgrade

How to send API data from Python to Google Sheets

Image
This article will help you understand how to automate Google Sheets and minimize manual work using Python API . I used the Google App script in my previous article to accomplish the same thing, but in response to user requests, I'm bringing up this subject now. I hope you have a basic understanding of the Python language and Google Sheets. The setup and prerequisites are listed below. Prerequisites Python 3.10.7 or greater Pip package management tool A Google Account A Google Cloud project               4.1  In the Google Cloud console, go to Menu menu > IAM & Admin > Create a Project .                            4.2  In the Project Name you have enter a descriptive name for your project               4.3  Click Create Next Step Enable the API Now Authorize credentials for a desktop application In the Google Cloud console, go to Menu menu > APIs & Services > Credentials Click Create Credentials > OAuth client ID Click Application type > Desktop app In the

How to download files using Wget and python

Image
In this session, I'll attempt to cover Wget and use python to fetch the data with help of Command line which enhances your capacity for flawless performance in interview questions and practical tests. If you are interested in DevOps and Python Engineer; I will recommend that you read this article carefully. Wget  Is a program  Download files from the internet  Used TCP Protocal  Support HTTP, HTTPS, FTP, FTPS  Why Wget? It is a network command line tool that you can download the file from the server . Most used in RestAPI and deal with unstable network or slow network connections. Wget will continue to attempt until the file is downloaded. Installation and basic commands I am used to window 10 OS and will show you every command step by step via window terminal. First we need to import the wget library by use of pip install wget command. Command python -m wget [options] <URL. options  -o –output FILE|DIR output filename or directory Run the below command in the terminal D:\Knowle

Automate Excel spreadsheet using App Script

I have a topic for you called App script . It is very wonderful JavaScript based technology made by Google and you can integrate with and automate tasks across Google products like Gmail Excel sheet, etc.. After learn this Topic you can easy make your Excel sheet fully Automated , Even you can configure a trigger based on specific times.Both technical and non-technical guys should find it very simple, which is my goal. sharing the code with you that will make it run at your end and give you the desired result. If you are familiar with the fundamentals of javascript and basic oops, you are a great .Hope you aware of google excel sheet and its row ,column , tabs and pivot table etc . While you doing Automate your Excel sheet you have to decide the trigger times, API request, response and Excel Sheet 's features. I have no doubt that it simplifies your task and cuts down on manual work. First open your google excel sheet . Create new Tab and rename StudentData and you can change name

Python Implementations-Short Note (💡)

Image
Below are the points asked in interviews and B.Tech/B.E and Other academy Exam Python written in the C-language and is called Cpython( code to bytecode before passing to the interpreter and python is an interpreted language* ) Jython IronPython PyPy Jython-Java Implementation  It compiles the code into java Byte code and allows the developers to seamlessly use java classes within their python Module. Some python  web framework such as Pylons are currently boosting jython development to make it available in java world. An example of running Python code inside a simple Java application. An example of using Java from Python code.   IronPython - .Net Implementation  Python into .Net that supported by Microsoft where IronPython 's lead developers work. The python code in their dot Net application in the same way as Jython does in java.It is quite an important implementation for the promotion of language.  PyPy- Rewrite python into Python  The python interpreter is itself written in pyth