Simple way to handle sftp with python. Provides the ability to upload and download directories.
Installation
install the latest stable version using pip
$ pip install simple-sftp
Usage
from simple_sftp.client import Client
ip = < FTP SERVER IP >
user = < FTP LOGIN USER >
password = < FTP LOGIN PASSWORD >
PORT = < FTP CONNECT PORT > # not required. default 22
c = Client(ip, user, password)
Functions
upload
A function that uploads a specific directories to ftp server.
remote_path = < FTP SERVER REMOTE DIR PATH >
local_path = < LOCAL DIR PATH >
upload(remote_path, local_path)
download
A function that downloads a specific directories to ftp server.
remote_path = < FTP REMOTE DIR PATH >
local_path = < LOCAL DIR PATH >
download(remote_path, local_path)
Use console scripts
simple-sftp-cli --ip < FTP SERVER IP > --user < FTP LOGIN USER > --pwd < FTP LOGIN PASSWORD > --local < LOCAL_DIR_PATH > --remote < FTP SERVER REMOTE DIR PATH >
Example
simple-sftp-cli --ip 123.456.789.123 --user user --pwd 1234 --local /home/user/abc --remote /home/my/abc
Third Party Libraries and Dependencies
Metadata
Release files for simple-sftp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_sftp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for simple_sftp-0.1.3-py3-none-any.whl |
Release files / simple_sftp-0.1.3-py3-none-any.whl
| Download URL | simple_sftp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d004cbfc8ed8cb0b90095e141cd52170e8f17907fa984df7701f810ddf518a6
|
|
BLAKE2b-256 checksum How to use checksums |
e800cb6fc565ec5140a3211c8c86d359cd35b2fdf52572c426d028434ca4af1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for simple-sftp 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.