Releases: Backblaze/b2-sdk-python
Releases · Backblaze/b2-sdk-python
1.25.0
Added
- Add
*_PART_SIZE,BUCKET_NAME_*,STDOUT_FILEPATHconstants - Add
points_to_fifo,points_to_stdoutfunctions
Changed
- Mark
TempDiras deprecated in favor oftempfile.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
Fixed
- Fix missing key ID for large file encrypted with SSE-C
- Fix concatenating error message when message is None
1.24.0
Added
- 'bypass_governance' flag to delete_file_version
1.23.0
Added
- Add
get_file_info_by_nameto the B2Api class
Fixed
- Require
typing_extensionson Python 3.11 (already required on earlier versinons) for better compatibility with pydantic v2 - Fix
RawSimulatorhandling ofcache_controlparameter during tests.
1.22.1
Fixed
- Fix regression in dir exclusion patterns introduced in 1.22.0
1.22.0
Added
- Declare official support of Python 3.12
- Improved
lifecycle_rulesargument type annotations
Deprecated
- Deprecate
file_infosargument. Usefile_infoinstead. Old argument name won't be supported in v3.
Changed
version_utilsdecorators now ignorecurrent_versionparameter to better fitapiverneeds
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
pyflakeswithrufffor 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
Added
- Add support for custom upload timestamp
Infrastructure
- Remove dependency from
arrow
1.20.0
Added
- Add
use_cacheparameter toB2Api.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
Added
- Authorizing a key for a single bucket ensures that this bucket is cached
Bucket.lsoperation supports wildcard matching strings- Documentation for
AbstractUploadSourceand its children InvalidJsonResponsewhen the received error is not a proper JSON document- Raising
PotentialS3EndpointPassedAsRealmwhen a specific misconfiguration is suspected - Add
large_file_sha1support - 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
OSErrorexceptions when usingDownloadedFile.save_toto 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
1.18.0
Added
- Logging performance summary of parallel download threads
- Add
max_download_streams_per_fileparameter to B2Api class and underlying structures - Add
is_file_lock_enabledparameter toBucket.update()and related methods
Fixed
- Replace
ReplicationScanResult.source_has_sse_c_enabledwithsource_encryption_mode - Fix
B2Api.get_key()andRawSimulator.delete_key() - Fix calling
CopySizeTooBigexception
Infrastructure
- Fix nox's deprecated
session.install()calls - Re-enable changelog validation in CI