Skip to main content

Reference client for Duo Security APIs

Project description

Overview

Build Status Issues Forks Stars License

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

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/report_users_and_phones.py

Testing

$ nose2

Linting

$ flake8

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

duo_client-5.0.0.tar.gz (68.5 kB view details)

Uploaded Source

Built Distribution

duo_client-5.0.0-py2.py3-none-any.whl (43.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file duo_client-5.0.0.tar.gz.

File metadata

  • Download URL: duo_client-5.0.0.tar.gz
  • Upload date:
  • Size: 68.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for duo_client-5.0.0.tar.gz
Algorithm Hash digest
SHA256 a6428581634cd2a54497b731e83764220242c716dccb359f5037f1d489464ba1
MD5 f82f0e4c4b83858e87ea5c885215184a
BLAKE2b-256 8899ed480ea6369188b21c73ae7762e5bbd924b8147e2c8d9272041f84e41b64

See more details on using hashes here.

File details

Details for the file duo_client-5.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: duo_client-5.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for duo_client-5.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 653ac3bc91fea4b7a11da5904e17da24131a3b814a5734f28ada100b5cf0c679
MD5 94d8e89012dc5f6740d5fb5c8d8e1a67
BLAKE2b-256 8a866050e21c0c8a1aa9fba2ecfdbea86fad4ed15acb8db95eec270cace2178d

See more details on using hashes here.

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