Skip to main content

SFTP client powered by Rust and PyO3.

Project description

fileshiftlib

SFTP client for Python.

Installation

pip install fileshiftlib

Usage

import fileshiftlib

# Initialise SFTP client
sftp = fileshiftlib.SFTP(
    host="sftp.example.com",
    username="user",
    password="password",
    port=22
)
# Check connection status
if sftp.is_connected():
    print("Connected!")
# List directory contents
files = sftp.list_dir(".")
print(files)
# Change directory
sftp.change_dir("/remote/path")
# Upload a file
sftp.upload_file("local_file.txt", "remote_file.txt")
# Download a file
sftp.download_file("remote_file.txt", "local_copy.txt")
# Delete a file
sftp.delete_file("remote_file.txt")
# Reconnect
sftp.reconnect()

Version

Recommended way to read the installed package version:

from importlib.metadata import version

print(version("fileshiftlib"))

Convenience attribute (also available):

import fileshiftlib

print(fileshiftlib.__version__)

License

BSD-3-Clause License (see LICENSE)

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

fileshiftlib-0.1.8.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

fileshiftlib-0.1.8-cp310-abi3-manylinux_2_38_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.38+ x86-64

File details

Details for the file fileshiftlib-0.1.8.tar.gz.

File metadata

  • Download URL: fileshiftlib-0.1.8.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for fileshiftlib-0.1.8.tar.gz
Algorithm Hash digest
SHA256 dece2826fcc4992e6d6b4e7971906c7fdf637294984348c3ecbe594d14d2b733
MD5 927cdc2506d9baaa046717e2b915c4e1
BLAKE2b-256 d2a4ab327d5adc5c21dcfb871a2df388faea77b7a499e72a3c47a23e2c1a091d

See more details on using hashes here.

File details

Details for the file fileshiftlib-0.1.8-cp310-abi3-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for fileshiftlib-0.1.8-cp310-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 e8c2949b91b6ddfdd53dd0f8b47eb2efbb6015ade7e9452b3067fb1212065e94
MD5 6b4eefefd7c5c3ca9be908e58c95e11d
BLAKE2b-256 c6a1aa1f853939ca2a98486619d2ef4ac0e3122438176c0c9bc1265a46e5f8e4

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