Skip to content

Commit 456b441

Browse files
committed
Add spec for GoogleDrive source.
1 parent 98e7d14 commit 456b441

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/cocoindex/sources.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ class LocalFile(op.SourceSpec):
1616
# If provided, files matching these patterns will be excluded.
1717
# See https://docs.rs/globset/latest/globset/index.html#syntax for the syntax of the patterns.
1818
excluded_patterns: list[str] | None = None
19+
20+
21+
class GoogleDrive(op.SourceSpec):
22+
"""Import data from Google Drive."""
23+
24+
_op_category = op.OpCategory.SOURCE
25+
26+
service_account_credential_path: str
27+
root_folder_id: str
28+
binary: bool = False

0 commit comments

Comments
 (0)