Skip to content

Commit

Permalink
Add GCSConnector Unstructured-IO#301
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Mar 1, 2023
1 parent 8025524 commit 6fdf2cb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions unstructured/ingest/connector/gcs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from dataclasses import dataclass

from unstructured.ingest.connector.fsspec import (
SimpleFsspecConfig,
FsspecIngestDoc,
FsspecConnector,
)
from unstructured.utils import requires_dependencies


@dataclass
class SimpleGCSConfig(SimpleFsspecConfig):
pass


class GCSIngestDoc(FsspecIngestDoc):
@requires_dependencies(["gcsfs", "fsspec"], extras="gcs")
def get_file(self):
super().get_file()


@requires_dependencies(["gcsfs", "fsspec"], extras="gcs")
class GCSConnector(FsspecConnector):
pass

0 comments on commit 6fdf2cb

Please sign in to comment.