Skip to content

Commit 66b501b

Browse files
committed
feat(gcs): add board_gcs constructor
1 parent 2bffd3a commit 66b501b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

pins/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
board_urls,
2020
board_rsconnect,
2121
board_s3,
22+
board_gcs,
2223
board,
2324
)

pins/constructors.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,17 @@ def board_s3(path, versioned=True, cache=DEFAULT, allow_pickle_read=None):
358358
"""
359359
# TODO: user should be able to specify storage options here?
360360
return board("s3", path, versioned, cache, allow_pickle_read)
361+
362+
363+
def board_gcs(path, versioned=True, cache=DEFAULT, allow_pickle_read=None):
364+
"""Create a board to read and write pins from an AWS S3 bucket folder.
365+
366+
Parameters
367+
----------
368+
path:
369+
Path of form <bucket_name>/<optional>/<subdirectory>.
370+
**kwargs:
371+
Passed to the pins.board function.
372+
"""
373+
374+
return board("s3", path, versioned, cache, allow_pickle_read)

0 commit comments

Comments
 (0)