Google Cloud Storage ==================== Accessing a Google Cloud Storage (GCS) with the shell tool `gsutil`. Installation ------------ Use extras `google-cloud-storage` to install all required packages. .. code-block:: shell $ pip install mara-storage[google-cloud-storage] You need to install `gsutil`. Take a look at `Install gsutil `_. Configuration examples ---------------------- .. tabs:: .. group-tab:: Service account via file .. code-block:: python import pathlib import mara_storage.storages mara_storage.config.storages = lambda: { 'data': mara_storage.storages.GoogleCloudStorage( bucket_name='my-gcs-bucket', project_id='', service_account_file='service-account.json'), } .. group-tab:: Service account from raw json .. code-block:: python import pathlib import mara_storage.storages mara_storage.config.storages = lambda: { 'data': mara_storage.storages.GoogleCloudStorage( bucket_name='my-gcs-bucket', project_id='', service_account_info= ''' {... content of service-account.json } ''' ), } | | API reference ------------- This section contains database specific API in the module. Configuration ~~~~~~~~~~~~~ .. module:: mara_storage.storages :noindex: .. autoclass:: GoogleCloudStorage :special-members: __init__ :inherited-members: :members: