Using Google Cloud Storage API in Python For Beginners

  Рет қаралды 70,126

Jie Jenn

Jie Jenn

Күн бұрын

In this tutorial, I will be covering how to get started with using Google Cloud Storage API in Python.
Things I will be covering in the video:
1. Create a Service Account
2. Enable Google Cloud Storage API
3. Install Google Cloud Storage Python Library
4. Create a new bucket using Python
5. Accessing a bucket using Python
6. Upload File to Google Cloud Storage using Python
7. Download File From Google Cloud Storage using Python
What is Google Cloud Storage?
--------------------------------------
Google Cloud Storage is a RESTful online file storage web service for storing and accessing data on Google Cloud Platform infrastructure. The service combines the performance and scalability of Google's cloud with advanced security and sharing capabilities.
Source Code: learndataanalysis.org/source-...
📑 How to create a Cloud Service Account & Download Client JSON file: • How to create a Google...
Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------
PayPal Me: www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn
Join Robinhood with my link and we'll both get a free stock 🤝 join.robinhood.com/jiej6
Timestamp:
00:00 - Intro
00:38 - Google Cloud Storage Pricing
01:21 - Google Cloud Storage API or Features
01:48 - Enable Google Cloud Storage API
03:04 - Create a Service Account and Download Client File
05:29 - Install Google Cloud Storage Python Library
06:13 - Create Google Cloud Storage Client Instance
08:38 - Create a Google Cloud Storage Bucket
11:03 - Upload Files to Google Cloud Storage Bucket
17:51 - Download Files from Google Cloud Storage Bucket
Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------
Patreon: / jiejenn
By shopping on Amazon → amzn.to/2JkGeMD
More tutorial videos on my website → LearnDataAnalysis.org
Business Inquiring: KZfaq@LearnDataAnalysis.org
#GoogleCloudStorage #Python

