Skip to content

Releases: Backblaze/b2-sdk-python

1.26.0

21 Nov 13:33
9ca9d0a
Compare
Choose a tag to compare

Added

  • Add expires, content_disposition, content_encoding, content_language arguments to various Bucket methods (#357)

Infrastructure

  • Towncrier changelog generation - to avoid conflicts when simultaneously working on PRs
  • Fix towncrier generated changelog to work with mindsers/changelog-reader-action

1.25.0

15 Nov 19:31
Compare
Choose a tag to compare

Added

  • Add *_PART_SIZE, BUCKET_NAME_*, STDOUT_FILEPATH constants
  • Add points_to_fifo, points_to_stdout functions

Changed

  • Mark TempDir as deprecated in favor of tempfile.TemporaryDirectory

Fixed

  • Fix downloading to a non-seekable file, such as /dev/stdout
  • Fix ScanPoliciesManager support for compiled regexes

Infrastructure

  • Fix readthedocs build by updating to v2 configuration schema
  • Fix spellcheck erroring out on LICENSE file
  • Fix snyk reporting vulnerability due to tornado package use in docs generation
  • Deduplicate test_base files in test suite
  • Refactor integration tests for better pytest compatibility & eager bucket cleanup

1.24.1

27 Sep 17:59
Compare
Choose a tag to compare

Fixed

  • Fix missing key ID for large file encrypted with SSE-C
  • Fix concatenating error message when message is None

1.24.0

31 Aug 11:03
f0424e3
Compare
Choose a tag to compare

Added

  • 'bypass_governance' flag to delete_file_version

1.23.0

10 Aug 13:39
072f96d
Compare
Choose a tag to compare

Added

  • Add get_file_info_by_name to the B2Api class

Fixed

  • Require typing_extensions on Python 3.11 (already required on earlier versinons) for better compatibility with pydantic v2
  • Fix RawSimulator handling of cache_control parameter during tests.

1.22.1

24 Jul 13:31
Compare
Choose a tag to compare

Fixed

  • Fix regression in dir exclusion patterns introduced in 1.22.0

1.22.0

21 Jul 07:10
8f0d197
Compare
Choose a tag to compare

Added

  • Declare official support of Python 3.12
  • Improved lifecycle_rules argument type annotations

Deprecated

  • Deprecate file_infos argument. Use file_info instead. Old argument name won't be supported in v3.

Changed

  • version_utils decorators now ignore current_version parameter to better fit apiver needs

Fixed

  • Circular symlinks no longer cause infinite loops when syncing a folder
  • Fix crash on upload retry with unbound data source

Infrastructure

  • Remove unsupported PyPy versions (3.7, 3.8) from tests matrix and add PyPy 3.9 & 3.10 instead
  • Replaced pyflakes with ruff for linting
  • Refactored logic for resuming large file uploads to unify code paths, correct inconsistencies, and enhance configurability (#381)
  • Automatically set copyright date when generating the docs
  • Use modern type hints in documentation (achieved through combination of PEP 563 & 585 and sphinx-autodoc-typehints)

1.21.0

17 Apr 17:38
Compare
Choose a tag to compare

Added

  • Add support for custom upload timestamp

Infrastructure

  • Remove dependency from arrow

1.20.0

23 Mar 08:33
Compare
Choose a tag to compare

Added

  • Add use_cache parameter to B2Api.list_buckets

Changed

  • Connection timeout is now being set explicitly

Fixed

  • Small files downloaded twice

Infrastructure

  • Disable changelog verification for dependabot PRs

1.19.0

24 Jan 13:03
Compare
Choose a tag to compare

Added

  • Authorizing a key for a single bucket ensures that this bucket is cached
  • Bucket.ls operation supports wildcard matching strings
  • Documentation for AbstractUploadSource and its children
  • InvalidJsonResponse when the received error is not a proper JSON document
  • Raising PotentialS3EndpointPassedAsRealm when a specific misconfiguration is suspected
  • Add large_file_sha1 support
  • Add support for incremental upload and sync
  • Ability to stream data from an unbound source to B2 (for example stdin)

Fixed

  • Removed information about replication being in closed beta
  • Don't throw raw OSError exceptions when using DownloadedFile.save_to to a path that doesn't exist, is a directory or the user doesn't have permissions to write to

Infrastructure

  • Additional tests for listing files/versions
  • Ensured that changelog validation only happens on pull requests
  • Upgraded GitHub actions checkout to v3, python-setup to v4
  • Additional tests for IncrementalHexDigester