airbyte-source-google-drive 0.0.10__py3-none-any.whl → 0.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of airbyte-source-google-drive might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-google-drive
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Source implementation for Google Drive.
5
5
  Home-page: https://airbyte.com
6
6
  License: ELv2
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
- Requires-Dist: airbyte-cdk[file-based] (>=0,<1)
15
+ Requires-Dist: airbyte-cdk[file-based] (>=1,<2)
16
16
  Requires-Dist: google-api-python-client (==2.104.0)
17
17
  Requires-Dist: google-api-python-client-stubs (==1.18.0)
18
18
  Requires-Dist: google-auth-httplib2 (==0.1.1)
@@ -23,32 +23,33 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  # Google Drive source connector
25
25
 
26
-
27
26
  This is the repository for the Google Drive source connector, written in Python.
28
27
  For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/google-drive).
29
28
 
30
29
  ## Local development
31
30
 
32
31
  ### Prerequisites
33
- * Python (~=3.9)
34
- * Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
35
32
 
33
+ - Python (~=3.9)
34
+ - Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
36
35
 
37
36
  ### Installing the connector
37
+
38
38
  From this connector directory, run:
39
+
39
40
  ```bash
40
41
  poetry install --with dev
41
42
  ```
42
43
 
43
-
44
44
  ### Create credentials
45
+
45
46
  **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/google-drive)
46
47
  to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_drive/spec.yaml` file.
47
48
  Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
48
49
  See `sample_files/sample_config.json` for a sample config file.
49
50
 
50
-
51
51
  ### Locally running the connector
52
+
52
53
  ```
53
54
  poetry run source-google-drive spec
54
55
  poetry run source-google-drive check --config secrets/config.json
@@ -57,23 +58,28 @@ poetry run source-google-drive read --config secrets/config.json --catalog sampl
57
58
  ```
58
59
 
59
60
  ### Running unit tests
61
+
60
62
  To run unit tests locally, from the connector directory run:
63
+
61
64
  ```
62
65
  poetry run pytest unit_tests
63
66
  ```
64
67
 
65
68
  ### Building the docker image
69
+
66
70
  1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
67
71
  2. Run the following command to build the docker image:
72
+
68
73
  ```bash
69
74
  airbyte-ci connectors --name=source-google-drive build
70
75
  ```
71
76
 
72
77
  An image will be available on your host with the tag `airbyte/source-google-drive:dev`.
73
78
 
74
-
75
79
  ### Running as a docker container
80
+
76
81
  Then run any of the connector commands as follows:
82
+
77
83
  ```
78
84
  docker run --rm airbyte/source-google-drive:dev spec
79
85
  docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev check --config /secrets/config.json
@@ -82,18 +88,23 @@ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integrat
82
88
  ```
83
89
 
84
90
  ### Running our CI test suite
91
+
85
92
  You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
93
+
86
94
  ```bash
87
95
  airbyte-ci connectors --name=source-google-drive test
88
96
  ```
89
97
 
90
98
  ### Customizing acceptance Tests
99
+
91
100
  Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
92
101
  If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
93
102
 
94
103
  ### Dependency Management
95
- All of your dependencies should be managed via Poetry.
104
+
105
+ All of your dependencies should be managed via Poetry.
96
106
  To add a new dependency, run:
107
+
97
108
  ```bash
98
109
  poetry add <package-name>
99
110
  ```
@@ -101,11 +112,13 @@ poetry add <package-name>
101
112
  Please commit the changes to `pyproject.toml` and `poetry.lock` files.
102
113
 
103
114
  ## Publishing a new version of the connector
115
+
104
116
  You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
117
+
105
118
  1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-drive test`
106
- 2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
107
- - bump the `dockerImageTag` value in in `metadata.yaml`
108
- - bump the `version` value in `pyproject.toml`
119
+ 2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
120
+ - bump the `dockerImageTag` value in in `metadata.yaml`
121
+ - bump the `version` value in `pyproject.toml`
109
122
  3. Make sure the `metadata.yaml` content is up to date.
