types-pysftp
Typing stubs for pysftp
What it is and what it does
types-pysftp is a type stub package that provides static type annotations for the pysftp SFTP client library. It allows type checkers like mypy and pyright to understand and validate the types of pysftp's API, catching type errors in code that uses pysftp before runtime. The package is generated from and maintained as part of the typeshed project, the standard repository of type stubs for the Python ecosystem.
The package targets pysftp version 0.2.* and has been tested with mypy 2.1.0 and pyright 1.1.410. It depends on types-paramiko for type information about paramiko, which pysftp itself uses. Installation is straightforward and adds no runtime overhead—it only affects static analysis. However, the description explicitly notes that types-pysftp is unmaintained and will not receive updates; fixes should be contributed to typeshed directly.
Use it for:
- Enable mypy or pyright to type-check code that calls pysftp methods, catching parameter and return type mismatches.
- Provide IDE autocompletion and inline type hints when writing code that uses pysftp.
- Validate SFTP connection and file transfer operations in a CI/CD pipeline using static type checking.
- Document the expected types of pysftp's public API for developers unfamiliar with the library.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the pysftp package, enabling static type checkers like mypy and pyright to validate code that uses pysftp for SFTP operations.
Yes, if you use pysftp and run static type checking with mypy or pyright. Install it alongside pysftp to enable type validation. Be aware that the package is unmaintained and targets only pysftp 0.2.*; if you use a different version or need updated stubs, contribute fixes to typeshed directly rather than expecting updates here.
Install
types-pysftp on PyPI
pip
pip install types-pysftpuv
uv add types-pysftppoetry
poetry add types-pysftpInstalling types-pysftp
Before you install
Low friction installation as a pure Python stub package. Actively maintained within the typeshed project, though the description notes types-pysftp itself is unmaintained and won't receive updates beyond what typeshed provides.
License in practice
Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install types-pysftp
# In your code using pysftp:
import pysftp
with pysftp.Connection('host', username='user', password='pass') as sftp:
sftp.get('remote.txt', 'local.txt')
Requires Python 3.10 or later; pysftp itself must be installed separately for runtime use.
Verify before relying
- Whether the stub package remains synchronized with pysftp 0.2.* releases after the stated unmaintained status.
- Compatibility with type checkers other than mypy 2.1.0 and pyright 1.1.410.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — types-paramiko |
| Maintenance | actively maintained — 62 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 126,046/month — #11,791 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pysftp-0.2.17.20260613-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-jsonschemaProvides type hints for the jsonschema package,…
permissive · top 5,000 on PyPI
types-requests-oauthlibProvides type hints for requests-oauthlib,…
permissive · top 15,000 on PyPI
types-pyaudioProvides type hints for the pyaudio library,…
permissive · top 15,000 on PyPI
types-cffiProvides type stubs for the cffi package,…
permissive · top 5,000 on PyPI
types-PySocksProvides type stubs for PySocks, enabling…
permissive · top 15,000 on PyPI
types-uWSGIProvides type hints for the uWSGI Python API,…
permissive · top 15,000 on PyPI
types-polibProvides type stubs for the polib package,…
permissive · top 15,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI