Skip to content

Instantly share code, notes, and snippets.

@jsj14
Last active February 4, 2022 03:48
Show Gist options
  • Save jsj14/42a566000b54927277076689d23f586d to your computer and use it in GitHub Desktop.
Save jsj14/42a566000b54927277076689d23f586d to your computer and use it in GitHub Desktop.
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