Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterakande/authivate_python
The python SDK for Authivate, an easy to use User Authentication and Management service. https://authivate.com
https://github.com/peterakande/authivate_python
Last synced: 7 days ago
JSON representation
The python SDK for Authivate, an easy to use User Authentication and Management service. https://authivate.com
- Host: GitHub
- URL: https://github.com/peterakande/authivate_python
- Owner: PeterAkande
- License: mit
- Created: 2023-11-11T23:35:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T08:20:31.000Z (7 months ago)
- Last Synced: 2024-11-16T06:28:24.502Z (2 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Authivate (Python SDK)
This is the official python package for the [Authivate](https://authivate.com) service.
Authivate is an easy-to-use User Authentication and Management service.
### Install
To Install, using pip
```sh
pip install authivate
```Using poetry
```shell
poetry add authivate
```### Example Usage
```python
from authivate import Authivate, AuthivateConfig
from pprint import pprintdef add_user_to_waitlist(authivate: Authivate):
# Adds a user to the waitlist
response = authivate.add_user_to_waitlist(
email_address="[email protected]"
)
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.