<reponame>slamer59/dagster-mlflow<gh_stars>1-10
import pysftp

hostname = '127.0.0.1'
username = 'mlflow_user'
password = '<PASSWORD>'
with pysftp.Connection(hostname, username=username, password=password) as sftp:
    print('ok')
    with sftp.cd(''):             # temporarily chdir to public
        sftp.put('/mlflow/mlflow-artifacts')  # upload file to public/ on remote
        # sftp.get('remote_file')         # get a remote file
import pysftp

hostname = '127.0.0.1'
username = 'mlflow_user'
password = '<PASSWORD>'
with pysftp.Connection(hostname, username=username, password=password) as sftp:
    print('ok')
    with sftp.cd(''):             # temporarily chdir to public
        sftp.put('/mlflow/mlflow-artifacts')  # upload file to public/ on remote
        # sftp.get('remote_file')         # get a remote file
# temporarily chdir to public # upload file to public/ on remote # sftp.get('remote_file')         # get a remote file