in radlab-launcher/radlab.py [0:0]
def list_radlab_deployments(tfbucket, module_name, projid):
"""Lists all the blobs in the bucket that begin with the prefix."""
storage_client = storage.Client(project=projid)
bucket = storage_client.get_bucket(tfbucket)
iterator = bucket.list_blobs(prefix='radlab/', delimiter='/')
response = iterator._get_next_page_response()
print("\nPlease find the list of existing " + module_name + " module deployments below:\n")
for prefix in response['prefixes']:
if module_name in prefix:
print(Fore.GREEN + Style.BRIGHT + prefix.split('/')[1] + Style.RESET_ALL)