datacoco-ftp_tools
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
Installation
datacoco-ftp_tools requires Python 3.6+
python3 -m venv venv source venv/bin/activate python -m pip install datacoco_ftp_tools
Quickstart
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.conn()
ftp.curr_dir() # outputs '/web_analytics'
ftp.call_dir('Monitoring') # outputs '/web_analytics/Monitoring'
ftp.write_file('test.txt', 'test')
ftp.quit()
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.conn()
sftp.curr_dir() outputs '/web_analytics'
sftp.call_dir('Monitoring') outputs '/web_analytics/Monitoring'
sftp.write_file('test.txt', 'test')
sftp.quit()
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.conn()
sftp.call_dir('Monitoring') outputs '/web_analytics/Monitoring'
sftp.write_file(schema[table], remote_path=path)
sftp.quit()
Development
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
Testing
pip install -r requirements-dev.txt
To run the testing suite, simply run the command: tox or python -m unittest discover tests
Contributing
Contributions to datacoco_ftp_tools are welcome!
Please reference guidelines to help with setting up your development environment here.
Metadata
Release files for datacoco-ftp-tools 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datacoco-ftp_tools-0.1.3.tar.gz | 4.2 kB | Without provenance | Details for datacoco-ftp_tools-0.1.3.tar.gz |
Release files / datacoco-ftp_tools-0.1.3.tar.gz
| Download URL | datacoco-ftp_tools-0.1.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2794c5657e16ba6581044fdaffa1306de29654c608ce57830c439556505307f6
|
|
BLAKE2b-256 checksum How to use checksums |
0b608d570b1a9823b585e34bed4e727a7abe7260735e78c7daf3048b673cec54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
|
Security for datacoco-ftp-tools 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.