Flask Flask-SQLAlchemy This code defines a Flask application that uses Flask-SQLAlchemy to manage database sessions. It creates a simple user model and provides functions to add, retrieve, update, and delete user records. Flask application 2024-12-16 12:17:19 25 views
This code This code demonstrates how to use some common features of the Flask framework. This includes retrieving form data from requests, returning JSON responses with jsonify, creating RESTful APIs, storing user data with session, and handling user sessions with Flask-Login. Flask Function 2024-12-16 12:15:03 9 views
Authlib Flask This function creates an OAuth2 session using the Authlib library, requiring client credentials and endpoints such as authorization and token endpoints. The type of code 2024-12-16 12:11:45 3 views
OAuthlib requests This function creates an OAuth2 session using the provided client_id, client_secret, and token_url. It uses BackendApplicationClient and OAuth2Session from the OAuthlib library, and fetches a token using HTTPBasicAuth. Custom function 2024-12-16 12:04:48 3 views
OAuthlib requests_oauthlib This function creates an OAuth1 session using the OAuthlib library. It uses the BackendApplicationClient and OAuth1Session classes from OAuthlib to create an OAuth1 authenticated session. It takes the client ID, client secret, access token, and token secret as parameters. Function 2024-12-16 11:56:43 3 views
PyVISA This function randomly selects a resource type and method from the PyVISA library to interact with a specified instrument. Supported resource types include instruments and sessions, and supported methods include write, read, query, error query, status query, and clear. The type of code 2024-12-16 11:53:51 4 views
OAuthlib requests_oauthlib This function creates an OAuth2 session that supports both client credentials flow and resource owner credentials flow to obtain tokens. Python Function 2024-12-16 11:53:10 3 views
OAuthlib requests_oauthlib This function uses the OAuthlib library's BackendApplicationClient and requests_oauthlib to create an OAuth2 session. It requires client ID, client secret, token URL, and resource owner information to generate the session. OAuth2 Session Generation 2024-12-16 11:47:16 3 views
SQLAlchemy-Utils SQLAlchemy This function creates a SQLite in-memory database based on SQLAlchemy-Utils, defines two tables (User and Post), and creates a user session containing a randomly generated user. The type of code 2024-12-16 11:36:28 3 views
Python oauthlib This function creates an OAuth2 session using the provided client_id, client_secret, and token_url. It fetches the token from the authentication server using the provided credentials. Python Function 2024-12-16 11:34:21 3 views