Skip to main content

Initial connector code for pensieve

Project description

# FTPS Upload
Prepared by: Brian Cohn

# Installation
pip install -r /path/to/requirements.txt

# Example usage:

### Bring in dependencies and set up user/pass
import ftplib
from helper_functions import *
user = 'brian'
password = open(

ftp = connect()
You need to define a file called `password.txt` and include only one line with your password in plaintext. Do not commit this file, use a .gitignore.

You can view files on the server's home folder with `ftp.retrlines('LIST home')`.

### Upload big file
input_filepath = "/Applications/"
destination_filepath = "home/brian_scratch/"
tx_with_progress(ftp, input_filepath, destination_filepath,
### Download that file back to local
filepath_pensieve = "home/brian_scratch/"
filepath_local = "~/Downloads/"
receive(ftp, filepath_pensieve, filepath_local,
### Close out the connection
ftp = None

# Devnotes
python sdist upload -r pypitest
python sdist upload -r pypi
Make sure the `~/.pypirc` file has the correct info. See [Link](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ftpsconnector-0.1.6.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page