Skip to main content

Simple way to handle sftp with python

Project description

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_sftp-0.1.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_sftp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: simple_sftp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for simple_sftp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d004cbfc8ed8cb0b90095e141cd52170e8f17907fa984df7701f810ddf518a6
MD5 ea4dcf0d82f94c00cb5b2972ad81e964
BLAKE2b-256 e800cb6fc565ec5140a3211c8c86d359cd35b2fdf52572c426d028434ca4af1b

See more details on using hashes here.

Supported by

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