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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fileshiftlib-0.1.12.tar.gz.
File metadata
- Download URL: fileshiftlib-0.1.12.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9ddf3a5858e25151f2bf6c19f271b73a3a1385527a95e18f3c66bb80a70bd6
|
|
| MD5 |
be15493f26c519fb5cc42c7b440ea57d
|
|
| BLAKE2b-256 |
eef0ade7edfd86ca8cf313f2cc7ef403d82dfbed46d43f65be1b6e2c1cfe1ad3
|
File details
Details for the file fileshiftlib-0.1.12-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: fileshiftlib-0.1.12-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 265.8 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e230fe1f60fd2743e5014d07bd34e0352d7fa11982477cb1a3df04cae9e0f9
|
|
| MD5 |
f039ac9c247ae3251a67d7a332f7b2dd
|
|
| BLAKE2b-256 |
914d34d370ec855becd5cab3d86b0d559dc5c53e7fd27cddda471c4579cc08ce
|
File details
Details for the file fileshiftlib-0.1.12-cp310-abi3-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: fileshiftlib-0.1.12-cp310-abi3-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.10+, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4602e7fd58faa93f0b676575e5454990f851777629aa24133c401159413a727
|
|
| MD5 |
7a1954cece36ad3cf20c183e52d4e1c0
|
|
| BLAKE2b-256 |
aecf439a0202399ddedbbb549838d93675128a7a85cd14581f8d2bcfcbbc2512
|
File details
Details for the file fileshiftlib-0.1.12-cp310-abi3-manylinux_2_39_aarch64.whl.
File metadata
- Download URL: fileshiftlib-0.1.12-cp310-abi3-manylinux_2_39_aarch64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.10+, manylinux: glibc 2.39+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa70fe6e589deac42976716bbd7d9f38f1f590839ce36c61f7610f044f0cb94
|
|
| MD5 |
7586cfb5340296f557b386ac0d6d8d8a
|
|
| BLAKE2b-256 |
f7124a35a9b0519638b6e8c822bbbf5228df883366a3862809e6f16432fca3d3
|
File details
Details for the file fileshiftlib-0.1.12-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: fileshiftlib-0.1.12-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 343.2 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8de407532a2c8859a27cc27d8b39489f1f17e036d5021a9cb5a63bd9ed56794
|
|
| MD5 |
ce2c7f9097046529610dd506c95beb43
|
|
| BLAKE2b-256 |
d737343a56ac791ed57eaa32db8f06b298f2eed021e5ca16f4bc36d07ad86575
|