Skip to main content

Posts

Google Oauth2 with Flask web app

This post explains how to add  Google Oauth2  login in a  Flask  web app using the  requests-oauthlib  package for OAuth 2.0 and  flask-sqlalchemy . To get started, first we have to create a project in Google Developers Console to get client key and secret. Creating a Google project First go to  Google Developers Console . Sign in using your Google credentials if you haven’t already. There will be a list of projects(if you have previously created any). Click on  Create Project  to create a new project. Provide a project name in the dialog box and press enter. For explanation purposes, lets say the project name is  test-project-123xyz .  test-project-123xyz  will appear in the list of projects after creation. Now go to the project page. Click  APIs and Auth -> Credentials  in the sidebar. Then goto the  OAuth Consent Screen . Provide the  Product Name (you can also provide other details but they are optional).  Product Name  is what users see when they are logging i

Python Real Time Interview Questions and Answers: Part -3

Q1).What is Python? Ans1:   Python  is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h as fewer syntactical constructions than other languages. Q2).Name some of the features of Python. Ans2:  Following are some of the salient features of  python It supports functional and structured programming methods as well as OOP. It can be used as a scripting language or can be compiled to byte-code for building large applications. It provides very high-level dynamic data types and supports dynamic type checking. It supports automatic garbage collection. It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java. Q3).Do you have any personal projects? Really? Ans3: This shows that you are willing to do more than the bare minimum in terms of keeping your skillset up to date. If you work on personal projects and