Пікірлер: 62
@mrmuranga
@mrmuranga 3 жыл бұрын
Useful, thanks. Trolled through lots of videos that were just showing how to do this using the cloud console...glad i tumbled onto this.
@rahuljain0890
@rahuljain0890 2 жыл бұрын
This was amazing. Beautifully explained.
@gprasadk100
@gprasadk100 Жыл бұрын
Thank you for putting this together. Very simple to follow. Thank you!
@eneselezi5844
@eneselezi5844 2 жыл бұрын
Great video! Thanks a lot, very easy to follow through as well
@eric9964
@eric9964 3 жыл бұрын
No way this was uploaded just in time! Thanks!
@zakariaabderrahmanesadelao3048
@zakariaabderrahmanesadelao3048 3 жыл бұрын
Thank you for the clearest explanation. you are a lifesaver.
@diegolopestec2
@diegolopestec2 3 жыл бұрын
Jie Jenn , this is was very good tutorial. Simple, clean and practical. Congratulations my friend
@c0987k
@c0987k 3 жыл бұрын
This video filled in the hole in Google documentation. Thanks
@rubenmusayelyan9528
@rubenmusayelyan9528 7 ай бұрын
Thank you! Finally a simple, yet effective solution
@claudineievangelistanascim2562
@claudineievangelistanascim2562 3 жыл бұрын
thanks for sharing. very clear, helpful and help me a lot! success for you man
@DevSquared49
@DevSquared49 3 жыл бұрын
Thank for this man. Really appreciate it.
@Iamdip1
@Iamdip1 3 жыл бұрын
Thank you so much man, got it just on time
@ShubhamTure
@ShubhamTure 3 жыл бұрын
Clean and on point!
@javierzapata8911
@javierzapata8911 Жыл бұрын
Absolutely excellent tutorial thank you so much🙌
@juliobc408
@juliobc408 2 жыл бұрын
simply excellent. Thanks a lot
@aitorsanchez2581
@aitorsanchez2581 2 жыл бұрын
Thanks, it was very helpful!
@KeyvanTajbakhsh
@KeyvanTajbakhsh 3 жыл бұрын
very clear and handy ! thnks ;)
@potatocoder5090
@potatocoder5090 11 ай бұрын
Thank you so much for this comprehensive end-to-end tutorial! Thank you for also showing the errors you got and how you debugged them. Do you also have end-to-end tutorials for Cloud Pub/Sub and Cloud SQL in Python?
@arnisudheendra7072
@arnisudheendra7072 Жыл бұрын
excellent video...thank you very much
@markyemets2433
@markyemets2433 Жыл бұрын
Awesome tutorial!
@mdicopriatama6380
@mdicopriatama6380 Жыл бұрын
how did you run the script on the right side ?
@rohit_mondal__
@rohit_mondal__ Жыл бұрын
Thank you sir. Your videos have really helped me
@jamiechambers4795
@jamiechambers4795 11 ай бұрын
Thank you so much!
@pavanpandya9080
@pavanpandya9080 2 жыл бұрын
Great Video.
@ahmed-samer
@ahmed-samer Жыл бұрын
Very useful video Merci
@ygorleao23
@ygorleao23 3 жыл бұрын
tks! This helps me a lot!
@jiejenn
@jiejenn 3 жыл бұрын
Glad my video helped.
@jamesvandermost3802
@jamesvandermost3802 2 жыл бұрын
Thank you so much!! Googles documentation is always missing a few steps...
@jiejenn
@jiejenn 2 жыл бұрын
Glad the video helped.
@gustavogordillogiron9016
@gustavogordillogiron9016 2 жыл бұрын
Great! thanks!
@jiejenn
@jiejenn 2 жыл бұрын
Glad the video help.
@jorgegarciaramos3359
@jorgegarciaramos3359 Ай бұрын
Useful video, but I have a question that I can't solve, is it possible to configure the client to go through a proxy? I have only seen examples where they do it with environment variables, but I would like to be able to configure the proxy in the client instance itself. Thank you very much! 😊
@abeyjoseph4780
@abeyjoseph4780 3 жыл бұрын
Do you have any video related to google cloud SQL same like this
@hamnamalik5998
@hamnamalik5998 3 жыл бұрын
Can you please make a video tut for resumable uploads through python sdk. I would be a great help.
@hassanalhalabi7563
@hassanalhalabi7563 3 жыл бұрын
to uplode an image about 200 KB it takes about 1.5 s. do you think it ist possioble to make the process faster?
@abeyjoseph4780
@abeyjoseph4780 3 жыл бұрын
Thank you so much
@abeyjoseph4780
@abeyjoseph4780 3 жыл бұрын
helped me a lot
@briansoares2075
@briansoares2075 2 жыл бұрын
Can you elaborate how would you go about the code if you would be editing it on say cloudshell code editor? Same operations
@jiejenn
@jiejenn 2 жыл бұрын
One method I can think of is using Google's gsutil tool (cloud.google.com/storage/docs/gsutil)
@pavankumarakula1466
@pavankumarakula1466 2 жыл бұрын
Hi SIr ,Could you please showa demo , how to move to file from one bucket to another bucket using python function.That will be create help
@shovanmallick5820
@shovanmallick5820 Жыл бұрын
can you please make a tutorial on How to run this script on google cloud function, which takes this files from my email inbox(not from local computer) and them put it on a google cloud storage bucket? so that every time I receive a file via email it should take that file and put it on google cloud storage?
@ItheVoguer
@ItheVoguer Жыл бұрын
can this be applied to production? for example in a dockerized web-server, in the api calls?
@jiejenn
@jiejenn Жыл бұрын
Sure, why not?
@usnishmukherjee1248
@usnishmukherjee1248 2 жыл бұрын
Hi Jie Jenn, this is an excellent video. While applying the same, I got a SSLCertVerificationError on the line "bucket = storage_client.create_bucket(bucket)". Can you help me fixing this?
@jiejenn
@jiejenn 2 жыл бұрын
I would suggest you try to Google your way first.
@usnishmukherjee1248
@usnishmukherjee1248 2 жыл бұрын
@@jiejenn thanks for replying 👍
@daqo98
@daqo98 2 жыл бұрын
How do I deploy this application in Cloud Run without exposing the .JSON credentials?
@jiejenn
@jiejenn 2 жыл бұрын
Not familiar with Cloud Run, but I remember one method is to use environment variable.
@santiagoandresortiz5563
@santiagoandresortiz5563 2 жыл бұрын
great video but i am having an issue when downloading......i get this error: OSError: [Errno 30] Read-only file system: '/workspace/file_name i have my python script deployed in google app engine....please help
@jiejenn
@jiejenn 2 жыл бұрын
I would try ask the question on Stack Overflow.
@christoptimist
@christoptimist 2 ай бұрын
I am super late, woooish. I would like to ask if you can create a tutorial videos like this for dataflow and apache beam for etl pipeline.
@jiejenn
@jiejenn 2 ай бұрын
I will look into it.
@rubeushagrid4208
@rubeushagrid4208 2 жыл бұрын
Is that an extension colouring your code like that?
@jiejenn
@jiejenn 2 жыл бұрын
I use Dark Pro for the theme + my own customization.
@rubeushagrid4208
@rubeushagrid4208 2 жыл бұрын
Thanks. Just found an extension 'Theme by language'. I like Darcula for JS but your theme is way better for python.
@miroslavkostov3057
@miroslavkostov3057 2 жыл бұрын
Hi Jie Jenn. Thanks for the video, very helpful. Although I tried identical solution to yours, just with my credentials and I am getting the following error: --> 179 raise TypeError(f'Object of type {o.__class__.__name__} ' 180 f'is not JSON serializable') 181 TypeError: Object of type Bucket is not JSON serializable Any ideas how I can fix that? Thanks!
@jiejenn
@jiejenn 2 жыл бұрын
Looks like your bucket object didn't get created successfully. Makes sure you are providing the correct required properties.
@日本語大好き
@日本語大好き 2 жыл бұрын
Is there any limitations on requests? If yes, how much?
@jiejenn
@jiejenn 2 жыл бұрын
Not sure if I understand your question. You can send unlimited request, but once you exceeded the free quota of the month you will start be charged for the usage.
@日本語大好き
@日本語大好き 2 жыл бұрын
@@jiejenn oh, thanks!
@samuelcheng7582
@samuelcheng7582 3 жыл бұрын
error code: ----> from google.cloud import storage ---> from google.resumable_media.requests import RawDownload ImportError: cannot import name 'RawDownload' from 'google.resumable_media.requests' (/usr/local/lib/python3.7/dist-packages/google/resumable_media/requests/__init__.py) Can you fix it?
@jiejenn
@jiejenn 3 жыл бұрын
I don't think I can fix it. Maybe ask Google.
Using Google Cloud Storage in Java (With Examples)
11:34
Soham Kamani
Рет қаралды 821
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,2 МЛН
Getting Started With Google BigQuery API In Python
7:25
Jie Jenn
Рет қаралды 37 М.
Step-by-step guide Python - Google Cloud Function
59:52
ForDevelopers
Рет қаралды 41 М.
Google Sheets API Automation in Python
26:36
NeuralNine
Рет қаралды 84 М.
Automated Google Drive Backups in Python
23:53
NeuralNine
Рет қаралды 24 М.
Cloud Functions local debugging
10:17
Google Cloud Tech
Рет қаралды 10 М.
How to store data on Google Cloud
6:52
Google Cloud Tech
Рет қаралды 72 М.