https://github.com/masterpiece93/gsheetpoc
POC : connecting to google sheets in a web application and performing operations on it .
https://github.com/masterpiece93/gsheetpoc
django django-application djnago-project google-oauth2 google-python-api google-sheets google-sheets-api-v4 oauth2 p-o-c
Last synced: 3 months ago
JSON representation
POC : connecting to google sheets in a web application and performing operations on it .
- Host: GitHub
- URL: https://github.com/masterpiece93/gsheetpoc
- Owner: masterPiece93
- License: bsd-3-clause
- Created: 2025-09-03T09:33:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-09-03T11:55:55.000Z (4 months ago)
- Last Synced: 2025-09-03T13:06:32.881Z (4 months ago)
- Topics: django, django-application, djnago-project, google-oauth2, google-python-api, google-sheets, google-sheets-api-v4, oauth2, p-o-c
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gsheets POC
This deals with poc on google sheets access and manipulation in a web application ( client-server architechture ) .
It also demonstrates the Google Oauth2 authentication in such a setup .
| `Djnago` | `python` | `sqlite` |
### Running server :
```sh
# using Makefile
make runserver
```
```sh
# manually
python3 manage.py runserver localhost:5000
```
### On Browser :
- `/` points to base path points to gsheets app .
- `/sheet/api` points to api specific enpoints .
- `/auth` points to gauth app .
- `/admin` points to django admin .
- admin panel credentials :
- **username** : _admin_
- **password** : _admin_
If credential not set , generate them by running command ( on terminal/shell/cmd ):
```sh
python3 manage.py createsuperuser
```
---
#### TODO :
- when we add google sheet's sharable url , `gid` is not included in it , hence , if we select GID option , it'll give error , hence we can add an enhencement ( already part of office project )
- replace `extract_id_gid` function with a `validate_sheet_url` function and when gid is not
available , hence, operate accordingly
---
#### Notes on GIT
##### Globally
> git config --global credential.helper 'cache --timeout=3600'
##### Locally
> git config credential.helper 'cache --timeout=3600'
NOTE :
```
Git credentials.helper `cache` option stores credentials in running process's memory .
For e.g:
If you are operating GIT commands on Terminal/cmd , then these
command stores the credentials in the memory of that terminal/cmd
process .
Once you exit that process , the `cache` is lost .
```