110
123
  4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/google-drive.md`).
111
124
  5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
@@ -0,0 +1,10 @@
1
+ source_google_drive/__init__.py,sha256=SAgPIoGpjdHTY7mvf__A99FiElBh3WvdKSHLstg-BUE,134
2
+ source_google_drive/run.py,sha256=5AQd906FbSGaNZj0udrr-VKmiSS4nsor7F7noMjsdi0,677
3
+ source_google_drive/source.py,sha256=I_GamBB3aHnPQF1MLQ_hsgslANHvOYVsKSVFEHNPgvA,2784
4
+ source_google_drive/spec.py,sha256=fzeqWchSTv6hzgHzkrBDg8WW5W6fqWQi0U9FYTnUvKA,3375
5
+ source_google_drive/stream_reader.py,sha256=47qTZlT7rlZXrvNTF-JMMV3g8pZ7ePe_jFnD90puu2o,8501
6
+ source_google_drive/utils.py,sha256=1Fe3J4KXI1iIf4rklgLoR4p1xkCzLQI7zj5dkyi4Vt0,942
7
+ airbyte_source_google_drive-0.0.11.dist-info/METADATA,sha256=1j2_PEYq9c-iwGhpeuvc-Na6Ot8B6APTMKi7UeDss0I,5547
8
+ airbyte_source_google_drive-0.0.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
+ airbyte_source_google_drive-0.0.11.dist-info/entry_points.txt,sha256=YgpJf0nA5Mn0B7YC9VOFI847vz1jI6U4q7BeLUOXa54,67
10
+ airbyte_source_google_drive-0.0.11.dist-info/RECORD,,
@@ -1,6 +1,8 @@
1
1
  #
2
2
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
3
  #
4
+
5
+
4
6
  from .source import SourceGoogleDrive
5
7
 
6
8
  __all__ = ["SourceGoogleDrive"]
@@ -5,8 +5,7 @@
5
5
 
6
6
  import sys
7
7
 
8
- from airbyte_cdk import AirbyteEntrypoint
9
- from airbyte_cdk.entrypoint import launch
8
+ from airbyte_cdk import AirbyteEntrypoint, launch
10
9
  from source_google_drive import SourceGoogleDrive
11
10
 
12
11
 
@@ -1,12 +1,13 @@
1
1
  #
2
2
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
3
  #
4
+
5
+
4
6
  from typing import Any, Mapping, Optional
5
7
 
6
- from airbyte_cdk.models import AdvancedAuth, ConfiguredAirbyteCatalog, ConnectorSpecification, OAuthConfigSpecification
8
+ from airbyte_cdk import AdvancedAuth, ConfiguredAirbyteCatalog, ConnectorSpecification, OAuthConfigSpecification, TState
7
9
  from airbyte_cdk.sources.file_based.file_based_source import FileBasedSource
8
10
  from airbyte_cdk.sources.file_based.stream.cursor.default_file_based_cursor import DefaultFileBasedCursor
9
- from airbyte_cdk.sources.source import TState
10
11
  from source_google_drive.spec import SourceGoogleDriveSpec
11
12
  from source_google_drive.stream_reader import SourceGoogleDriveStreamReader
12
13
 
@@ -6,8 +6,8 @@
6
6
  from typing import Any, Dict, Literal, Union
7
7
 
8
8
  import dpath.util
9
+ from airbyte_cdk import OneOfOptionConfig
9
10
  from airbyte_cdk.sources.file_based.config.abstract_file_based_spec import AbstractFileBasedSpec
10
- from airbyte_cdk.utils.oneof_option_config import OneOfOptionConfig
11
11
  from pydantic import BaseModel, Field
12
12
 
13
13
 
@@ -2,17 +2,17 @@
2
2
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
3
  #
4
4
 
5
+
5
6
  import io
6
7
  import json
7
8
  import logging
8
- import re
9
9
  from datetime import datetime
10
10
  from io import IOBase
11
11
  from typing import Iterable, List, Optional, Set
12
12
 
13
+ from airbyte_cdk import AirbyteTracedException, FailureType
13
14
  from airbyte_cdk.sources.file_based.file_based_stream_reader import AbstractFileBasedStreamReader, FileReadMode
14
15
  from airbyte_cdk.sources.file_based.remote_file import RemoteFile
15
- from airbyte_cdk.utils.traced_exception import AirbyteTracedException, FailureType
16
16
  from google.oauth2 import credentials, service_account
17
17
  from googleapiclient.discovery import build
18
18
  from googleapiclient.http import MediaIoBaseDownload
@@ -1,5 +1,6 @@
1
1
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
2
2
 
3
+
3
4
  from urllib.parse import urlparse
4
5
 
5
6
 
@@ -1,10 +0,0 @@
1
- source_google_drive/__init__.py,sha256=5eaSfjduFy2tZFKWshVu1H7Evu-pjwOdti4MGDANCj4,132
2
- source_google_drive/run.py,sha256=R5AQ5KyVwlhCDqVeNq9zRZa9cROB1PwxDBz9fW0d7RE,711
3
- source_google_drive/source.py,sha256=PAEoNKumyLWQpSk3zNQ0B9jdlltZCfLLghcmQY8bjGk,2827
4
- source_google_drive/spec.py,sha256=A25glT8IV4hngtv7goVK3xIV0r0uwy_qOvJER9Q6VKI,3401
5
- source_google_drive/stream_reader.py,sha256=bRgGeSKOQLLASwZGli9juzdpSTwBzureAziKs42j4MQ,8533
6
- source_google_drive/utils.py,sha256=ZIYqXEQfJDpFZgNW94MOeYPG2xKba-LoGgsYEllhVmY,941
7
- airbyte_source_google_drive-0.0.10.dist-info/METADATA,sha256=CrAiJ5Eiyc26AFypvgmqma0xJ-qf4AeCW_DHE3y9_GU,5538
8
- airbyte_source_google_drive-0.0.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
- airbyte_source_google_drive-0.0.10.dist-info/entry_points.txt,sha256=YgpJf0nA5Mn0B7YC9VOFI847vz1jI6U4q7BeLUOXa54,67
10
- airbyte_source_google_drive-0.0.10.dist-info/RECORD,,