Skip to content

Releases: Othoz/gcsfs

1.2.0

09 Apr 18:13
373814b
Compare
Choose a tag to compare

1.2.0 - 01.04.2020

Added

  • open_fs now supports providing a custom "project" and "api_endpoint", e.g. open_fs("gs://bucket_name?project=test") or open_fs("gs://bucket_name?api_endpoint=http%3A//localhost%3A8888") (#26)

1.1.0

07 Jan 16:06
9a447ab
Compare
Choose a tag to compare

Added

  • GCSFS.get_mapper() which returns a GCSMap that wraps a GCSFS as a MutableMapping.
    The keys of the mapping become files and the values (which must be bytes) the contents of those files.
    This is particularly useful to be used with libraries such as xarray or zarr (#21)

Fixed

  • GCSFS.fix_storage() no longer creates a directory marker if root_path is the actual root of the bucket.
    Apart from not having any advantage, this caused subsequent GCSFS.fix_storage() calls as well as GCSFS.walk() to be stuck in endless loops. (#19)

1.0.0

27 Aug 07:46
Compare
Choose a tag to compare

Changed

  • Instead of uploading all blobs as application/octet-stream, the MIME type is now guessed via mimetypes.guess_type(). This enables e.g. hotlinking images directly from GCS.

0.4.2

31 Jul 15:29
Compare
Choose a tag to compare

Fixed

  • Fixed a bug where the url parameter strict was not considered by GCSFS, e.g. in open_fs("gs://bucket_name?strict=False")

0.4.1

18 Dec 11:10
c2ef261
Compare
Choose a tag to compare

Fixed

  • Fixed a bug where create=True in combination with an "empty-ish root_path like "", "." or "/" would create a directory marker.

0.4.0

14 Dec 08:34
5a5f9f0
Compare
Choose a tag to compare

Added

  • Implemented the create property on GCSFS and the corresponding opener. By default all new GCSFS instances have create=False (PyFilesystem default) which means they will raise a CreateFailed exception if root_path does not exist

0.3.0

20 Nov 13:45
2d1d519
Compare
Choose a tag to compare

Added

  • This is the first release available on conda-forge

Removed

  • delimiter property from GCSFS as it was not fully functional and we currently do not have any use case for it

Fixed

  • GCSFS.listdir() and GCSFS.scandir() now also correctly list blobs on the root level of a bucket

0.2.0

12 Nov 09:29
4a592bd
Compare
Choose a tag to compare

Changed

  • Open-sourced GCSFS by moving it to GitHub
  • Removed project and credentials properties from GCSFS.
    Instead, one can now optionally pass a client of type google.cloud.storage.Client.
  • GCSFS.getinfo() does not magically fix missing directory markers anymore.
    Instead, there is a new method GCSFS.fix_storage() which can be explicitly called to check and fix the entire filesystem.