Skip to main content

Secure FTP (SFTP) Extension for zc.buildout

The zc.buildoutsftp package provides a zc.buildout extension that provides support for SFTP. To use it, simply provide the option:

extensions = zc.buildoutsftp

in your buildout section. Then you can use sftp URLs for find-links or index URLs.

An SFTP URL is similar to an FTP URL and is of the form:

sftp://user:password@hostname:port/path

where the user name, password, and port are optional. Here are some examples:

The following URL accesses the path /distribution on download.zope.org:

sftp://download.zope.org/distribution

The following URL accesses the path /distribution on download.zope.org using the user id jim:

sftp://jim@download.zope.org/distribution

The following URL accesses the path /distribution on download.zope.org using the user id jim and password 123:

sftp://jim:123@download.zope.org/distribution

The following url accesses the path /distribution on download.zope.org using an ssh server running on port 1022:

sftp://download.zope.org:1022/distribution

The buildout extension actually installs a urllib2 handler for the “sftp” protocol. This handler is actually setuptools specific because it generates HTML directory listings, needed by setuptools and makes no effort to make directory listings useful for anything else. It is possible that, in the future, setuptools will provide it’s own extension mechanism for handling alternate protocols, in which case, we might bypass the urllib2 extension mechanism.

SSH Compatibility

The extension works with Open SSH on unix-based systems and PuTTY on Windows. Unless a password is given in the URL, private keys are contained from ssh agent (pagent on Windows).

Status and Change History

This package has been used for years on Linux and Mac OS X. The author doesn’t use it on Windows, but, presumably, other people do.

0.11.0 (2013/08/01)

Compatibility fix for setuptools 0.7 and later.

0.10.0 (2013/05/22)

Compatibility fix for paramiko 1.10.x

0.9.0 (2012/09/13)

Removed beta label.

0.9.0b1 (2012/06/29)

Added support for:

  • Global-configuration settings.

  • Global known-hosts files.

  • Host-specific ssh keys.

Added mock-based tests for unix-like systems. Unfortunately, these tests will fail for Windows and windows support, while present, is untested.

0.6.1 (2010/03/17)

Fixed documentation typo.

0.6.0 (2009/06/22)

Added an unload entry point. This is necessary so we don’t hang when the buildout process exits due to non-daemonic paramiko connection threads.

0.5.0 (2008/12/08)

Added connection pooling. This speeds up multiple downloads from the same server substantially.

Adjust the paramiko logging level relative to the buildout logging level to make it less chatty.

0.4.0 (2007/12/6)

Now reads user definitions from ~/.ssh/config, if possible.

0.3.2 (2007/03/22)

Fixed a serious bug that caused files to be downloaded incompletely.

0.3.1 (2007/03/22)

Fixed a serious bug that caused files read to be truncated to 0 bytes.

0.3 (2007/03/22)

Added debug logging to help diagnose problems.

Close transports after use to prevent leakage.

0.2.2

Fixed a bug in handling multiple host keys for a given host.

0.2.1

Fixed a bug in handling multiple user keys.

0.2

Added missing entry point.

Adjusted content-type information to work with setuptools.

0.1

Initial release

Release files for zc.buildoutsftp 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zc.buildoutsftp 0.11.0
File Size Uploaded
zc.buildoutsftp-0.11.0.tar.gz 9.6 kB Details

Release files / zc.buildoutsftp-0.11.0.tar.gz

Download URL zc.buildoutsftp-0.11.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b7b903e4ff565009fb05b264366b8f808221fdbc69b8a4690a79eda50f087bca
BLAKE2b-256 checksum
How to use checksums
bb2e78c3e16661bf64fe35ed9ed2fa05e206437982005f59eef5361eacc8b06f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.11.0 This release

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page