Managing Project Dependencies
Usually, your connector's code will need to import additional Python libraries. To ensure the correct libraries are installed before we run your code in Fivetran, you must include a standard pip requirements.txt file in the root directory of your connector project.
In your requirements.txt file, you must list all the Python libraries your connector uses. You can also define the required versions of the libraries used. The configuration example provides an example.
You can use PyPI and Git sources to install packages. For example:
pandas
git+https://github.com/oracle/python-oracledb.git@main#egg=oracledb
You can also quickly install all the needed libraries when setting up your environment using the following command:
pip install -r requirements.txt
See our Technical reference - Pre-installed packages documentation for a full list of pre-installed packages. Do not declare them in your requirements.txt to avoid dependency conflicts.