You can handle files on an SFTP server in Peliqan using the SFTP connector. Add an SFTP connection under “Connections” first (host, port, username, password etc.). Next, write a Python script in Peliqan to e.g. import data from CSV or JSON files. In your Python script you can read the data and insert into a table in your data warehouse.
Reading data from SFTP
Example script to read a JSON file from an SFTP server:
Writing data to SFTP
Note: writing data to SFTP is not done through the pq function.
Example script to write a CSV file to an SFTP server:
SFTP Data Sync: CSV files to tables in the data warehouse
You can use the app template “SFT CSV Data Sync” in Peliqan, to set up automated data imports from CSV files on an SFTP server, into tables in the data warehouse.
In Peliqan, go to the Build section, find the template and click on “Use template”:
Next, run the app in Interactive Mode to configure it.