Releases: Backblaze/b2-sdk-python
Releases · Backblaze/b2-sdk-python
1.11.0
Changed
- apiver
v2interface released.from b2sdk.v2 import ...is now the recommended import,
butfrom b2sdk.v1 import ...works as before
1.10.0
Added
get_fresh_statemethod added toFileVersionandBucket
Changed
download_file_*methods refactored to allow for inspecting DownloadVersion before downloading the whole fileB2Api.get_file_inforeturns aFileVersionobject in v2B2RawApirenamed toB2RawHTTPApiB2HTTPtests are now commonB2HttpApiConfigclass introduced to provide parameters likeuser_agent_appendtoB2Apiwithout using internal classes in v2Bucket.updatereturns aBucketobject in v2Bucket.lsargumentshow_versionsrenamed tolatest_onlyin v2B2Apiapplication key methods refactored to operate with dataclasses instead of dicts in v2B2Api.list_keysis a generator lazily fetching all keys in v2account_idandbucket_idadded to FileVersion
Fixed
- Fix EncryptionSetting.from_response_headers
- Fix FileVersion.size and FileVersion.mod_time_millis type ambiguity
- Old buckets (from past tests) are cleaned up before running integration tests in a single thread
Removed
- Remove deprecated
SyncReportmethods
1.9.0
Added
ScanPoliciesManageris able to filter b2 files by upload timestamp
Changed
Synchronizer.make_file_sync_actionsandSynchronizer.make_folder_sync_actionswere made private in v2 interface- Refactored
sync.file.*Fileandsync.file.*FileVersiontosync.path.*SyncPathin v2 - Refactored
FileVersionInfotoFileVersionin v2 ScanPoliciesManagerexclusion interface changed in v2B2Apiunittests for v0, v1 and v2 are now commonB2Api.cancel_large_filereturns aFileIdAndNameobject instead of aFileVersionobject in v2FileVersionhas a mandatoryapiparameter in v2B2Folderholds a handle to B2ApiBucketunit tests for v1 and v2 are now common
Fixed
- Fix call to incorrect internal api in
B2Api.get_download_url_for_file_name
1.8.0
Added
- Add
get_bucket_name_or_none_from_bucket_idtoAccountInfoandCache - Add possibility to change realm during integration tests
- Add support for "file locks": file retention, legal hold and default bucket retention
Fixed
- Cleanup sync errors related to directories
- Use proper error handling in
ScanPoliciesManager - Application key restriction message reverted to previous form
- Added missing apiver wrappers for FileVersionInfo
- Fix crash when Content-Range header is missing
- Pin dependency versions appropriately
Changed
b2sdk.v1.syncrefactored to reflectb2sdk.syncstructure- Make
B2Api.get_bucket_by_idreturn populated bucket objects in v2 - Add proper support of
recommended_part_sizeandabsolute_minimum_part_sizeinAccountInfo - Refactored
minimum_part_sizetorecommended_part_size(tha value used stays the same) - Encryption settings, types and providers are now part of the public API
Removed
- Remove
Bucket.copy_fileandBucket.start_large_file - Remove
FileVersionInfo.format_ls_entryandFileVersionInfo.format_folder_ls_entry
1.7.0
Added
- Add
__slots__and__eq__toFileVersionInfofor memory usage optimization and ease of testing - Add support for SSE-C server-side encryption mode
Changed
BasicSyncEncryptionSettingsProvidersupports different settings sets for reading and writing
Fixed
- Fix clearing cache during
authorize_account - Fix
ChainedStream(needed inBucket.create_fileetc.) - Make tqdm-based progress reporters less jumpy and easier to read
- Fix emerger examples in docs
1.6.0
Added
- Fetch S3-compatible API URL from
authorize_account
Fixed
- Exclude packages inside the test package when installing
- Fix for server response change regarding SSE
1.5.0
Added
- Add
dependabot.yml - Add support for SSE-B2 server-side encryption mode
Changed
- Add upper version limit for the requirements
Fixed
- Pin
setuptools-scm<6.0as>=6.0doesn't support Python 3.5
1.4.0
Changed
- Add an ability to provide
bucket_idfilter parameter forlist_buckets - Add
is_same_keymethod toAccountInfo - Add upper version limit for arrow dependency, because of a breaking change
Fixed
- Fix docs autogen
1.3.0
Added
- Add custom exception for
403 transaction_cap_exceeded - Add
get_file_info_by_idandget_file_info_by_nametoBucket FileNotPresentandNonExistentBucketnow subclass new exceptionsFileOrBucketNotFoundandResourceNotFound
Changed
- Fix missing import in the synchronization example
- Use setuptools-scm for versioning
1.2.0
Added
- Add support for Python 3.9
- Support for bucket to bucket sync
- Add a possibility to append a string to the User-Agent in
B2Http
Changed
- Change default fetch count for
lsto 10000
Removed
- Drop Python 2 and Python 3.4 support 🎉
- Remove
--prefixfromls(it didn't really work, usefolderNameargument)
Fixed
- Allow to set an empty bucket info during the update
- Fix docs generation in CI