Skip to main content

No project description provided

Project description

Authivate (Python SDK)

This is the official python package for the Authivate service.

Authivate is an easy-to-use User Authentication and Management service.

Install

To Install, using pip

pip install authivate

Using poetry

poetry add authivate

Example Usage

from authivate import  Authivate, AuthivateConfig
from pprint import pprint

def add_user_to_waitlist(authivate: Authivate):
    # Adds a user to the waitlist
    response = authivate.add_user_to_waitlist(
        email_address="user@example.com"
    )
    if response.was_successful:
        print("User added to waitlist")
        pprint(response.json_data)
    else:
        print(f"Error: {response.status_code} - {response.json_data}")


# Initialize AuthivateConfig
authivate_config = AuthivateConfig(api_key="your-api-key", project_id="project-id")


# Create an instance of Authivate
authivate_instance = Authivate(config=authivate_config)

# Adds a user to the waitlist
'''Response
{'message': 'Yah!, you are now on the waitlist for {Project name}. Please confirm your email to seal your spot'}
 '''
add_user_to_waitlist(authivate_instance)

PS

If you have used authivate before now June 17, 2024, what you think of authivate is definitely different from what it is now. it was completely rewritten to support only waitlist collection.

Thanks, Peter.

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

authivate-0.2.1.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

authivate-0.2.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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