daft.io.GCSConfig

daft.io.GCSConfig#

class daft.io.GCSConfig(project_id=None, anonymous=None)#

Create configurations to be used when accessing Google Cloud Storage

Parameters:
  • project_id – Google Project ID, defaults to reading credentials file or Google Cloud metadata service

  • anonymous – Whether or not to use “anonymous mode”, which will access Google Storage without any credentials

Example

>>> io_config = IOConfig(gcs=GCSConfig(anonymous=True))
>>> daft.read_parquet("gs://some-path", io_config=io_config)
__init__()#

Methods

__init__()

replace([project_id, anonymous])

Attributes

anonymous

Whether to use anonymous mode

project_id

Project ID to use when accessing Google Cloud Storage