Release 5.0.0
CLI
MAJOR: The command line has been ported to use click. The following commands have changed:
bna --new
is nowbna new
bna --delete
is nowbna delete
bna --list
is nowbna list
bna --restore
is nowbna restore
bna --restore-code
is nowbna show-restore-code
bna --otpauth-url
is nowbna show-url
bna --set-default
is nowbna set-default
. --set-default flag
still works onnew
andrestore
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)