airbyte-source-google-sheets 0.3.14__tar.gz → 0.3.15.dev202402081036__tar.gz

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.
Files changed (27) hide show
  1. airbyte_source_google_sheets-0.3.15.dev202402081036/PKG-INFO +118 -0
  2. airbyte_source_google_sheets-0.3.15.dev202402081036/README.md +91 -0
  3. airbyte_source_google_sheets-0.3.15.dev202402081036/pyproject.toml +40 -0
  4. airbyte-source-google-sheets-0.3.14/PKG-INFO +0 -77
  5. airbyte-source-google-sheets-0.3.14/README.md +0 -67
  6. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/PKG-INFO +0 -77
  7. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/SOURCES.txt +0 -23
  8. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/dependency_links.txt +0 -1
  9. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/entry_points.txt +0 -2
  10. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/requires.txt +0 -13
  11. airbyte-source-google-sheets-0.3.14/airbyte_source_google_sheets.egg-info/top_level.txt +0 -2
  12. airbyte-source-google-sheets-0.3.14/integration_tests/__init__.py +0 -0
  13. airbyte-source-google-sheets-0.3.14/integration_tests/acceptance.py +0 -14
  14. airbyte-source-google-sheets-0.3.14/integration_tests/configured_catalog.json +0 -106
  15. airbyte-source-google-sheets-0.3.14/integration_tests/invalid_config.json +0 -9
  16. airbyte-source-google-sheets-0.3.14/setup.cfg +0 -68
  17. airbyte-source-google-sheets-0.3.14/setup.py +0 -50
  18. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/__init__.py +0 -0
  19. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/client.py +0 -0
  20. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/helpers.py +0 -0
  21. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/models/__init__.py +0 -0
  22. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/models/spreadsheet.py +0 -0
  23. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/models/spreadsheet_values.py +0 -0
  24. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/run.py +0 -0
  25. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/source.py +0 -0
  26. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/spec.yaml +0 -0
  27. {airbyte-source-google-sheets-0.3.14 → airbyte_source_google_sheets-0.3.15.dev202402081036}/source_google_sheets/utils.py +0 -0
