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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for external-user-local-0.0.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c49fef79a17914caaf495b785fe1807f06cc4465e10506a1f6eb812ba52081 |
|
MD5 | 32c1665589365375e0ca4029a281dae2 |
|
BLAKE2b-256 | f3fa109c51c217c778c20814c9f48517146f1fc9a84a9171c0991488d5dd7630 |
Hashes for external_user_local-0.0.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96567b480b45725ca5ba92827544d04c81b03079431bcc074c8647606b01d84 |
|
MD5 | 44a782e7c267c3f8d1679d0ec3faa94d |
|
BLAKE2b-256 | 2d9a33231807357b59847e7df9eeb667509a5e64f20c8eb875b3a7925707da44 |