Authy API Client
Project description
Python Client for Twilio Authy Two-Factor Authentication (2FA) API
Documentation for Python usage of the Authy API lives in the official Twilio documentation.
The Authy API supports multiple channels of 2FA:
- One-time passwords via SMS and voice.
- Soft token (TOTP via the Authy App)
- Push authentication via the Authy App
If you only need SMS and Voice support for one-time passwords, we recommend using the Twilio Verify API instead.
More on how to choose between Authy and Verify here.
Authy Quickstart
For a full tutorial, check out either of the Python Authy Quickstarts in our docs:
Authy Python Installation
Install with pip:
$ pip install authy
OR
Download the source code and run the following command from your terminal:
$ python setup.py install
Note that you may need admin permissions to run the above commands.
Usage
To use the Authy client, import AuthyApiClient and initialize it with your production API Key found in the Twilio Console:
from authy.api import AuthyApiClient
authy_api = AuthyApiClient('your_api_key')
2FA Workflow
OR
Phone Verification
Phone verification now lives in the Twilio API and has Python support through the official Twilio helper libraries.
Legacy (V1) documentation here. Verify V1 is not recommended for new development. Please consider using Verify V2.
Contributing
Install development dependencies with pip:
sudo pip install -r requirements.txt
To run tests:
make test
or
make testfile tests/<test_case_file>
Copyright
Copyright (c) 2011-2020 Authy Inc. See LICENSE for further details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file authy-2.2.6.tar.gz
.
File metadata
- Download URL: authy-2.2.6.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0e28e5cadaa6979e33cf0d335d2a0594e681b17d8cf7e915ee71d065764442 |
|
MD5 | f4540e55344912b355f8d6de6b3e1243 |
|
BLAKE2b-256 | 2347d9ac2aefe1281135ad8b9d22a3e60ceedbd4c3b0445288d9a343204bde1c |