Upload Files to Firebase Storage using Python
Hello and welcome to my first Meduim article .
Before starting ! check that you have installed python correctly on your computer .
the solution that i will present works on both windows and linux . just i am using Python 3.7.6
First Step :
Create and active your virtual environment using pipenv :
pipenv shell
Second Step :
Install the dependecies :
pip install google-cloud-storage
pip install firebase
pip install firebase_admin
Third Step :
Get your credentials (JSON File) from console.cloud.google . choose your project and click on create a key Option .
JSON file should be downloaded ! move this file to your project folder .
Fourth Step :
Copy your firbase storage Path .( don’t forget to remove gs:// ) :
Last Step :
Copy and paste this commented code :
that’s all Thanks for reading .