You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Util for generating catalog schema from a connector `read` command output.
3
4
4
5
## Prerequisites
5
6
6
7
To use this tool you first need to:
7
8
8
9
- Define all your streams.
9
-
- Create schema files for each stream, containing only `{}` (valid json files). See [this doc section](https://docs.airbyte.com/connector-development/cdk-python/schemas#static-schemas) for instructions on how to name these files.
10
-
- Build you container docker image.
10
+
- Create schema files for each stream, containing only `{}` (valid json files). See
Going through all the steps above should enable you to run the `read` command of your connector using the docker image, which is the input for this tool.
14
+
Going through all the steps above should enable you to run the `read` command of your connector
15
+
using the docker image, which is the input for this tool.
13
16
14
17
## Usage
15
18
16
19
First install the tools in it's own virtual environment:
17
20
18
21
```bash
19
22
$ cd tools/schema_generator # assumes you are starting from the root of the Airbyte project.
20
-
$ python -m venv .venv # Create a virtual environment in the .venv directory
21
-
$ source .venv/bin/activate # enable the venv
22
-
$ pip install -r requirements.txt
23
+
$ poetry install
23
24
```
24
25
25
26
To use a connector's `run` command we first need a `ConfiguredAirbyteCatalog`:
@@ -28,11 +29,15 @@ To use a connector's `run` command we first need a `ConfiguredAirbyteCatalog`:
28
29
$ ../../airbyte-integrations/connectors/<your-connector># you need to use the tool at the root folder of a connector
0 commit comments