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

gcs support custom metadata #429

Open
petedannemann opened this issue Mar 9, 2020 · 0 comments
Open

gcs support custom metadata #429

petedannemann opened this issue Mar 9, 2020 · 0 comments

Comments

@petedannemann
Copy link
Contributor

petedannemann commented Mar 9, 2020

Problem description

Allow supplying custom metadata to a blob data to specify things such as the content-type or encryption key while uploading files to Google Cloud Storage

Implementation

Create an additional parameter, metadata, to pass to smart_open.gcs.open that takes in an dictionary to use when uploading a file. This should get applied to the underlying google.cloud.storage.blob.Blob.metadata (https://googleapis.dev/python/storage/latest/blobs.html#google.cloud.storage.blob.Blob.metadata)

EDIT: Generalized from encryption keys to any arbitrary metadata available on Google Cloud Storage

@petedannemann petedannemann changed the title gcs support encryption keys gcs support custom metadata Mar 10, 2020
@petedannemann petedannemann changed the title gcs support custom metadata gcs support encryption keys Mar 10, 2020
@petedannemann petedannemann changed the title gcs support encryption keys gcs support custom metadata Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant