todus.errors.AuthenticationError
is now raised when account fails to login,todus.errors.TokenExpiredError
will be raised when token expired.- CLI: print program usage if no sub-command is provided.
- CLI: if session expired account password is deleted (session is logged out)
- CLI: added
--remove
and--default
options toaccounts
subcomand.
py7zr
is now an optional dependency,zipfile
will be used ifpy7zr
is not installed.
- added
todus.util.normalize_phone_number()
utility. - added
todus.client.ToDusClient2
class. - removed
todus.util.ResultProcess
andtodus.errors.AbortError
classes. - avoid incomplete file downloads, check file size match
Content-Length
. todus.client.ToDusClient.download_file()
will now resume partial downloads.- added logger parameter to
todus.client.ToDusClient
. - updated fake client version.
- CLI: now links can be downloaded concurrently.
- CLI: register
todus
command, should be available in the shell. - CLI: added progress bar.
- CLI: fixed bug that prevented from using "login" subcommand.
- CLI: skip already downloaded/uploaded files.
- CLI: renamed
--part-size
option to--split
. - CLI: removed
--config-folder
option. - CLI: save logs in
~/.todus/
. - CLI: terminate program gracefully on
Ctl+C
. - CLI: improved account management, now logins are saved in
~/.todus/config.json
. - CLI: added
token
subcommand to get a new token that could be used in other ToDus tools. - CLI: added
accounts
subcomand to list added accounts.
- initial release