Releases: Backblaze/b2-sdk-python
Releases · Backblaze/b2-sdk-python
1.11.0
Changed
- apiver
v2
interface released.from b2sdk.v2 import ...
is now the recommended import,
butfrom b2sdk.v1 import ...
works as before
1.10.0
Added
get_fresh_state
method added toFileVersion
andBucket
Changed
download_file_*
methods refactored to allow for inspecting DownloadVersion before downloading the whole fileB2Api.get_file_info
returns aFileVersion
object in v2B2RawApi
renamed toB2RawHTTPApi
B2HTTP
tests are now commonB2HttpApiConfig
class introduced to provide parameters likeuser_agent_append
toB2Api
without using internal classes in v2Bucket.update
returns aBucket
object in v2Bucket.ls
argumentshow_versions
renamed tolatest_only
in v2B2Api
application key methods refactored to operate with dataclasses instead of dicts in v2B2Api.list_keys
is a generator lazily fetching all keys in v2account_id
andbucket_id
added 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
SyncReport
methods
1.9.0
Added
ScanPoliciesManager
is able to filter b2 files by upload timestamp
Changed
Synchronizer.make_file_sync_actions
andSynchronizer.make_folder_sync_actions
were made private in v2 interface- Refactored
sync.file.*File
andsync.file.*FileVersion
tosync.path.*SyncPath
in v2 - Refactored
FileVersionInfo
toFileVersion
in v2 ScanPoliciesManager
exclusion interface changed in v2B2Api
unittests for v0, v1 and v2 are now commonB2Api.cancel_large_file
returns aFileIdAndName
object instead of aFileVersion
object in v2FileVersion
has a mandatoryapi
parameter in v2B2Folder
holds a handle to B2ApiBucket
unit 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_id
toAccountInfo
andCache
- 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.sync
refactored to reflectb2sdk.sync
structure- Make
B2Api.get_bucket_by_id
return populated bucket objects in v2 - Add proper support of
recommended_part_size
andabsolute_minimum_part_size
inAccountInfo
- Refactored
minimum_part_size
torecommended_part_size
(tha value used stays the same) - Encryption settings, types and providers are now part of the public API
Removed
- Remove
Bucket.copy_file
andBucket.start_large_file
- Remove
FileVersionInfo.format_ls_entry
andFileVersionInfo.format_folder_ls_entry
1.7.0
Added
- Add
__slots__
and__eq__
toFileVersionInfo
for memory usage optimization and ease of testing - Add support for SSE-C server-side encryption mode
Changed
BasicSyncEncryptionSettingsProvider
supports different settings sets for reading and writing
Fixed
- Fix clearing cache during
authorize_account
- Fix
ChainedStream
(needed inBucket.create_file
etc.) - 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.0
as>=6.0
doesn't support Python 3.5
1.4.0
Changed
- Add an ability to provide
bucket_id
filter parameter forlist_buckets
- Add
is_same_key
method 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_id
andget_file_info_by_name
toBucket
FileNotPresent
andNonExistentBucket
now subclass new exceptionsFileOrBucketNotFound
andResourceNotFound
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
ls
to 10000
Removed
- Drop Python 2 and Python 3.4 support 🎉
- Remove
--prefix
fromls
(it didn't really work, usefolderName
argument)
Fixed
- Allow to set an empty bucket info during the update
- Fix docs generation in CI