forked from Unstructured-IO/unstructured
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
GCSConnector
Unstructured-IO#301
- Loading branch information
1 parent
8025524
commit 6fdf2cb
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |