
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
s3-multipart-stream
Advanced tools
Fast writable stream to Amazon S3's Multipart API using streams2 and concurrent chunk uploads.
s3-multipart-stream uploads files to Amazon S3 using the multipart upload API. It uploads streams by separating it into chunks and concurently uploading those chunks to S3. The chunk size and maximum concurrent upload count is configurable via the options hash.
Each chunk upload is recorded in a working file whose location is specified by the workingDirectory option. Successful chunk uploads write their ETag, upload number, and chunk size to the file, while chunks that error out additionally write their data and error message into the file.
var AWS = require("aws-sdk");
var S3MultipartStream = require("s3-multipart-stream");
var fs = require("fs");
/* Configure the AWS client with your credentials */
var s3 = new AWS.S3({
accessKeyId: "myAccessKey",
secretAccessKey: "mySecretAccessKey",
region: "us-east-1"
});
var options = {
/* Upload at most 10 concurrent chunks of 5MB each */
chunkUploadSize : 5242880
maxConcurrentUploads : 10
multipartCreationParams: {
Bucket: "myBucket",
Key: "myKey"
/* Any params accepted by s3 multipart creation API */
},
workingDirectory : "/tmp"
};
var s3Stream = S3MultipartStream.create(s3, options, function(err, s3Stream) {
if(err) {
console.error(err);
process.exit(1);
}
var fileStream = fs.createReadStream("someFile.txt");
fileStream
.pipe(s3Stream);
});
retryUpload(dataFile, journalFile)
method that retries a failed upload by retrying failed chunks.FAQs
Fast writable stream to Amazon S3's Multipart API using streams2 and concurrent chunk uploads.
The npm package s3-multipart-stream receives a total of 0 weekly downloads. As such, s3-multipart-stream popularity was classified as not popular.
We found that s3-multipart-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.