sftpkit 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .claude/settings.local.json
9
+ .env
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 (2026-12-04)
4
+
5
+ First version, from pysftp 0.2.9.
6
+
7
+ ### Differences from pysftp
8
+ - Imports with paramiko 4 and 5, which removed `DSSKey`. `sftpkit.DSSKey` is `None` there.
9
+ - Loads Ed25519 and ECDSA private keys from a path, with or without a passphrase.
10
+ - Checks a server on a port other than 22 against its `[host]:port` entry in `known_hosts`. `CnOpts.get_hostkey` takes an optional `port` argument.
11
+ - With no `private_key` given, tries `~/.ssh/id_ed25519` and `~/.ssh/id_ecdsa` after `id_rsa` and `id_dsa`.
12
+ - Accepts any loaded `paramiko.PKey` as `private_key`, not only `RSAKey`.
13
+ - A failed connection no longer raises a second `AttributeError` from `__del__`.
14
+ - `get_r` creates the local folder when it does not exist. pysftp failed with `FileNotFoundError`.
15
+ - Fixed a missing space in the `known_hosts` warning.
16
+ - Requires Python 3.10 or later and paramiko 3.2 or later.
sftpkit-1.0.0/LICENSE ADDED
@@ -0,0 +1,31 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Voltaro Studio
4
+ Copyright (c) 2014, Dundee Media & Technology, Inc
5
+ All rights reserved.
6
+
7
+ sftpkit began as pysftp 0.2.9 by Dundee Media & Technology, Inc; its notice
8
+ and conditions below apply to the whole work.
9
+
10
+ Redistribution and use in source and binary forms, with or without modification,
11
+ are permitted provided that the following conditions are met:
12
+
13
+ * Redistributions of source code must retain the above copyright notice,
14
+ this list of conditions and the following disclaimer.
15
+ * Redistributions in binary form must reproduce the above copyright notice,
16
+ this list of conditions and the following disclaimer in the documentation
17
+ and/or other materials provided with the distribution.
18
+ * Neither the name of the Dundee Media & Technology, Inc nor the names of
19
+ its contributors may be used to endorse or promote products derived from
20
+ this software without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
26
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
sftpkit-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.5
2
+ Name: sftpkit
3
+ Version: 1.0.0
4
+ Summary: A maintained, drop-in successor to pysftp. Works with paramiko 4 and 5.
5
+ Project-URL: Source, https://github.com/voltarostudio/sftpkit
6
+ Project-URL: Issues, https://github.com/voltarostudio/sftpkit/issues
7
+ Author: Voltaro Studio
8
+ License-Expression: BSD-3-Clause
9
+ License-File: LICENSE
10
+ Keywords: file transfer,paramiko,pysftp,sftp,ssh
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Internet :: File Transfer Protocol (FTP)
16
+ Classifier: Topic :: System :: Networking
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: paramiko>=3.2
19
+ Description-Content-Type: text/markdown
20
+
21
+ # sftpkit
22
+
23
+ A maintained successor to [pysftp](https://pypi.org/project/pysftp/), with the same API.
24
+
25
+ pysftp 0.2.9 was released in 2016 and has not changed since. It fails on import with paramiko 4 and later:
26
+
27
+ ```
28
+ ImportError: cannot import name 'DSSKey' from 'paramiko'
29
+ ```
30
+
31
+ sftpkit is pysftp 0.2.9 with that fixed, along with the bugs listed below.
32
+
33
+ ## Switch from pysftp
34
+
35
+ ```bash
36
+ pip uninstall pysftp
37
+ pip install sftpkit
38
+ ```
39
+
40
+ Then change one line:
41
+
42
+ ```python
43
+ import sftpkit as pysftp
44
+ ```
45
+
46
+ The rest of your code stays the same:
47
+
48
+ ```python
49
+ with pysftp.Connection("example.com", username="deploy",
50
+ private_key="~/.ssh/id_ed25519") as sftp:
51
+ sftp.put("report.csv", "/uploads/report.csv")
52
+ ```
53
+
54
+ ## Differences from pysftp 0.2.9
55
+
56
+ - Works with paramiko 3.2 through 5.x.
57
+ - Loads Ed25519 and ECDSA private keys. pysftp tried only RSA, then DSA.
58
+ - Checks a server on a port other than 22 against its `[host]:port` entry in `known_hosts`, the form OpenSSH writes.
59
+ - When `private_key` is not given, tries `~/.ssh/id_ed25519` and `~/.ssh/id_ecdsa` after pysftp's `id_rsa` and `id_dsa`.
60
+ - `get_r` creates the local folder when it does not exist.
61
+ - A failed connection raises only its own error. pysftp also raised `AttributeError: 'Connection' object has no attribute '_sftp_live'` while cleaning up.
62
+
63
+ Every public name, method, argument and default of pysftp 0.2.9 is kept, and the exception types are the same. A test checks this against the original source on every change.
64
+
65
+ Host keys are checked as in pysftp: a server must be in your `known_hosts`, unless you set `cnopts.hostkeys = None`.
66
+
67
+ ## Requirements
68
+
69
+ Python 3.10 or later, and paramiko 3.2 or later.
70
+
71
+ ## Credit
72
+
73
+ sftpkit began as pysftp 0.2.9 by Dundee Media & Technology, Inc, under the BSD 3-Clause licence. The first commit in this repository is that release, unchanged, so each of our changes can be read in the history.
74
+
75
+ ## Licence
76
+
77
+ BSD 3-Clause. See [LICENSE](LICENSE).
@@ -0,0 +1,57 @@
1
+ # sftpkit
2
+
3
+ A maintained successor to [pysftp](https://pypi.org/project/pysftp/), with the same API.
4
+
5
+ pysftp 0.2.9 was released in 2016 and has not changed since. It fails on import with paramiko 4 and later:
6
+
7
+ ```
8
+ ImportError: cannot import name 'DSSKey' from 'paramiko'
9
+ ```
10
+
11
+ sftpkit is pysftp 0.2.9 with that fixed, along with the bugs listed below.
12
+
13
+ ## Switch from pysftp
14
+
15
+ ```bash
16
+ pip uninstall pysftp
17
+ pip install sftpkit
18
+ ```
19
+
20
+ Then change one line:
21
+
22
+ ```python
23
+ import sftpkit as pysftp
24
+ ```
25
+
26
+ The rest of your code stays the same:
27
+
28
+ ```python
29
+ with pysftp.Connection("example.com", username="deploy",
30
+ private_key="~/.ssh/id_ed25519") as sftp:
31
+ sftp.put("report.csv", "/uploads/report.csv")
32
+ ```
33
+
34
+ ## Differences from pysftp 0.2.9
35
+
36
+ - Works with paramiko 3.2 through 5.x.
37
+ - Loads Ed25519 and ECDSA private keys. pysftp tried only RSA, then DSA.
38
+ - Checks a server on a port other than 22 against its `[host]:port` entry in `known_hosts`, the form OpenSSH writes.
39
+ - When `private_key` is not given, tries `~/.ssh/id_ed25519` and `~/.ssh/id_ecdsa` after pysftp's `id_rsa` and `id_dsa`.
40
+ - `get_r` creates the local folder when it does not exist.
41
+ - A failed connection raises only its own error. pysftp also raised `AttributeError: 'Connection' object has no attribute '_sftp_live'` while cleaning up.
42
+
43
+ Every public name, method, argument and default of pysftp 0.2.9 is kept, and the exception types are the same. A test checks this against the original source on every change.
44
+
45
+ Host keys are checked as in pysftp: a server must be in your `known_hosts`, unless you set `cnopts.hostkeys = None`.
46
+
47
+ ## Requirements
48
+
49
+ Python 3.10 or later, and paramiko 3.2 or later.
50
+
51
+ ## Credit
52
+
53
+ sftpkit began as pysftp 0.2.9 by Dundee Media & Technology, Inc, under the BSD 3-Clause licence. The first commit in this repository is that release, unchanged, so each of our changes can be read in the history.
54
+
55
+ ## Licence
56
+
57
+ BSD 3-Clause. See [LICENSE](LICENSE).
@@ -0,0 +1,36 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sftpkit"
7
+ version = "1.0.0"
8
+ description = "A maintained, drop-in successor to pysftp. Works with paramiko 4 and 5."
9
+ readme = "README.md"
10
+ license = "BSD-3-Clause"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [{ name = "Voltaro Studio" }]
14
+ dependencies = ["paramiko>=3.2"]
15
+ keywords = ["sftp", "ssh", "pysftp", "paramiko", "file transfer"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Topic :: Internet :: File Transfer Protocol (FTP)",
22
+ "Topic :: System :: Networking",
23
+ ]
24
+
25
+ [project.urls]
26
+ Source = "https://github.com/voltarostudio/sftpkit"
27
+ Issues = "https://github.com/voltarostudio/sftpkit/issues"
28
+
29
+ [dependency-groups]
30
+ dev = ["pytest>=8", "cryptography"]
31
+
32
+ [tool.hatch.build.targets.sdist]
33
+ include = ["sftpkit", "tests", "LICENSE", "README.md", "CHANGELOG.md"]
34
+
35
+ [tool.pytest.ini_options]
36
+ testpaths = ["tests"]