-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Add google cloud storage samples using gcloud. #397
Conversation
Simple upload and download samples using python gcloud.
|
||
# You can (and should) generate your own encryption key. os.urandom(32) is a | ||
# good way to accomplish this with Python. | ||
# Although these keys are provided here for simplicity, please remember |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix weird indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I would prefer that we update all of the cloud storage samples at once to use gcloud-python, however, this would need better coordination. |
Thank you for the super quick turnaround. I incorporated your suggestions to the change. PTAL. |
# | ||
# Although these keys are provided here for simplicity, please remember | ||
# that it is a bad idea to store your encryption keys in your source code. | ||
ENCRYPTION_KEY = os.urandom(32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth pointing out explicitly that it MUST be exactly 256 bits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Updated with improvements per feedback. PTAL. |
LGTM |
Thanks. Do you know what the Travis-ci error means? Quoted: |
Travis doesn't succeed for outside pull requests, it's expected. |
Simple upload and download samples using python gcloud.