@@ -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.
@@ -0,0 +1,91 @@
1
+ # Google-Sheets source connector
2
+
3
+
4
+ This is the repository for the Google-Sheets source connector, written in Python.
5
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/google-sheets).
6
+
7
+ ## Local development
8
+
9
+ ### Prerequisites
10
+ * Python (~=3.9)
11
+ * Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
12
+
13
+
14
+ ### Installing the connector
15
+ From this connector directory, run:
16
+ ```bash
17
+ poetry install --with dev
18
+ ```
19
+
20
+
21
+ ### Create credentials
22
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/google-sheets)
23
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_sheets/spec.yaml` file.
24
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
25
+ See `sample_files/sample_config.json` for a sample config file.
26
+
27
+
28
+ ### Locally running the connector
29
+ ```
30
+ poetry run source-google-sheets spec
31
+ poetry run source-google-sheets check --config secrets/config.json
32
+ poetry run source-google-sheets discover --config secrets/config.json
33
+ poetry run source-google-sheets read --config secrets/config.json --catalog sample_files/configured_catalog.json
34
+ ```
35
+
36
+ ### Running unit tests
37
+ To run unit tests locally, from the connector directory run:
38
+ ```
39
+ poetry run pytest unit_tests
40
+ ```
41
+
42
+ ### Building the docker image
43
+ 1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
44
+ 2. Run the following command to build the docker image:
45
+ ```bash
46
+ airbyte-ci connectors --name=source-google-sheets build
47
+ ```
48
+
49
+ An image will be available on your host with the tag `airbyte/source-google-sheets:dev`.
50
+
51
+
52
+ ### Running as a docker container
53
+ Then run any of the connector commands as follows:
54
+ ```
55
+ docker run --rm airbyte/source-google-sheets:dev spec
56
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-sheets:dev check --config /secrets/config.json
57
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-sheets:dev discover --config /secrets/config.json
58
+ 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
59
+ ```
60
+
61
+ ### Running our CI test suite
62
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
63
+ ```bash
64
+ airbyte-ci connectors --name=source-google-sheets test
65
+ ```
66
+
67
+ ### Customizing acceptance Tests
68
+ 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.
69
+ 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.
70
+
71
+ ### Dependency Management
72
+ All of your dependencies should be managed via Poetry.
73
+ To add a new dependency, run:
74
+ ```bash
75
+ poetry add <package-name>
76
+ ```
77
+
78
+ Please commit the changes to `pyproject.toml` and `poetry.lock` files.
79
+
80
+ ## Publishing a new version of the connector
81
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
82
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-sheets test`
83
+ 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)):
84
+ - bump the `dockerImageTag` value in in `metadata.yaml`
85
+ - bump the `version` value in `pyproject.toml`
86
+ 3. Make sure the `metadata.yaml` content is up to date.
87
+ 4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/google-sheets.md`).
88
+ 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).
89
+ 6. Pat yourself on the back for being an awesome contributor.
90
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
91
+ 8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = [
3
+ "poetry-core>=1.0.0",
4
+ ]
5
+ build-backend = "poetry.core.masonry.api"
6
+
7
+ [tool.poetry]
8
+ version = "0.3.15.dev202402081036"
9
+ name = "airbyte-source-google-sheets"
10
+ description = "Source implementation for Google Sheets."
11
+ authors = [
12
+ "Airbyte <contact@airbyte.io>",
13
+ ]
14
+ license = "MIT"
15
+ readme = "README.md"
16
+ documentation = "https://docs.airbyte.com/integrations/sources/google-sheets"
17
+ homepage = "https://airbyte.com"
18
+ repository = "https://github.com/airbytehq/airbyte"
19
+ packages = [
20
+ { include = "source_google_sheets" },
21
+ ]
22
+
23
+ [tool.poetry.dependencies]
24
+ python = "^3.9"
25
+ requests = "==2.31.0"
26
+ backoff = "==2.2.1"
27
+ google-auth-httplib2 = "==0.2.0"
28
+ Unidecode = "==1.3.8"
29
+ pydantic = "==1.9.2"
30
+ airbyte-cdk = "==0.51.8"
31
+ google-api-python-client = "==2.114.0"
32
+ PyYAML = "==6.0.1"
33
+
34
+ [tool.poetry.scripts]
35
+ source-google-sheets = "source_google_sheets.run:run"
36
+
37
+ [tool.poetry.group.dev.dependencies]
38
+ requests-mock = "^1.9.3"
39
+ pytest-mock = "^3.6.1"
40
+ pytest = "^6.1"
@@ -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,67 +0,0 @@
1
- # Pypi Source
2
-
3
- This is the repository for the Pypi configuration based source connector.
4
- For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/pypi).
5
-
6
- ## Local development
7
-
8
- #### Create credentials
9
- **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/pypi)
10
- to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_pypi/spec.yaml` file.
11
- Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
12
- See `integration_tests/sample_config.json` for a sample config file.
13
-
14
- **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source pypi test creds`
15
- and place them into `secrets/config.json`.
16
-
17
- ### Locally running the connector docker image
18
-
19
-
20
- #### Build
21
- **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
22
- ```bash
23
- airbyte-ci connectors --name source-pypi build
24
- ```
25
-
26
- An image will be built with the tag `airbyte/source-pypi:dev`.
27
-
28
- **Via `docker build`:**
29
- ```bash
30
- docker build -t airbyte/source-pypi:dev .
31
- ```
32
-
33
- #### Run
34
- Then run any of the connector commands as follows:
35
- ```
36
- docker run --rm airbyte/source-pypi:dev spec
37
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev check --config /secrets/config.json
38
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev discover --config /secrets/config.json
39
- 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
40
- ```
41
-
42
- ## Testing
43
- You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
44
- ```bash
45
- airbyte-ci connectors --name=source-google-sheets test
46
- ```
47
-
48
- ### Customizing acceptance Tests
49
- 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.
50
- 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.
51
-
52
- ## Dependency Management
53
- 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.
54
- We split dependencies between two groups, dependencies that are:
55
- * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
56
- * required for the testing need to go to `TEST_REQUIREMENTS` list
57
-
58
- ### Publishing a new version of the connector
59
- You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
60
- 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-sheets test`
61
- 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).
62
- 3. Make sure the `metadata.yaml` content is up to date.
63
- 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-sheets.md`).
64
- 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).
65
- 6. Pat yourself on the back for being an awesome contributor.
66
- 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
67
-
@@ -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,23 +0,0 @@
1
- README.md
2
- setup.cfg
3
- setup.py
4
- airbyte_source_google_sheets.egg-info/PKG-INFO
5
- airbyte_source_google_sheets.egg-info/SOURCES.txt
6
- airbyte_source_google_sheets.egg-info/dependency_links.txt
7
- airbyte_source_google_sheets.egg-info/entry_points.txt
8
- airbyte_source_google_sheets.egg-info/requires.txt
9
- airbyte_source_google_sheets.egg-info/top_level.txt
10
- integration_tests/__init__.py
11
- integration_tests/acceptance.py
12
- integration_tests/configured_catalog.json
13
- integration_tests/invalid_config.json
14
- source_google_sheets/__init__.py
15
- source_google_sheets/client.py
16
- source_google_sheets/helpers.py
17
- source_google_sheets/run.py
18
- source_google_sheets/source.py
19
- source_google_sheets/spec.yaml
20
- source_google_sheets/utils.py
21
- source_google_sheets/models/__init__.py
22
- source_google_sheets/models/spreadsheet.py
23
- source_google_sheets/models/spreadsheet_values.py
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- source-google-sheets = source_google_sheets.run:run
@@ -1,13 +0,0 @@
1
- airbyte-cdk
2
- backoff
3
- requests
4
- google-auth-httplib2
5
- google-api-python-client
6
- PyYAML~=6.0
7
- pydantic~=1.9.2
8
- Unidecode
9
-
10
- [tests]
11
- requests-mock~=1.9.3
12
- pytest-mock~=3.6.1
13
- pytest~=6.1
@@ -1,2 +0,0 @@
1
- integration_tests
2
- source_google_sheets
@@ -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
- }
@@ -1,68 +0,0 @@
1
- [metadata]
2
- name = airbyte-source-google-sheets
3
- version = 0.3.14
4
- author = Airbyte
5
- author_email = contact@airbyte.io
6
- long_description = # Pypi Source
7
-
8
- This is the repository for the Pypi configuration based source connector.
9
- For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/pypi).
10
-
11
-
12
- **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/pypi)
13
- to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_pypi/spec.yaml` file.
14
- Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
15
- See `integration_tests/sample_config.json` for a sample config file.
16
-
17
- **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source pypi test creds`
18
- and place them into `secrets/config.json`.
19
-
20
-
21
-
22
- **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
23
- ```bash
24
- airbyte-ci connectors --name source-pypi build
25
- ```
26
-
27
- An image will be built with the tag `airbyte/source-pypi:dev`.
28
-
29
- **Via `docker build`:**
30
- ```bash
31
- docker build -t airbyte/source-pypi:dev .
32
- ```
33
-
34
- Then run any of the connector commands as follows:
35
- ```
36
- docker run --rm airbyte/source-pypi:dev spec
37
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev check --config /secrets/config.json
38
- docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-pypi:dev discover --config /secrets/config.json
39
- 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
40
- ```
41
-
42
- You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
43
- ```bash
44
- airbyte-ci connectors --name=source-google-sheets test
45
- ```
46
-
47
- 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.
48
- 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.
49
-
50
- 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.
51
- We split dependencies between two groups, dependencies that are:
52
- * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
53
- * required for the testing need to go to `TEST_REQUIREMENTS` list
54
-
55
- You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
56
- 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-sheets test`
57
- 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).
58
- 3. Make sure the `metadata.yaml` content is up to date.
59
- 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-sheets.md`).
60
- 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).
61
- 6. Pat yourself on the back for being an awesome contributor.
62
- 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
63
- long_description_content_type = text/markdown
64
-
65
- [egg_info]
66
- tag_build =
67
- tag_date = 0
68
-
@@ -1,50 +0,0 @@
1
- #
2
- # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
- #
4
-
5
-
6
- from setuptools import find_packages, setup
7
-
8
- MAIN_REQUIREMENTS = [
9
- "airbyte-cdk",
10
- "backoff",
11
- "requests",
12
- "google-auth-httplib2",
13
- "google-api-python-client",
14
- "PyYAML~=6.0",
15
- "pydantic~=1.9.2",
16
- "Unidecode",
17
- ]
18
-
19
- TEST_REQUIREMENTS = [
20
- "requests-mock~=1.9.3",
21
- "pytest-mock~=3.6.1",
22
- "pytest~=6.1",
23
- ]
24
-
25
- setup(
26
- description="Source implementation for Google Sheets.",
27
- packages=find_packages(),
28
- install_requires=MAIN_REQUIREMENTS,
29
- package_data={
30
- "": [
31
- # Include yaml files in the package (if any)
32
- "*.yml",
33
- "*.yaml",
34
- # Include all json files in the package, up to 4 levels deep
35
- "*.json",
36
- "*/*.json",
37
- "*/*/*.json",
38
- "*/*/*/*.json",
39
- "*/*/*/*/*.json",
40
- ]
41
- },
42
- extras_require={
43
- "tests": TEST_REQUIREMENTS,
44
- },
45
- entry_points={
46
- "console_scripts": [
47
- "source-google-sheets=source_google_sheets.run:run",
48
- ],
49
- },
50
- )