b2-sdk-python
b2-sdk-python copied to clipboard
List of things to consider for apiver v2
- https://github.com/Backblaze/b2-sdk-python/pull/129
- replace
InMemoryAccountInfowithSqliteAccountInfoand a special:memory:file, see here - change all path arguments everywhere (internally too) to use pathlib instead of strings
- change the API of
SyncReport - the API should not exit from the given
ProgressListener. It should be used as a context manager by the user as described in the documentation.
- able to set the timeout per API call, not globally
- better format of progress reporting in
SyncReport. Maybe mergetotalandcomparedas it's only different when the source islocal.
- remove the workaround of setting time
^ no longer applicable
- Deliver reef-technologies/b2-sdk-python#110
change RawApi to RawHttpApi in v2
Some of the suggestions above did not make it to apiver v2 (but were not discarded):
- replace
InMemoryAccountInfowithSqliteAccountInfoand a special:memory:file, see here - this can be done in backward compatible way, and therefore does not require an apiver bump up - change all path arguments everywhere (internally too) to use pathlib instead of strings
- the API should not exit from the given ProgressListener. It should be used as a context manager by the user as described in the documentation.
- able to set the timeout per API call, not globally