Releases: Backblaze/b2-sdk-python
Releases · Backblaze/b2-sdk-python
1.26.0
Added
- Add
expires
,content_disposition
,content_encoding
,content_language
arguments to variousBucket
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
Added
- Add
*_PART_SIZE
,BUCKET_NAME_*
,STDOUT_FILEPATH
constants - Add
points_to_fifo
,points_to_stdout
functions
Changed
- Mark
TempDir
as 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_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 ofcache_control
parameter 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_rules
argument type annotations
Deprecated
- Deprecate
file_infos
argument. Usefile_info
instead. Old argument name won't be supported in v3.
Changed
version_utils
decorators now ignorecurrent_version
parameter to better fitapiver
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
withruff
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
Added
- Add support for custom upload timestamp
Infrastructure
- Remove dependency from
arrow
1.20.0
Added
- Add
use_cache
parameter 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.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 usingDownloadedFile.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