Release 5.0.0
CLI
MAJOR: The command line has been ported to use click. The following commands have changed:
bna --newis nowbna newbna --deleteis nowbna deletebna --listis nowbna listbna --restoreis nowbna restorebna --restore-codeis nowbna show-restore-codebna --otpauth-urlis nowbna show-urlbna --set-defaultis nowbna set-default. --set-default flag
still works onnewandrestorecommands.- New command:
bna show-secret - New command:
bna show(Same as no arguments) bna -ishorthand 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)