Release v1.2.0 - Personal API Key support and OAuth error handling improvements
What's new
Personal API Key support (BIGSdb ≥ v1.53.0)
PubMLST now supports personal API keys as a simpler alternative to OAuth. If you've struggled with the OAuth flow, this is the recommended path going forward.
Setup (one time):
- Log in to pubmlst.org → My Account → API keys → Generate key
- Run:
mlstdb connect --db pubmlst --api-key
- Paste your key when prompted. Done — no browser step, no verification code.
mlstdb update will automatically use the key for all future downloads.
Bug fixes
TypeError: argument of type 'NoneType' is not iterable (#35)
Users on Rocky Linux 8 and WSL2 reported that mlstdb connect --db pubmlst crashed at the session token step with this error. Root cause: rauth 0.7.3 has a bug where _parse_optional_params raises TypeError when no params= dict is passed to OAuth1Session.get().
Improved error messages throughout the OAuth flow
Error responses that are not valid JSON (e.g. HTML error pages from HTTPS redirects) no longer cause a secondary crash. All error paths now use a safe _parse_error_message() helper.
Clock-skew guidance for WSL2 users
If OAuth fails with Request timestamp more than 600 seconds from current time, mlstdb connect now prints the relevant chronyc / ntpdate / w32tm sync command for your OS.
Full changelog
Full Changelog: v1.1.1...v1.2.0