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

Uploading object to S3 #615

Open
quell01102022 opened this issue Aug 23, 2024 · 1 comment
Open

Uploading object to S3 #615

quell01102022 opened this issue Aug 23, 2024 · 1 comment
Labels
question Further information is requested

Comments

@quell01102022
Copy link

quell01102022 commented Aug 23, 2024

Hey, so i can see i can use extract and extractall to write to filesystem. But i need an extracted object to write to S3 Bucket like here:

with py7zr.SevenZipFile("file.7z", "r") as archive:
    for image in archive.namelist():
        s3resource.meta.client.upload_fileobj( archive.open(image), Bucket="bucket", Key="key")



# in zipfile, i can use archive.open() for example, how can i achieve same here?
@Ravencentric
Copy link
Contributor

Use .read()

@miurahr miurahr added the question Further information is requested label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants