We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2603594 commit 68692b4Copy full SHA for 68692b4
1 file changed
googlecloud_storage_tutorial/__init__.py
@@ -1,5 +1,4 @@
1
-"""Initialize script demonstration"""
2
-
+"""Initialize script."""
3
from faker import Faker
4
5
from config import BUCKET_DIR, BUCKET_NAME, LOCAL_DIR
@@ -11,14 +10,15 @@
11
10
upload_files,
12
)
13
+# Using the `faker` library to generate random strings
14
fake = Faker()
15
16
17
def init_script():
18
- """Initialize script demonstration."""
+ """Execute actions on a bucket containing files."""
19
print(upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR))
20
print(list_files())
21
print(download_random_file(LOCAL_DIR))
22
print(rename_file(fake.unique.first_name()))
23
print(delete_file(BUCKET_NAME))
24
- upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR)
+ print(upload_files(BUCKET_NAME, BUCKET_DIR, LOCAL_DIR))
0 commit comments