Overview
Auth - https://www.duosecurity.com/docs/authapi
Admin - https://www.duosecurity.com/docs/adminapi
Accounts - https://www.duosecurity.com/docs/accountsapi
Activity - The activity endpoint is in public preview and subject to change
Tested Against Python Versions
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
- 3.12
Requirements
Duo_client_python supports Python 3.7 and higher
TLS 1.2 and 1.3 Support
Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 3.7 (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/Admin/report_users_and_phones.py
Testing
$ nose2
Example: `cd tests/admin && nose2`
Linting
$ flake8
Release files for duo-client 5.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| duo_client-5.7.0.tar.gz | 96.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duo_client-5.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 148.9 kB
Release files / duo_client-5.7.0.tar.gz
| Download URL | duo_client-5.7.0.tar.gz |
|---|---|
| Size | 96.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ae0feb93226b13e9b7b29f6970118a52386b9500d410c2b9775fd21a34dd293
|
|
BLAKE2b-256 checksum How to use checksums |
98238e65f0b414eb5cf90c0c30dcee023935a954fdc81cfb6e284483533a4be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / duo_client-5.7.0-py3-none-any.whl
| Download URL | duo_client-5.7.0-py3-none-any.whl |
|---|---|
| Size | 52.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc46ba464eb9be98bc6507be0b2a7c610190201b921e6237b79cc4b06b3dd946
|
|
BLAKE2b-256 checksum How to use checksums |
acf45d0e9634b611b5bd66ce17a0cbe8e0c2a7716c0f6008552c598702bc64b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|