airbyte-source-kyriba 0.1.0__py3-none-any.whl → 0.1.3__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.
- airbyte_source_kyriba-0.1.3.dist-info/METADATA +110 -0
- airbyte_source_kyriba-0.1.3.dist-info/RECORD +15 -0
- {airbyte_source_kyriba-0.1.0.dist-info → airbyte_source_kyriba-0.1.3.dist-info}/WHEEL +1 -2
- airbyte_source_kyriba-0.1.3.dist-info/entry_points.txt +3 -0
- source_kyriba/schemas/accounts.json +174 -289
- source_kyriba/schemas/bank_balances_eod.json +20 -38
- source_kyriba/schemas/bank_balances_intraday.json +21 -32
- source_kyriba/schemas/cash_balances_eod.json +36 -58
- source_kyriba/schemas/cash_balances_intraday.json +29 -57
- source_kyriba/schemas/cash_flows.json +25 -47
- source_kyriba/schemas/shared/_definitions.json +146 -333
- source_kyriba/source.py +9 -3
- source_kyriba/spec.json +9 -5
- airbyte_source_kyriba-0.1.0.dist-info/METADATA +0 -99
- airbyte_source_kyriba-0.1.0.dist-info/RECORD +0 -31
- airbyte_source_kyriba-0.1.0.dist-info/entry_points.txt +0 -2
- airbyte_source_kyriba-0.1.0.dist-info/top_level.txt +0 -3
- integration_tests/__init__.py +0 -3
- integration_tests/abnormal_state.json +0 -1
- integration_tests/acceptance.py +0 -16
- integration_tests/configured_catalog.json +0 -74
- integration_tests/invalid_config.json +0 -7
- integration_tests/sample_config.json +0 -7
- integration_tests/sample_state.json +0 -1
- unit_tests/__init__.py +0 -3
- unit_tests/test_account_sub_stream.py +0 -37
- unit_tests/test_bank_balances_stream.py +0 -77
- unit_tests/test_cash_balances_stream.py +0 -77
- unit_tests/test_cash_flows.py +0 -100
- unit_tests/test_incremental_streams.py +0 -72
- unit_tests/test_source.py +0 -35
- unit_tests/test_streams.py +0 -121
@@ -0,0 +1,110 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: airbyte-source-kyriba
|
3
|
+
Version: 0.1.3
|
4
|
+
Summary: Source implementation for Kyriba.
|
5
|
+
Home-page: https://airbyte.com
|
6
|
+
License: MIT
|
7
|
+
Author: Airbyte
|
8
|
+
Author-email: contact@airbyte.io
|
9
|
+
Requires-Python: >=3.9,<3.12
|
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
|
+
Requires-Dist: airbyte-cdk (==0.80.0)
|
16
|
+
Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/kyriba
|
17
|
+
Project-URL: Repository, https://github.com/airbytehq/airbyte
|
18
|
+
Description-Content-Type: text/markdown
|
19
|
+
|
20
|
+
# Kyriba source connector
|
21
|
+
|
22
|
+
|
23
|
+
This is the repository for the Kyriba source connector, written in Python.
|
24
|
+
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/kyriba).
|
25
|
+
|
26
|
+
## Local development
|
27
|
+
|
28
|
+
### Prerequisites
|
29
|
+
* Python (~=3.9)
|
30
|
+
* Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
|
31
|
+
|
32
|
+
|
33
|
+
### Installing the connector
|
34
|
+
From this connector directory, run:
|
35
|
+
```bash
|
36
|
+
poetry install --with dev
|
37
|
+
```
|
38
|
+
|
39
|
+
|
40
|
+
### Create credentials
|
41
|
+
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/kyriba)
|
42
|
+
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_kyriba/spec.yaml` file.
|
43
|
+
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
|
44
|
+
See `sample_files/sample_config.json` for a sample config file.
|
45
|
+
|
46
|
+
|
47
|
+
### Locally running the connector
|
48
|
+
```
|
49
|
+
poetry run source-kyriba spec
|
50
|
+
poetry run source-kyriba check --config secrets/config.json
|
51
|
+
poetry run source-kyriba discover --config secrets/config.json
|
52
|
+
poetry run source-kyriba read --config secrets/config.json --catalog sample_files/configured_catalog.json
|
53
|
+
```
|
54
|
+
|
55
|
+
### Running unit tests
|
56
|
+
To run unit tests locally, from the connector directory run:
|
57
|
+
```
|
58
|
+
poetry run pytest unit_tests
|
59
|
+
```
|
60
|
+
|
61
|
+
### Building the docker image
|
62
|
+
1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
|
63
|
+
2. Run the following command to build the docker image:
|
64
|
+
```bash
|
65
|
+
airbyte-ci connectors --name=source-kyriba build
|
66
|
+
```
|
67
|
+
|
68
|
+
An image will be available on your host with the tag `airbyte/source-kyriba:dev`.
|
69
|
+
|
70
|
+
|
71
|
+
### Running as a docker container
|
72
|
+
Then run any of the connector commands as follows:
|
73
|
+
```
|
74
|
+
docker run --rm airbyte/source-kyriba:dev spec
|
75
|
+
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-kyriba:dev check --config /secrets/config.json
|
76
|
+
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-kyriba:dev discover --config /secrets/config.json
|
77
|
+
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-kyriba:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
|
78
|
+
```
|
79
|
+
|
80
|
+
### Running our CI test suite
|
81
|
+
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
|
82
|
+
```bash
|
83
|
+
airbyte-ci connectors --name=source-kyriba test
|
84
|
+
```
|
85
|
+
|
86
|
+
### Customizing acceptance Tests
|
87
|
+
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.
|
88
|
+
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.
|
89
|
+
|
90
|
+
### Dependency Management
|
91
|
+
All of your dependencies should be managed via Poetry.
|
92
|
+
To add a new dependency, run:
|
93
|
+
```bash
|
94
|
+
poetry add <package-name>
|
95
|
+
```
|
96
|
+
|
97
|
+
Please commit the changes to `pyproject.toml` and `poetry.lock` files.
|
98
|
+
|
99
|
+
## Publishing a new version of the connector
|
100
|
+
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
|
101
|
+
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-kyriba test`
|
102
|
+
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)):
|
103
|
+
- bump the `dockerImageTag` value in in `metadata.yaml`
|
104
|
+
- bump the `version` value in `pyproject.toml`
|
105
|
+
3. Make sure the `metadata.yaml` content is up to date.
|
106
|
+
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/kyriba.md`).
|
107
|
+
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).
|
108
|
+
6. Pat yourself on the back for being an awesome contributor.
|
109
|
+
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
|
110
|
+
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,15 @@
|
|
1
|
+
source_kyriba/__init__.py,sha256=jOGOJsttHTq3d1vzU09nqrtOjYfr7jSxNDPpAh6jsdo,124
|
2
|
+
source_kyriba/run.py,sha256=PmVtNsb_MrljQOzs6RfRq1Whxag5nwOc8_bxSTsVrTs,230
|
3
|
+
source_kyriba/schemas/accounts.json,sha256=9ewVDlwluqDqmxfWfN2mqjyt9nsJbSs2N9xyR9_IwLQ,10240
|
4
|
+
source_kyriba/schemas/bank_balances_eod.json,sha256=N_ynjhU51rB-DbkSmqLmWkBTcJSKuqg5BxIiTffJEYk,1524
|
5
|
+
source_kyriba/schemas/bank_balances_intraday.json,sha256=Ko2ni379SkkoRdRGxF6FG-J0SGXWmUxHkJKRGvkZbqI,1516
|
6
|
+
source_kyriba/schemas/cash_balances_eod.json,sha256=1xOIGftpT_JHqMuVihk5jnNRqufdghpVdUMehaifsQY,2541
|
7
|
+
source_kyriba/schemas/cash_balances_intraday.json,sha256=dJlEC5-ZWxDKoktuI0PR8P1mDJZ4M_rlkxjSdFi6L9o,2076
|
8
|
+
source_kyriba/schemas/cash_flows.json,sha256=QER26bLwPZsNVcBM1jAlvnIYbZIwSB8QAoQlOfD6cWQ,2589
|
9
|
+
source_kyriba/schemas/shared/_definitions.json,sha256=QdyZ05GtnOEp6OHTojSAuDLNyo8Egv_0oYROjnCldCk,26897
|
10
|
+
source_kyriba/source.py,sha256=saS3p9Llnj9scA7e9Y6eNemV07SOc6H6zwAQBwikhtY,11774
|
11
|
+
source_kyriba/spec.json,sha256=DkLbDtCCWPILFVrctJVLtid1aMJKAT6dRV7VMLjGFJA,1513
|
12
|
+
airbyte_source_kyriba-0.1.3.dist-info/METADATA,sha256=icp_eCtfdk37904XZ6FNqp3W_6p-CKoBdLH6pmvZjYo,5200
|
13
|
+
airbyte_source_kyriba-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
14
|
+
airbyte_source_kyriba-0.1.3.dist-info/entry_points.txt,sha256=o1Bvk3Ls9e_mDpFnYlRCQ9mEgeBexoUjOoCt5hElma8,55
|
15
|
+
airbyte_source_kyriba-0.1.3.dist-info/RECORD,,
|