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.3.tar.gz (4.8 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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1a432986d2ce5d369875577d0c697f7e59384ef658d89e48fb4665ef3b9ab0e6
MD5 8d65fee2abc42e5b630f8e0d1a163e95
BLAKE2b-256 c03ccafa7e3b844159f9441238c4be72fe47273e7cfb4c7bba4fab02acd798d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c65579fb2139dd47a55efcf7bf8f26aaa7765ed992eefe59f6b5a677bb896555
MD5 3481e326e52401ac7f72cf4687eae0be
BLAKE2b-256 21f43e3fb2cde640d016d8ddb3ff66309c487152431401aa541e67d1ba0d36e1

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