old_contents: from geopy.geocoders import GoogleV3
  
  import csv
  import logging
  import os
  import paramiko
  import re
  import time
  
  from django.core.exceptions import ObjectDoesNotExist
  from django.core.management.base import NoArgsCommand
  from django.conf import settings
  
  from portal.models import Location
  
  class Command(NoArgsCommand):
      """
      Import sites from COPA exports.
        - Transfer latest report from SFTP
      """
  
      def handle(self, *args, **options):
          pass
new_contents: from geopy.geocoders import GoogleV3
  
  import csv
  import logging
  import os
  import paramiko
  import re
  import time
  
  from django.core.exceptions import ObjectDoesNotExist
  from django.core.management.base import NoArgsCommand
  from django.conf import settings
  
  from portal.models import Location
  
  class Command(NoArgsCommand):
      """
      Import sites from COPA exports.
        - Transfer latest report from SFTP
      """
  
      def handle(self, *args, **options):
          pass
  
      def download_export(self):
  
          host = settings.COPA_SFTP_HOST
          port = settings.COPA_SFTP_PORT
          key_path = settings.COPA_SFTP_KEY
          username = settings.COPA_SFTP_USERNAME
          key = paramiko.RSAKey.from_private_key_file(key_path)
  
          transport = paramiko.Transport((host, port))
          transport.connect(username=username, pkey=key)
  
          sftp = paramiko.SFTPClient.from_transport(transport)
  
          uploads = sftp.listdir('/')
  
          sftp.close()
          transport.close()
  
  
  
subject: Add SFTP link