GCS - Read a text file from Google Cloud Storage directly into python : <p>I feel kind of stupid right now. I have been reading numerous documentations and stackoverflow questions but I can't get it right.</p>

<p>I have a file on Google Cloud Storage. It is in a bucket 'test_bucket'. Inside this bucket there is a folder, 'temp_files_folder', which contains two files, one .txt file named 'test.txt' and one .csv file named 'test.csv'. The two files are simply because I try using both but the result is the same either way.</p>

<p>The content in the files is</p>

<pre><code>hej
san
</code></pre>

<p>and I am hoping to read it into python the same way I would do on a local with </p>

<pre><code>textfile = open("/file_path/test.txt", 'r')
times = textfile.read().splitlines()
textfile.close()
print(times)
</code></pre>

<p>which gives</p>

<pre><code>['hej', 'san']
</code></pre>

<p>I have tried using </p>

<pre><code>from google.cloud import storage

client = storage.Client()

bucket = client.get_bucket('test_bucket')

blob = bucket.get_blob('temp_files_folder/test.txt')

print(blob.download_as_string)
</code></pre>

<p>but it gives the output</p>

<pre><code>&lt;bound method Blob.download_as_string of &lt;Blob: test_bucket, temp_files_folder/test.txt&gt;&gt;
</code></pre>

<p>How can I get the actual string(s) in the file?</p>
