Skip to main content

No project description provided

Project description

External User Local Python Package

The External User Local Python Package is a library designed to manage access tokens for external users. It provides functions to insert, update, retrieve, and delete access tokens from a database. This library is intended to be used in conjunction with your own project.

Installation

-pip install external-user-local 0.0.25 -add to requirements.txt external-user-local== 0.0.25

Importing the Library

from library import library_DB import Accsess_Token_Library

Usage Example: assuming system_id=1

Initialize the access token library

all methods are static, no initialize required

Insert a new access token

ExternalUser.insert_or_update_external_user_access_token("example_user", 123,1, "example_token","example_expiry","example refresh") notice! refresh and expiry arent a mandatory

Update an existing access token

ExternalUser.update_user_external(123, "updated_token")

Retrieve an access token by profile ID

access_token = ExternalUser.get_access_token_by_profile_id(123)

Retrieve an access token by user name

access_token = ExternalUser.get_access_token_by_user_name("example_user",1)

Delete an access token by profile ID

ExternalUser.delete_access_token_by_profile_id(123)

Update an existing access token by username

ExternalUser.update_user_external_by_user_name("example_user",1, "new_token")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

external-user-local-0.0.33.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

external_user_local-0.0.33-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page