airbyte-source-google-sheets 0.3.14__py3-none-any.whl → 0.3.15.dev202402081036__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.
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-source-google-sheets
3
+ Version: 0.3.15.dev202402081036
4
+ Summary: Source implementation for Google Sheets.
5
+ Home-page: https://airbyte.com
6
+ License: MIT
7
+ Author: Airbyte
8
+ Author-email: contact@airbyte.io
9
+ Requires-Python: >=3.9,<4.0
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Dist: PyYAML (==6.0.1)
17
+ Requires-Dist: Unidecode (==1.3.8)
18
+ Requires-Dist: airbyte-cdk (==0.51.8)
19
+ Requires-Dist: backoff (==2.2.1)
20
+ Requires-Dist: google-api-python-client (==2.114.0)
21
+ Requires-Dist: google-auth-httplib2 (==0.2.0)
22
+ Requires-Dist: pydantic (==1.9.2)
23
+ Requires-Dist: requests (==2.31.0)
24
+ Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/google-sheets
25
+ Project-URL: Repository, https://github.com/airbytehq/airbyte
26
+ Description-Content-Type: text/markdown
27
+
28
+ # Google-Sheets source connector
29
+
30
+
31
+ This is the repository for the Google-Sheets source connector, written in Python.
32
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/google-sheets).
33
+
34
+ ## Local development
35
+
36
+ ### Prerequisites
37
+ * Python (~=3.9)
38
+ * Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
39
+
40
+
41
+ ### Installing the connector
42
+ From this connector directory, run:
43
+ ```bash
44
+ poetry install --with dev
45
+ ```
46
+
47
+
48
+ ### Create credentials
49
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/google-sheets)
50
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_sheets/spec.yaml` file.
51
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
52
+ See `sample_files/sample_config.json` for a sample config file.
53
+
54
+
55
+ ### Locally running the connector
56
+ ```
57
+ poetry run source-google-sheets spec
58
+ poetry run source-google-sheets check --config secrets/config.json
59
+ poetry run source-google-sheets discover --config secrets/config.json
60
+ poetry run source-google-sheets read --config secrets/config.json --catalog sample_files/configured_catalog.json
61
+ ```
62
+
63
+ ### Running unit tests
64
+ To run unit tests locally, from the connector directory run:
65
+ ```
66
+ poetry run pytest unit_tests
67
+ ```
68
+
69
+ ### Building the docker image
70
+ 1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
71
+ 2. Run the following command to build the docker image:
72
+ ```bash
73
+ airbyte-ci connectors --name=source-google-sheets build
74
+ ```
75
+
76
+ An image will be available on your host with the tag `airbyte/source-google-sheets:dev`.
77
+
78
+
79
+ ### Running as a docker container
80
+ Then run any of the connector commands as follows:
81
+ ```
82
+ docker run --rm airbyte/source-google-sheets:dev spec
83
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-sheets:dev check --config /secrets/config.json
84
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-sheets:dev discover --config /secrets/config.json
85
+ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-google-sheets:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
86
+ ```
87
+
88
+ ### Running our CI test suite
89
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
90
+ ```bash
91
+ airbyte-ci connectors --name=source-google-sheets test
92
+ ```
93
+
94
+ ### Customizing acceptance Tests
95
+ 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.
96
+ 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.
97
+
98
+ ### Dependency Management
99
+ All of your dependencies should be managed via Poetry.
100
+ To add a new dependency, run:
101
+ ```bash
102
+ poetry add <package-name>
103
+ ```
104
+
105
+ Please commit the changes to `pyproject.toml` and `poetry.lock` files.
106
+
107
+ ## Publishing a new version of the connector
108
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
109
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-sheets test`
110
+ 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)):
111
+ - bump the `dockerImageTag` value in in `metadata.yaml`
112
+ - bump the `version` value in `pyproject.toml`
113
+ 3. Make sure the `metadata.yaml` content is up to date.
114
+ 4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/google-sheets.md`).
115
+ 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).
116
+ 6. Pat yourself on the back for being an awesome contributor.
117
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
118
+ 8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
@@ -1,19 +1,14 @@
1
- integration_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- integration_tests/acceptance.py,sha256=VpQhkCpkovNSs0uLNh6iAdJ0WY-gYg0FbSBl8te_D0A,314
3
- integration_tests/configured_catalog.json,sha256=ekhpUAD453LqmKV7sBfy2jaOGmeG4hnhjGH5Q3DAUzs,2678
4
- integration_tests/invalid_config.json,sha256=qYvEaCdwFW7vKWMnf8kf3S_KjxaocIXQvj-Eu3CDM-0,207
5
1
  source_google_sheets/__init__.py,sha256=-aGVMRfrgWjYad3_cHofIptEEa5WMQzTvFD92HevQfw,73
6
2
  source_google_sheets/client.py,sha256=gcTpZJfPL8Af6dSnDFwy1M1sRSdBphVSVkRF4KRUXCM,2390
7
3
  source_google_sheets/helpers.py,sha256=_CJ6qQDd7bbOwUCVyEXCrRDVZS18pLira399Hg8cpZY,10501
4
+ source_google_sheets/models/__init__.py,sha256=Z-4MTpxG5t2jGhXzs4PPoIOa83zw3jRnUDx0N9Puv3s,61
5
+ source_google_sheets/models/spreadsheet.py,sha256=ebGZ39_QKT6Lrf7Hblo3pdjswFhoEzF8vno2TmEMyUU,1109
6
+ source_google_sheets/models/spreadsheet_values.py,sha256=OFbSvgeo5LnfMy6BURtDvWfRsJn7GN2AYMVkNQNkE-o,437
8
7
  source_google_sheets/run.py,sha256=_f5-LNqMzBuHtCD1YoUBxnA0fszgqmdNGcN7y_AmXU0,237
9
8
  source_google_sheets/source.py,sha256=37RHIrpGyKC_cyekBOK2yeqdYKmX5Xep6ZhzHFfCTV4,11296
10
9
  source_google_sheets/spec.yaml,sha256=mNu37XaBQqsFX1so--k2VwzwfJMxtXCMbXi_yrR-CEA,4149
11
10
  source_google_sheets/utils.py,sha256=ZB5lboyffiuuQdSarqe8AqBGEyiQpxiOfxqcU7Ght8A,2289
12
- source_google_sheets/models/__init__.py,sha256=Z-4MTpxG5t2jGhXzs4PPoIOa83zw3jRnUDx0N9Puv3s,61
13
- source_google_sheets/models/spreadsheet.py,sha256=ebGZ39_QKT6Lrf7Hblo3pdjswFhoEzF8vno2TmEMyUU,1109
14
- source_google_sheets/models/spreadsheet_values.py,sha256=OFbSvgeo5LnfMy6BURtDvWfRsJn7GN2AYMVkNQNkE-o,437
15
- airbyte_source_google_sheets-0.3.14.dist-info/METADATA,sha256=mVg1esRfGHyf2ji0yj6sU9u5329c0YVL10mux7n7X8Y,4387
16
- airbyte_source_google_sheets-0.3.14.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
17
- airbyte_source_google_sheets-0.3.14.dist-info/entry_points.txt,sha256=7ATCXCIcATZ7wnYlLrscBtuSZNELBwGWgSnK7IFXF_E,70
18
- airbyte_source_google_sheets-0.3.14.dist-info/top_level.txt,sha256=u8zUgEtp-eERDNclw8EGzMqt6wvJ-DZEs-cWS8ylv8w,39
19
- airbyte_source_google_sheets-0.3.14.dist-info/RECORD,,
11
+ airbyte_source_google_sheets-0.3.15.dev202402081036.dist-info/METADATA,sha256=FSfGmL0cZZnt_-UJmNXvQS7l6oCH_pUpSo4iMN20RR8,5681
12
+ airbyte_source_google_sheets-0.3.15.dev202402081036.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
13
+ airbyte_source_google_sheets-0.3.15.dev202402081036.dist-info/entry_points.txt,sha256=Dtsfjohe5IPUFyqojk49SIoP7CifCTlNLG_pgivzppo,69
14
+ airbyte_source_google_sheets-0.3.15.dev202402081036.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: poetry-core 1.8.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ source-google-sheets=source_google_sheets.run:run
3
+
@@ -1,77 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: airbyte-source-google-sheets
3
- Version: 0.3.14
4
- Summary: Source implementation for Google Sheets.
5
- Author: Airbyte
6
- Author-email: contact@airbyte.io
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: airbyte-cdk
9
- Requires-Dist: backoff
10
- Requires-Dist: requests
11
- Requires-Dist: google-auth-httplib2
12
- Requires-Dist: google-api-python-client
13
- Requires-Dist: PyYAML ~=6.0
14
- Requires-Dist: pydantic ~=1.9.2
15
- Requires-Dist: Unidecode
16
- Provides-Extra: tests
17
- Requires-Dist: requests-mock ~=1.9.3 ; extra == 'tests'
18
- Requires-Dist: pytest-mock ~=3.6.1 ; extra == 'tests'
19
- Requires-Dist: pytest ~=6.1 ; extra == 'tests'
20
-
21
- # Pypi Source
22
-
23
- This is the repository for the Pypi configuration based source connector.
24
- For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/pypi).
25
-
26
-
27
- **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/pypi)
28
- to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_pypi/spec.yaml` file.
29
- Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
30
- See `integration_tests/sample_config.json` for a sample config file.
31
-
32
- **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source pypi test creds`
33
- and place them into `secrets/config.json`.
34
-
35
-
36
-
37
- **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
38
- ```bash
39
- airbyte-ci connectors --name source-pypi build
40
- ```
41
-
42
- An image will be built with the tag `airbyte/source-pypi:dev`.
43
-
44
- **Via `docker build`:**
45
- ```bash
46
- docker build -t airbyte/source-pypi:dev .
47
- ```
48
-
49
- Then run any of the connector commands as follows:
50
- ```
51
- docker run --rm airbyte/source-pypi:dev spec
52
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev check --config /secrets/config.json
53
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev discover --config /secrets/config.json
54
- docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-pypi:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
55
- ```
56
-
57
- You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
58
- ```bash
59
- airbyte-ci connectors --name=source-google-sheets test
60
- ```
61
-
62
- Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
63
- 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.
64
-
65
- All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
66
- We split dependencies between two groups, dependencies that are:
67
- * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
68
- * required for the testing need to go to `TEST_REQUIREMENTS` list
69
-
70
- You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
71
- 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-sheets test`
72
- 2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
73
- 3. Make sure the `metadata.yaml` content is up to date.
74
- 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-sheets.md`).
75
- 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).
76
- 6. Pat yourself on the back for being an awesome contributor.
77
- 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- source-google-sheets = source_google_sheets.run:run
@@ -1,2 +0,0 @@
1
- integration_tests
2
- source_google_sheets
File without changes
@@ -1,14 +0,0 @@
1
- #
2
- # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
- #
4
-
5
-
6
- import pytest
7
-
8
- pytest_plugins = ("connector_acceptance_test.plugin",)
9
-
10
-
11
- @pytest.fixture(scope="session", autouse=True)
12
- def connector_setup():
13
- """This fixture is a placeholder for external resources that acceptance test might require."""
14
- yield
@@ -1,106 +0,0 @@
1
- {
2
- "streams": [
3
- {
4
- "stream": {
5
- "name": "Sheet1-one-col",
6
- "json_schema": {
7
- "$schema": "http://json-schema.org/draft-07/schema#",
8
- "type": "object",
9
- "properties": {
10
- "ID": {
11
- "type": "string"
12
- }
13
- }
14
- },
15
- "supported_sync_modes": ["full_refresh"],
16
- "source_defined_cursor": false
17
- },
18
- "sync_mode": "full_refresh",
19
- "destination_sync_mode": "overwrite"
20
- },
21
- {
22
- "stream": {
23
- "name": "Sheet2-two-cols",
24
- "json_schema": {
25
- "$schema": "http://json-schema.org/draft-07/schema#",
26
- "type": "object",
27
- "properties": {
28
- "ID": {
29
- "type": "string"
30
- },
31
- "Name": {
32
- "type": "string"
33
- }
34
- }
35
- },
36
- "supported_sync_modes": ["full_refresh"],
37
- "source_defined_cursor": false
38
- },
39
- "sync_mode": "full_refresh",
40
- "destination_sync_mode": "overwrite"
41
- },
42
- {
43
- "stream": {
44
- "name": "Sheet3-two-cols-with-diagram",
45
- "json_schema": {
46
- "$schema": "http://json-schema.org/draft-07/schema#",
47
- "type": "object",
48
- "properties": {
49
- "ID": {
50
- "type": "string"
51
- },
52
- "Name": {
53
- "type": "string"
54
- }
55
- }
56
- },
57
- "supported_sync_modes": ["full_refresh"],
58
- "source_defined_cursor": false
59
- },
60
- "sync_mode": "full_refresh",
61
- "destination_sync_mode": "overwrite"
62
- },
63
- {
64
- "stream": {
65
- "name": "Sheet4-two-cols-no-header",
66
- "json_schema": {
67
- "$schema": "http://json-schema.org/draft-07/schema#",
68
- "type": "object",
69
- "properties": {
70
- "1": {
71
- "type": "string"
72
- },
73
- "a": {
74
- "type": "string"
75
- }
76
- }
77
- },
78
- "supported_sync_modes": ["full_refresh"],
79
- "source_defined_cursor": false
80
- },
81
- "sync_mode": "full_refresh",
82
- "destination_sync_mode": "overwrite"
83
- },
84
- {
85
- "stream": {
86
- "name": "Sheet6-4000-rows",
87
- "json_schema": {
88
- "$schema": "http://json-schema.org/draft-07/schema#",
89
- "type": "object",
90
- "properties": {
91
- "ID": {
92
- "type": "string"
93
- },
94
- "Name": {
95
- "type": "string"
96
- }
97
- }
98
- },
99
- "supported_sync_modes": ["full_refresh"],
100
- "source_defined_cursor": false
101
- },
102
- "sync_mode": "full_refresh",
103
- "destination_sync_mode": "overwrite"
104
- }
105
- ]
106
- }
@@ -1,9 +0,0 @@
1
- {
2
- "spreadsheet_id": "invalid_spreadsheet_id",
3
- "credentials": {
4
- "auth_type": "Client",
5
- "client_id": "invalid_id",
6
- "client_secret": "invalid_secret",
7
- "refresh_token": "invalid_token"
8
- }
9
- }