
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
sftpcopy allows to copy files to or from a remote server -- integrates with
gocept.filestore <https://pypi.org/project/gocept.filestore/>
_.
sftpcopy will take files from the new
directory, copy
them to the remote server and put them into cur
on success. Likewise it will
download files from the remote server and put them into the new
directory for another application to pick it up.
You can either give the name of a configuration file on the commandline, or pass the configuration values as a dict directly to the entrypoint (useful for buildout integration). The configuration file has the following format::
[general]
mode = upload # or download
logfile = /path/to/logfile # defaults to stdout if not given
buffer_size = 65536
skip_files =
name_of_file_to_skip_1
name_of_file_to_skip_2
[local]
path = /path/on/local/machine
[remote]
path = /path/on/remote/machine
hostname = remote.host
port = 22
username = user
password = secret
The configdict uses the following keys instead:
key_filename takes precedence over password. If key_filename ends with dsa
,
it's assumed to be a DSA key, else an RSA key. Note that the key file must not
be password protected.
skip_files
is a list of filenames (local or remote), which are skipped during
upload or download.
Files are copied in chunks of buffer_size to avoid loading big files into memory at once.
You can also use sftpcopy as a python object like this::
import gocept.sftpcopy
sftp = gocept.sftpcopy.SFTPCopy(
'/path/on/local/machine',
'remote.host', 22, 'user', 'secret', '/path/on/remote/machine',
skip_files=['my_file_to_ignore'])
sftp.connect()
sftp.uploadNewFiles() # or sftp.downloadNewFiles()
Add support for Python 3.7 and 3.8.
Migrate to Github.
Pinning version numbers of dependencies for tests.
Migrate to py.test as testrunner.
Add new skip_files
parameter to skip upload or download of files.
Update bootstrap.py
to version from zc.buildout 2.3.0
.
Move repository to bitbucket.org
.
buffer_size
which defaults to 64 kB.Support key-based authentication.
Check that the size of the transmitted file after up/download matches what was transferred.
gocept.amqprun
integration.configdict
argument to main function for easier buildout
integration.FAQs
Upload/download files via SFTP to a maildir structure
We found that gocept.sftpcopy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.