Reference client for Duo Security APIs
Project description
Overview
Auth - https://www.duosecurity.com/docs/authapi
Admin - https://www.duosecurity.com/docs/adminapi
Accounts - https://www.duosecurity.com/docs/accountsapi
Activity - TBD (As of now, the activity endpoint is not in general availability and is restricted to a few customers for private preview. If you have any questions or need more information, feel free to reach out to support for guidance.)
Tested Against Python Versions
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
TLS 1.2 and 1.3 Support
Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 2.7 (and higher) and 3.5 (and higher) have both TLS 1.2 and TLS 1.3 support.
Installing
Development:
$ git clone https://github.com/duosecurity/duo_client_python.git
$ cd duo_client_python
$ virtualenv .env
$ source .env/bin/activate
$ pip install --requirement requirements.txt
$ pip install --requirement requirements-dev.txt
$ python setup.py install
System:
Install from PyPi
$ pip install duo-client
Using
See the examples
folder for how to use this library.
To run an example query, execute a command like the following from the repo root:
$ python examples/report_users_and_phones.py
Testing
$ nose2
Linting
$ flake8
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
Built Distribution
Hashes for duo_client-4.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f1ea54111fa1304127e4d169bf553aee826db62b33c972c45f65a02756c820 |
|
MD5 | 4e8dc4aca8b1e0a0c635cafc39bee97a |
|
BLAKE2b-256 | ac138fbceba10b50dd3f551932736f2acea2a3b7efa837077776a9432056b060 |