Shuft
A small command line tool for uploading and downloading files and folders to and from a sftp server. Uses asyncssh and is pip installable for easy use in automated tasks.
Upload a file or folder to a sftp server.
Requires Python 3.5 or newer.
Getting started
In your virtual python environment of choice, install the shuft pip package.
python pip install shuft
Basic usage.
python shuft --command upload --host files.mydomain.com --localpath my_folder --remotepath /uploads/
Run with ‘’–help’ for addtional options.
shuft --help
usage: __main__.py [-h] --command {upload} --host HOST [--localpath LOCALPATH]
[--remotepath REMOTEPATH] [--port PORT]
[--known_hosts KNOWN_HOSTS] [--username USERNAME]
[--password PASSWORD] [--client_keys CLIENT_KEYS]
[--compress]
Upload directories or files
optional arguments:
-h, --help show this help message and exit
--command {upload} the task to perform.
--host HOST the remote host to connect to.
--localpath LOCALPATH
path to the local folder or file.
--remotepath REMOTEPATH
path to the remote folder or file.
--port PORT port number on the remote (defaults to 22).
--known_hosts KNOWN_HOSTS
list of known hosts, if set to None accepts any.
--username USERNAME username for logging in on the remote, defaults to the
current user
--password PASSWORD password for logging in on the remote
--client_keys CLIENT_KEYS
list of client private key(s)
--compress whether to compress target folder or file before
transmission. Requires that the host accepts ssh
connections and has tar available
Metadata
Release files for shuft 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shuft-1.1.1.tar.gz | 122.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shuft-1.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 128.2 kB
Release files / shuft-1.1.1.tar.gz
| Download URL | shuft-1.1.1.tar.gz |
|---|---|
| Size | 122.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00aeed8dd4e6cc45727240df19e8c88c5ce2b42b900fc37607ff47f8bbda09f5
|
|
BLAKE2b-256 checksum How to use checksums |
2eb1dbbc8dab9f9d12834000c129e4d0cab31d5e2c1750b12ce0c23a228b23dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3
|
Release files / shuft-1.1.1-py2.py3-none-any.whl
| Download URL | shuft-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
05d71129a2529205cd8559914264814e928ff9860d1feafa1127c8897b72b1c6
|
|
BLAKE2b-256 checksum How to use checksums |
456da95790a697a6c4fdaeac4b84003c1855787b0813a4edd2da89861430147c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3
|