Created
March 26, 2019 21:12
-
-
Save deivguerrero/bf4e9f850f719b5d1673acee1ba8d6d6 to your computer and use it in GitHub Desktop.
Carga un archivo a un déposito en Google Cloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.cloud import storage | |
BUCKET_NAME = "audio-devlife" | |
BLOB_PATH = "audio.flac" | |
storage_client = storage.Client() | |
bucket = storage_client.get_bucket(BUCKET_NAME) | |
blob = bucket.blob(BLOB_PATH) | |
with open(BLOB_PATH, "rb") as my_file: | |
blob.upload_from_file(my_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment