Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP-S3 Streaming Download Plugin #1325

Open
Padeanu opened this issue Sep 24, 2024 · 0 comments
Open

HTTP-S3 Streaming Download Plugin #1325

Padeanu opened this issue Sep 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Padeanu
Copy link

Padeanu commented Sep 24, 2024

As a user I would want a download plugin that directly forwards HTTP response to a given S3 bucket without using local file system.

Chunk size, target url, source s3 bucket and key, credentials should be configurable.

Example using boto3:

with requests.get(stream_url, stream=True, auth=auth) as response:
    response.raise_for_status()  # Raise an error for bad responses (4xx and 5xx)
    chunk_size = 64 * 1024  # 64kb
    with response.raw as data_stream:
        boto3_client.upload_fileobj(data_stream, bucket, key, Config=boto3.s3.transfer.TransferConfig(multipart_threshold=chunk_size * 2))
@Padeanu Padeanu added the enhancement New feature or request label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant