Releases: drivendataorg/cloudpathlib
Releases · drivendataorg/cloudpathlib
v0.15.1
v0.15.0
- Changed return type for
CloudPathMeta.__call__to fix problems with pyright/pylance (PR #330) - Make
CloudPath.is_valid_cloudpatha TypeGuard so that type checkers can know the subclass ifis_valid_cloudpathis called (PR #337) - Added
follow_symlinkstostatfor 3.11.4 compatibility (see bpo 39906) - Add
follow_symlinkstois_dirimplementation for CPythonglobcompatibility (see CPython PR #104512)
v0.14.0
- Changed to pyproject.toml-based build.
- Changed type hints from custom type variable
DerivedCloudPathtotyping.Self(PEP 673). This adds a dependency on the typing-extensions backport package from Python versions lower than 3.11. - Fixed a runtime key error when an S3 object does not have the
Content-Typemetadata set. (Issue #331, PR #332)
v0.13.0
v0.12.1
v0.12.0
- API Change:
S3Clientsupports anextra_argskwarg now to pass extra args down toboto3functions; this enables Requester Pays bucket access and bucket encryption. (Issues #254, #180; PR #307) - Speed up glob! (Issue #274, PR #304)
- Ability to list buckets/containers a user has access to. (Issue #48, PR #307)
- Remove overly specific status check and assert in production code on remove. (Issue #212, PR #307)
- Update docs, including accessing public buckets. (Issue #271, PR #307)
v0.11.0
- API change: Add
ignoreparameter toCloudPath.copytreein order to matchshutilAPI. (Issue #145, PR #272) - Use the V2 version for listing objects
list_objects_v2inS3Client. (Issue #155, PR #302) - Add abilty to use
.existsto check for a raw bucket/container (no additional path components). (Issue #291, PR #302) - Prevent data loss when renaming by skipping files that would be renamed to the same thing. (Issue #277, PR #278)
- Speed up common
glob/rglobpatterns. (Issue #274, PR #276)
v0.10.0
- API change: Make
staton base class method instead of property to followpathlib(Issue #234, PR #250) - Fixed "S3Path.exists() returns True on partial matches." (Issue #208, PR #244)
- Make
AnyPathsubclass ofAnyPath(Issue #246, PR #251) - Skip docstrings if not present to avoid failing under
-00(Issue #238, PR #249) - Add
py.typedfile so mypy runs (Issue #243, PR #248)
v0.9.0
- Added
absolutetoCloudPath(does nothing asCloudPathis always absolute) (PR #230) - Added
resolvetoCloudPath(does nothing asCloudPathis resolved in advance) (Issue #151, PR #230) - Added
relative_totoCloudPathwhich returns aPurePosixPath(Issue #149, PR #230) - Added
is_relative_totoCloudPath(Issue #149, PR #230) - Added
is_absolutetoCloudPath(always true asCloudPathis always absolute) (PR #230) - Accept and delegate
read_textparameters to cached file (PR #230) - Added
exist_okparameter totouch(PR #230) - Added
missing_okparameter tounlink, which defaults to True. This diverges from pathlib to maintain backward compatibility (PR #230) - Fixed missing root object entries in documentation's Intersphinx inventory (Issue #211, PR #237)
v0.8.0
- Fixed pickling of
CloudPathobjects not working. (Issue #223, PR #224) - Added functionality to push the MIME (media) type to the content type property on cloud providers by default. (Issue #222, PR #226)