From 68692b4aa7a243d8a6abf4818ae109180fdd3911 Mon Sep 17 00:00:00 2001 From: Todd Birchard Date: Wed, 7 Aug 2024 23:15:44 -0400 Subject: [PATCH] Update __init__.py --- googlecloud_storage_tutorial/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/googlecloud_storage_tutorial/__init__.py b/googlecloud_storage_tutorial/__init__.py index af211bc..856f8c2 100644 --- a/googlecloud_storage_tutorial/__init__.py +++ b/googlecloud_storage_tutorial/__init__.py @@ -1,5 +1,4 @@ -"""Initialize script demonstration""" - +"""Initialize script.""" from faker import Faker from config import BUCKET_DIR, BUCKET_NAME, LOCAL_DIR @@ -11,14 +10,15 @@ upload_files, ) +# Using the `faker` library to generate random strings fake = Faker() def init_script(): - """Initialize script demonstration.""" + """Execute actions on a bucket containing files.""" print(upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR)) print(list_files()) print(download_random_file(LOCAL_DIR)) print(rename_file(fake.unique.first_name())) print(delete_file(BUCKET_NAME)) - upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR) + print(upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR))