Python Library to intract with Auth Service
Project description
A Python Library to interact with Auth service in a generic way
Features
- Common Types
- JWT token construction
- Notifications sending
Usage
- Install the library:
uv add getlongivityai-auth-sdk - Import
AuthProvider
Example of sending a notification:
import asyncio
from getlongivityai_auth_sdk import AuthProvider, NotificationMessage
async def main():
provider = AuthProvider(
# By default it's http//auth:3030
endpoint='http://localhost:3031'
)
message = NotificationMessage(
title='Test Notification',
body='Body of the notification',
)
await provider.send_notification_to_user(
message=message,
user_id=1
)
if __name__ == "__main__":
asyncio.run(main())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getlongivityai_auth_sdk-0.2.3.tar.gz.
File metadata
- Download URL: getlongivityai_auth_sdk-0.2.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a432986d2ce5d369875577d0c697f7e59384ef658d89e48fb4665ef3b9ab0e6
|
|
| MD5 |
8d65fee2abc42e5b630f8e0d1a163e95
|
|
| BLAKE2b-256 |
c03ccafa7e3b844159f9441238c4be72fe47273e7cfb4c7bba4fab02acd798d7
|
File details
Details for the file getlongivityai_auth_sdk-0.2.3-py3-none-any.whl.
File metadata
- Download URL: getlongivityai_auth_sdk-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c65579fb2139dd47a55efcf7bf8f26aaa7765ed992eefe59f6b5a677bb896555
|
|
| MD5 |
3481e326e52401ac7f72cf4687eae0be
|
|
| BLAKE2b-256 |
21f43e3fb2cde640d016d8ddb3ff66309c487152431401aa541e67d1ba0d36e1
|