1
0
mirror of synced 2025-12-23 21:03:15 -05:00

Add a walkthrough of building a custom Python connector (#36743)

Co-authored-by: Natik Gadzhi <natik@respawn.io>
This commit is contained in:
Alexandre Girard
2024-04-09 00:08:25 -04:00
committed by GitHub
parent 884faceb43
commit 87f051c3a9
30 changed files with 1481 additions and 1317 deletions

View File

@@ -26,7 +26,7 @@ See the [catalog guide](https://docs.airbyte.com/understanding-airbyte/beginners
Let's define the stream schema in `source-exchange-rates-tutorial/source_exchange_rates_tutorial/schemas/rates.json`
You can download the JSON file describing the output schema with all currencies [here](../../tutorials/cdk-tutorial-python-http/exchange_rates_schema.json) for convenience and place it in `schemas/`.
You can download the JSON file describing the output schema with all currencies [here](./exchange_rates_schema.json) for convenience and place it in `schemas/`.
```bash
curl https://raw.githubusercontent.com/airbytehq/airbyte/master/docs/connector-development/tutorials/cdk-tutorial-python-http/exchange_rates_schema.json > source_exchange_rates_tutorial/schemas/rates.json

View File

@@ -35,7 +35,7 @@ airbyte-ci connectors --use-remote-secrets=false --name source-exchange-rates-tu
## Next steps:
Next, we'll add the connector to the [Airbyte platform](https://docs.airbyte.com/connector-development/tutorials/cdk-tutorial-python-http/use-connector-in-airbyte).
Next, we'll add the connector to the [Airbyte platform](https://docs.airbyte.com/operator-guides/using-custom-connectors).
## Read more:

View File

@@ -0,0 +1,119 @@
{
"type": "object",
"required": ["base", "date", "rates"],
"properties": {
"access_key": {
"type": "string"
},
"base": {
"type": "string"
},
"date": {
"type": "string"
},
"rates": {
"type": "object",
"properties": {
"CAD": {
"type": ["null", "number"]
},
"HKD": {
"type": ["null", "number"]
},
"ISK": {
"type": ["null", "number"]
},
"PHP": {
"type": ["null", "number"]
},
"DKK": {
"type": ["null", "number"]
},
"HUF": {
"type": ["null", "number"]
},
"CZK": {
"type": ["null", "number"]
},
"GBP": {
"type": ["null", "number"]
},
"RON": {
"type": ["null", "number"]
},
"SEK": {
"type": ["null", "number"]
},
"IDR": {
"type": ["null", "number"]
},
"INR": {
"type": ["null", "number"]
},
"BRL": {
"type": ["null", "number"]
},
"RUB": {
"type": ["null", "number"]
},
"HRK": {
"type": ["null", "number"]
},
"JPY": {
"type": ["null", "number"]
},
"THB": {
"type": ["null", "number"]
},
"CHF": {
"type": ["null", "number"]
},
"EUR": {
"type": ["null", "number"]
},
"MYR": {
"type": ["null", "number"]
},
"BGN": {
"type": ["null", "number"]
},
"TRY": {
"type": ["null", "number"]
},
"CNY": {
"type": ["null", "number"]
},
"NOK": {
"type": ["null", "number"]
},
"NZD": {
"type": ["null", "number"]
},
"ZAR": {
"type": ["null", "number"]
},
"USD": {
"type": ["null", "number"]
},
"MXN": {
"type": ["null", "number"]
},
"SGD": {
"type": ["null", "number"]
},
"AUD": {
"type": ["null", "number"]
},
"ILS": {
"type": ["null", "number"]
},
"KRW": {
"type": ["null", "number"]
},
"PLN": {
"type": ["null", "number"]
}
}
}
}
}