Library for verifying Yubikey One Time Passwords (OTPs)
Python class for verifying Yubico One Time Passwords (OTPs) based on the validation protocol version 2.0.
For more information and usage examples, please see the. documentation.
Documentation is available at https://yubico-client.readthedocs.org/en/latest/
$ pip install yubico-client
Note: Package has been recently renamed from
the main module has been renamed from
was done to avoid naming conflicts and make creation of distribution specific
To run the tests use the tox command. This will automatically run the tests on all the supported Python versions.
Yubico Client is distributed under the 3-Clause BSD License.
Fix compatibility issue with Python versions >= 3.0 <= 3.3 #22
Pin requests dependency to the latest version (2.7) #25 #27
Contribution by Wouter van Bommel, Vianney Carel.
Make sure the query parameters are unquoted when parsing them from the response. #23
Contribution by Tamás Gulácsi.
To discourage bad practices, remove use_https argument from the
class constructor all together. Also update DEFAULT_API_URLS variable to
contain full URLs with a scheme (e.g.
If a user wants to use a custom non-https URL or URLs, they can still do that by passing api_urls argument with custom non-https URLs to the constructor.
Replace CA_CERTS_BUNDLE_PATH module level variable with a ca_certs_bundle_path argument which can be passed to the Yubico class constructor.
Update requests dependency from 1.2 to 2.2.
Modify verify_multi method to throw if otp_list argument contains less than two items
Modify max_time_window argument in the verify_multi method to be in seconds (#19)
Modify verify_multi method to throw if delta between the first and last OTP timestamp is smaller than zero
Allow user to pass api_urls argument to the Yubico class constructor. This argument can contain a list of API urls which are used to validate the token. https://github.com/Kami/python-yubico-client/pull/18
Contributed by Dain Nilsson
Depend on newer version (1.2.3) of the requests library.
Update code and tests so they also work under Python 3.3
Change PyPi package name from yubico to yubico-client.
This was done to prevent naming collisions and make creation of distribution specific packages (e.g. debian packages) easier.
If there are multiple interpretations for a given OTP, first try to find the one which matches the input OTP. If the one is found, use the input OTP, otherwise use random interpretation. - https://github.com/Kami/python-yubico-client/issues/14
Reported by Klas Lindfors
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|yubico_client-1.10.0-py2.py3-none-any.whl (17.9 kB) Copy SHA256 Checksum SHA256||any||Wheel||Oct 2, 2015|
|yubico-client-1.10.0.tar.bz2 (17.4 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 2, 2015|
|yubico-client-1.10.0.tar.gz (21.0 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 2, 2015|
|yubico-client-1.10.0.zip (28.1 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 2, 2015|