Skip to main content

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

  1. Install the library: uv add getlongivityai-auth-sdk
  2. 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

getlongivityai_auth_sdk-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getlongivityai_auth_sdk-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file getlongivityai_auth_sdk-0.2.0.tar.gz.

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 89c009d7b5ed22ad3f5533f421517890e705bf015a3928f7f82b740f3e63bb46
MD5 f4ec2ffa35c595dd3881b89a6336f998
BLAKE2b-256 6fc9430ff23bee97dfe1f6cb40ef664e0a3ae91c37c84ab8c4c7228e82336bac

See more details on using hashes here.

File details

Details for the file getlongivityai_auth_sdk-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d1a90beaf5a41ecff93aaa6a3f6303101b49393de8caa3e3b15dd74227149d9
MD5 6821d54a41a5e9a284e01e87ea028d62
BLAKE2b-256 00e30c45139391ce0211f069a91c3ff40f7d7f5edb31ad9c84362149f5076071

See more details on using hashes here.

Supported by

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