Skip to content

Release 5.0.0

Compare
Choose a tag to compare
@jleclanche jleclanche released this 11 Oct 23:05
· 28 commits to master since this release
5.0.0

CLI

MAJOR: The command line has been ported to use click. The following commands have changed:

  • bna --new is now bna new
  • bna --delete is now bna delete
  • bna --list is now bna list
  • bna --restore is now bna restore
  • bna --restore-code is now bna show-restore-code
  • bna --otpauth-url is now bna show-url
  • bna --set-default is now bna set-default. --set-default flag
    still works on new and restore commands.
  • New command: bna show-secret
  • New command: bna show (Same as no arguments)
  • bna -i shorthand has been removed (use --interactive)

Other changes to the app:

  • Storing secrets as base32 now, instead of hex. Old hex-formatted secrets are converted accordingly.
  • Added dependency on PyOTP (#10), now using PyOTP to generate codes and otpauth uri
  • Renamed all instances of Battle.net to Blizzard
  • Fixed #12

API

  • Split up bna.py into multiple modules under bna/
  • Use an APIClient for all http requests
  • Fixed restore code support in China (now correctly using chinese hosts)
  • Added typings
  • Switched to consistent use of base32 whenever passing secrets (no longer expecting bytes)
  • Dropped support for Python < 3.6
  • Dropped get_token() (use PyOTP instead)