yuong1979 / googlesheetsapi

Google sheets with python api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample google sheets project with docker

Clone project

git clone https://github.com/yuong1979/googlesheetsapi.git

Change directory into the project

cd googlesheetsapi

Start a the virtual environment

python3 -m venv venv

Run the virtual environment

source venv/bin/activate

Install the requirements

pip install -r requirements.txt

Create a service account, create a new google sheets api, create a googlesheetsapi-keys.json and leave it in the main folder

Deploy on local without docker

Run the server only local

python3 read.py

Check the google sheets for changes

Deploy with docker on local

Comment out the production code on Dockerfile

Build the image

docker build -t googleapipython .

Deploy the image

docker run googleapipython

About

Google sheets with python api


Languages

Language:Python 94.3%Language:Dockerfile 5.7%