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 - 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

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.6.1.tar.gz (95.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duo_client-5.6.1-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duo_client-5.6.1.tar.gz
  • Upload date:
  • Size: 95.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for duo_client-5.6.1.tar.gz
Algorithm Hash digest
SHA256 5b9bfba3bd995178cebf51db605190bdc84fec8e4b6935210e7abde4ae97cef5
MD5 40ec969ec5d6ff957eeaaea1c301ed54
BLAKE2b-256 c82048842c3cc8b2c60129e1e52f0ab5c72ac0a30a3a345ea6d6e9aa8c94c093

See more details on using hashes here.

File details

Details for the file duo_client-5.6.1-py3-none-any.whl.

File metadata

  • Download URL: duo_client-5.6.1-py3-none-any.whl
  • Upload date:
  • Size: 52.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for duo_client-5.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec7fa30548b7b8e3b7983948d08d167ada4df7a1b54b4723e7a02ee4635bb513
MD5 0caf87b7cbcc6b23d7d76bc49b83645e
BLAKE2b-256 9ddb798547ea1a4af7be4454d621f8c23dbbad153dc7d9c57285fbcde03abd42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page