Skip to main content

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())

Metadata

Release files for getlongivityai-auth-sdk 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getlongivityai-auth-sdk 0.2.3
File Size Uploaded Provenance Actions
getlongivityai_auth_sdk-0.2.3.tar.gz 4.8 kB Without provenance Details for getlongivityai_auth_sdk-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getlongivityai-auth-sdk 0.2.3
File Interpreter ABI Platform Actions
getlongivityai_auth_sdk-0.2.3-py3-none-any.whl Python 3 none any Details for getlongivityai_auth_sdk-0.2.3-py3-none-any.whl

Total release size: 8.3 kB

Release files / getlongivityai_auth_sdk-0.2.3.tar.gz

Download URL getlongivityai_auth_sdk-0.2.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a432986d2ce5d369875577d0c697f7e59384ef658d89e48fb4665ef3b9ab0e6
BLAKE2b-256 checksum
How to use checksums
c03ccafa7e3b844159f9441238c4be72fe47273e7cfb4c7bba4fab02acd798d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Release files / getlongivityai_auth_sdk-0.2.3-py3-none-any.whl

Download URL getlongivityai_auth_sdk-0.2.3-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c65579fb2139dd47a55efcf7bf8f26aaa7765ed992eefe59f6b5a677bb896555
BLAKE2b-256 checksum
How to use checksums
21f43e3fb2cde640d016d8ddb3ff66309c487152431401aa541e67d1ba0d36e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Security for getlongivityai-auth-sdk 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page