Skip to content

Releases: drivendataorg/cloudpathlib

v0.15.1

12 Jul 17:46
6b4afe9

Choose a tag to compare

  • Compatibility with pydantic >= 2.0.0. (PR #349)

v0.15.0

16 Jun 19:16
2a3d712

Choose a tag to compare

  • Changed return type for CloudPathMeta.__call__ to fix problems with pyright/pylance (PR #330)
  • Make CloudPath.is_valid_cloudpath a TypeGuard so that type checkers can know the subclass if is_valid_cloudpath is called (PR #337)
  • Added follow_symlinks to stat for 3.11.4 compatibility (see bpo 39906)
  • Add follow_symlinks to is_dir implementation for CPython glob compatibility (see CPython PR #104512)

v0.14.0

14 May 03:27

Choose a tag to compare

  • Changed to pyproject.toml-based build.
  • Changed type hints from custom type variable DerivedCloudPath to typing.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-Type metadata set. (Issue #331, PR #332)

v0.13.0

16 Feb 02:23

Choose a tag to compare

  • Implement file_cache_modes to give users finer-grained control over when and how the cache is cleared. (Issue #10, PR #314)
  • Speed up listing directories for Google Cloud Storage. (PR #318)
  • Add compatibility for Python 3.11 (PR #317)

v0.12.1

05 Jan 05:44
caeeb50

Choose a tag to compare

  • Fix glob logic for buckets; add regression test; add error on globbing all buckets (Issue #311, PR #312)

v0.12.0

30 Dec 22:48

Choose a tag to compare

  • API Change: S3Client supports an extra_args kwarg now to pass extra args down to boto3 functions; 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

19 Dec 05:58

Choose a tag to compare

  • API change: Add ignore parameter to CloudPath.copytree in order to match shutil API. (Issue #145, PR #272)
  • Use the V2 version for listing objects list_objects_v2 in S3Client. (Issue #155, PR #302)
  • Add abilty to use .exists to 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/rglob patterns. (Issue #274, PR #276)

v0.10.0

19 Aug 00:31

Choose a tag to compare

v0.9.0

04 Jun 01:45
2e52c05

Choose a tag to compare

  • Added absolute to CloudPath (does nothing as CloudPath is always absolute) (PR #230)
  • Added resolve to CloudPath (does nothing as CloudPath is resolved in advance) (Issue #151, PR #230)
  • Added relative_to to CloudPath which returns a PurePosixPath (Issue #149, PR #230)
  • Added is_relative_to to CloudPath (Issue #149, PR #230)
  • Added is_absolute to CloudPath (always true as CloudPath is always absolute) (PR #230)
  • Accept and delegate read_text parameters to cached file (PR #230)
  • Added exist_ok parameter to touch (PR #230)
  • Added missing_ok parameter to unlink, 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

19 May 16:16
da86719

Choose a tag to compare

  • Fixed pickling of CloudPath objects 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)