Created
January 14, 2018 01:22
-
-
Save Dannyzen/8b2841deb58ce4b0177884da55a794d3 to your computer and use it in GitHub Desktop.
Making Buckets. The buckety way.
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
# 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