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
For Declarative Sources defined in YAML, the installation process will is to simply download the yaml file from the `connectors.airbyte.com` public URLs, and to run them directly as YAML.
26
+
27
+
Declarative sources have the fastest download times, due to the simplicity and each of install.
28
+
29
+
In some cases, you may get better stability by using `docker_image=True` in `get_source()`/`get_destination()`, due to the fact that all dependencies are locked within the docker image.
30
+
31
+
### Python Installation
32
+
33
+
Generally, when Python-based installation is possible, it will be performed automatically given a Python-based connector name.
34
+
35
+
In some cases, you may get better stability by using `docker_image=True` in `get_source()`/`get_destination()`, due to the fact that all dependencies are locked within the docker image.
36
+
37
+
#### Installing Connectors with `uv`
38
+
39
+
By default, beginning with version `0.29.0`, PyAirbyte defaults to [`uv`](https://docs.astral.sh/uv) instead of `pip` for Python connector installation. Compared with `pip`, `uv` is much faster. It also provides the unique ability of specifying different versions of Python than PyAirbyte is using, and even Python versions which are not already pre-installed on the local workstation.
40
+
41
+
If you prefer to fall back to the prior `pip`-based installation methods, set the env var `AIRBYTE_NO_UV=true`.
42
+
43
+
#### Installing Connectors With a Custom Python Version
44
+
45
+
In both `get_source()` and `get_destination()`, you can provide a `use_python` input arg that is equal to the desired version of Python that you with to use for the given connector. This can be helpful if an older connector doesn't support the version of Python that you are using for PyAirbyte itself.
46
+
47
+
For example, assuming PyAirbyte is running on Python 3.12, you can install a connector using Python 3.10.13 with the following code snippet:
48
+
49
+
```py
50
+
import airbyte as ab
51
+
52
+
source = ab.get_source(
53
+
"source-faker",
54
+
use_python="3.10.17",
55
+
)
56
+
```
57
+
58
+
### Installing Connectors with Docker
59
+
60
+
For any connector (`get_source()`/`get_destination()`), you can specify the `docker_image` argument to `True` to prefer Docker over other default installation methods or `docker_image=MY_IMAGE` to leverage a specific docker image tag for the execution.
61
+
21
62
## Contributing
22
63
23
64
To learn how you can contribute to PyAirbyte, please see our [PyAirbyte Contributors Guide](./docs/CONTRIBUTING.md).
0 commit comments