- Notifications
You must be signed in to change notification settings - Fork6
Executes a query on MySQL database, get the data, creates a tab in a Google Sheet and dumps the data there
License
tirthGajjar/MySQL-to-GoogleSheets-Python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Project website:https://know.tirth.dev/MySQL-to-GoogleSheets-Python/
Executes a query on MySQL database, gets the data, creates a tab in a Google Sheet and dumps the data there
To run this package, you'll need:
Python 2.6 or greater
The pip package management tool
MySQL connector for python
You can install it by executing below commandpip install mysql-connector-pythonA Google account which has edit access to the sheet you are trying to modify
Google Client Library
You can install it by executing below commandpip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlibClient secret JSON file
You will need this file to access your Google Sheet
In order to get one, Follow below mentioned steps- Go to theAPI Console.
- From the projects list, select a project or create a new one.
- If the APIs & services page isn't already open, open the console left side menu and selectAPIs & services.
- On the left, clickCredentials.
- ClickNew Credentials, then selectOAuth client ID.
- SelectWeb application as application type for your project
- If this is your first time creating a client ID, you can also configure your consent screen by clickingConsent Screen. You won't be prompted to configure the consent screen after you do it the first time.
- ClickCreate client ID
- Download the newly created oAuth2.0 client id as JSON
- Put the json file in src folder with namecredentials.json
Referthis for more help.
- Follow instructions inautomate.py
- After you have made all the required changes
- Open terminal in the project directory and execute below command
python automate.py
If you are facing any issues with the script, you can email me atcontact@tirth.dev
About
Executes a query on MySQL database, get the data, creates a tab in a Google Sheet and dumps the data there
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.