Skip to content

Instantly share code, notes, and snippets.

@Dannyzen
Created January 14, 2018 01:22
Show Gist options
  • Save Dannyzen/8b2841deb58ce4b0177884da55a794d3 to your computer and use it in GitHub Desktop.
Save Dannyzen/8b2841deb58ce4b0177884da55a794d3 to your computer and use it in GitHub Desktop.
Making Buckets. The buckety way.
# Imports the Google Cloud client library
from google.cloud import storage
# Instantiates a client
storage_client = storage.Client()
count = 0
total = 165
while (count < total):
# Might want to customize your bucket name below. Small tip of the hat to NBA Jam
bucket_name = str(count) + 'boom_shakalaka'
bucket = storage_client.create_bucket(bucket_name)
print('Bucket {} created.'.format(bucket.name))
count = count + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment