File: __init__.py

package info (click to toggle)
python-yubico 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 288 kB
  • ctags: 434
  • sloc: python: 1,893; ansic: 128; sh: 67; makefile: 4
file content (44 lines) | stat: -rw-r--r-- 945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
the yubico package

See http://www.yubico.com/yubikey/ for information about the YubiKey.

Example usage :

  import yubico

  try:
      YK = yubico.find_yubikey(debug=True)
      print "Version : %s " % YK.version()
  except yubico.yubico_exception.YubicoError as e:
      print "ERROR: %s" % e.reason
      sys.exit(1)

To learn about configuring your YubiKey using this framework, see the
yubikey_config module.
"""
# Copyright (c) 2010, 2011, 2012 Yubico AB
# See the file COPYING for licence statement.

__version__ = '1.1.0'

__all__ = [
    # classes
    'YubiKey',
    # functions
    "find_yubikey",
    # modules
    "yubico_exception",
    "yubico_util",
    "yubikey",
    "yubikey_config",
    "yubikey_config_util",
    "yubikey_defs",
    "yubikey_frame",
    "yubikey_usb_hid",
    "yubikey_neo_usb_hid",
    ]

# to not have to import yubico.yubikey
from yubikey import YubiKey
from yubikey import find_key as find_yubikey