aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/ice.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/ice.py b/python/ice.py
new file mode 100644
index 00000000..0d36c5fb
--- /dev/null
+++ b/python/ice.py
@@ -0,0 +1,16 @@
+try:
+ from serenitas.utils.env import DAILY_DIR
+except KeyError:
+ sys.exit("Please set 'DAILY_DIR' in the environment")
+
+from serenitas.utils.remote import SftpClient
+
+
+def download_files():
+ sftp = SftpClient.from_creds("ice")
+ dst = DAILY_DIR / "ICE_reports"
+ sftp.download_files("/", dst)
+
+
+if __name__ == "__main__":
+ download_files()