Last active
February 4, 2022 03:48
-
-
Save jsj14/42a566000b54927277076689d23f586d to your computer and use it in GitHub Desktop.
This file contains 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 | |
storage_client = storage.Client(project='your-project-id') #add your ProjectID here | |
def create_bucket(dataset_name): | |
"""Creates a new bucket""" | |
print('function create_bucket called') | |
bucket = storage_client.create_bucket(dataset_name) | |
print('Bucket {} created'.format(bucket.name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment