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

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

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

Uploaded Source

Built Distribution

duo_client-5.5.0-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duo_client-5.5.0.tar.gz
  • Upload date:
  • Size: 93.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for duo_client-5.5.0.tar.gz
Algorithm Hash digest
SHA256 303109e047fe7525ba4fc4a294c1f3deb4125066e89c10d33f7430378867b1d6
MD5 e26f567f89b63bed428e85e8ddf854ed
BLAKE2b-256 8bc84e8416eec72bc77ad947b736f760ceedf818df0c48153816b1bfb0fab854

See more details on using hashes here.

File details

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

File metadata

  • Download URL: duo_client-5.5.0-py3-none-any.whl
  • Upload date:
  • Size: 51.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for duo_client-5.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fbf1e97a2b25ef64e9f88171ab817162cf45bafc1c63026af4883baf8892a12
MD5 1c44f6cd2796566a1afe0086f0bc5616
BLAKE2b-256 7a4bdd927d3111e1f4c78c1f5944d3b64b4fb6ab655487c23100a3feff5cdaa4

See more details on using hashes here.

Supported by

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