Skip to main content

Data common code for ftp tools by Equinox

Project description

PyPI Version Documentation Status Code Quality Grade Coverage Code of Conduct

datacoco-ftp_tools provides basic interaction for FTP (File-Transfer-Protocol) Standard Internet protocol for transmitting files between computers on the Internet over TCP/IP connections This module has FTP and SFTP support


datacoco-ftp_tools requires Python 3.6+

python3 -m venv venv
source venv/bin/activate
python -m pip install datacoco_ftp_tools


SFTP and write file to remote server using FTP

from datacoco_ftp_tools import FTPInteraction

# Sample Code for FTP Interaction

ftp = FTPInteraction('ftp',ftp_site,ftp_user,ftp_password)


ftp.curr_dir() # outputs '/web_analytics'

ftp.call_dir('Monitoring') # outputs '/web_analytics/Monitoring'

ftp.write_file('test.txt', 'test')


SFTP and write file to remote server using SFTP

from datacoco_ftp_tools import FTPInteraction

# Sample Code for SFTP Interaction

sftp = FTPInteraction('sftp',sftp_site,sftp_user,sftp_password)


sftp.curr_dir() outputs '/web_analytics'

sftp.call_dir('Monitoring') outputs '/web_analytics/Monitoring'

sftp.write_file('test.txt', 'test')


SFTP and write file to remote server using SFTP

from datacoco_ftp_tools import SFTPInteraction

# Sample Code for SFTP Interaction

sftp = SFTPInteraction(sftp_site, user, None, key_file='key.ppk')


sftp.call_dir('Monitoring') outputs '/web_analytics/Monitoring'

sftp.write_file(schema[table], remote_path=path)



Getting Started

It is recommended to use the steps below to set up a virtual environment for development:

python3 -m venv <virtual env name>
source <virtual env name>/bin/activate
pip install -r requirements.txt


pip install -r requirements-dev.txt

To run the testing suite, simply run the command: tox or python -m unittest discover tests


Contributions to datacoco_ftp_tools are welcome!

Please reference guidelines to help with setting up your development environment here.

Project details

Download files

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

Files for datacoco-ftp-tools, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size datacoco-ftp_tools-0.1.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page