Skip to content

Releases: Backblaze/b2-sdk-python

1.11.0

24 Jun 12:19
eee51a6
Compare
Choose a tag to compare

Changed

  • apiver v2 interface released. from b2sdk.v2 import ... is now the recommended import,
    but from b2sdk.v1 import ... works as before

1.10.0

23 Jun 14:42
6c82a85
Compare
Choose a tag to compare

Added

  • get_fresh_state method added to FileVersion and Bucket

Changed

  • download_file_* methods refactored to allow for inspecting DownloadVersion before downloading the whole file
  • B2Api.get_file_info returns a FileVersion object in v2
  • B2RawApi renamed to B2RawHTTPApi
  • B2HTTP tests are now common
  • B2HttpApiConfig class introduced to provide parameters like user_agent_append to B2Api without using internal classes in v2
  • Bucket.update returns a Bucket object in v2
  • Bucket.ls argument show_versions renamed to latest_only in v2
  • B2Api application key methods refactored to operate with dataclasses instead of dicts in v2
  • B2Api.list_keys is a generator lazily fetching all keys in v2
  • account_id and bucket_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

07 Jun 22:23
Compare
Choose a tag to compare

Added

  • ScanPoliciesManager is able to filter b2 files by upload timestamp

Changed

  • Synchronizer.make_file_sync_actions and Synchronizer.make_folder_sync_actions were made private in v2 interface
  • Refactored sync.file.*File and sync.file.*FileVersion to sync.path.*SyncPath in v2
  • Refactored FileVersionInfo to FileVersion in v2
  • ScanPoliciesManager exclusion interface changed in v2
  • B2Api unittests for v0, v1 and v2 are now common
  • B2Api.cancel_large_file returns a FileIdAndName object instead of a FileVersion object in v2
  • FileVersion has a mandatory api parameter in v2
  • B2Folder holds a handle to B2Api
  • Bucket 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

21 May 01:00
034bec3
Compare
Choose a tag to compare

Added

  • Add get_bucket_name_or_none_from_bucket_id to AccountInfo and Cache
  • 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 reflect b2sdk.sync structure
  • Make B2Api.get_bucket_by_id return populated bucket objects in v2
  • Add proper support of recommended_part_size and absolute_minimum_part_size in AccountInfo
  • Refactored minimum_part_size to recommended_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 and Bucket.start_large_file
  • Remove FileVersionInfo.format_ls_entry and FileVersionInfo.format_folder_ls_entry

1.7.0

22 Apr 23:59
94d0302
Compare
Choose a tag to compare

Added

  • Add __slots__ and __eq__ to FileVersionInfo 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 in Bucket.create_file etc.)
  • Make tqdm-based progress reporters less jumpy and easier to read
  • Fix emerger examples in docs

1.6.0

08 Apr 17:24
Compare
Choose a tag to compare

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

25 Mar 20:26
Compare
Choose a tag to compare

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

03 Mar 13:25
Compare
Choose a tag to compare

Changed

  • Add an ability to provide bucket_id filter parameter for list_buckets
  • Add is_same_key method to AccountInfo
  • Add upper version limit for arrow dependency, because of a breaking change

Fixed

  • Fix docs autogen

1.3.0

13 Jan 11:53
Compare
Choose a tag to compare

Added

  • Add custom exception for 403 transaction_cap_exceeded
  • Add get_file_info_by_id and get_file_info_by_name to Bucket
  • FileNotPresent and NonExistentBucket now subclass new exceptions FileOrBucketNotFound and ResourceNotFound

Changed

  • Fix missing import in the synchronization example
  • Use setuptools-scm for versioning

1.2.0

03 Nov 11:59
Compare
Choose a tag to compare

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 from ls (it didn't really work, use folderName argument)

Fixed

  • Allow to set an empty bucket info during the update
  • Fix docs generation in CI