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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4cb87d153be2402d83eb1670ddbef2704cb3fdf26b4d4c331b1e419e105132a9
MD5 4342ce1610ea985ef46b86b69935cab2
BLAKE2b-256 9032a5ddfb44a9e3e2175d49ee6adba0792c14fcd9fb72f6fa9ac4508a05919e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getlongivityai_auth_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5e7a8c47b8bd741fde270cafd1abc308f12496db5951525c9e398df66ccabb
MD5 d6e79e9f2ef83496712df5a3a04dd938
BLAKE2b-256 e85a35664a84b7ade977c0c2a8fa238305607f3a3459079a7226227b5b6b59dd

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