a7af54f24e | ||
---|---|---|
docs | ||
.gitignore | ||
LICENSE | ||
README.md | ||
helper.py | ||
requirements.txt | ||
sample.env | ||
update_schedule.py |
README.md
MoFo All-hands Schedule App Data Processor
This script is designed as a data processor helper for mofo-allhands repo. If you want to use this script as is make sure your Google Spreasheet is based on the Google spreadsheet template we designed.
This Schedule App Data Processor script handles the following tasks
- takes data from a Google spreadsheet,
- and converts it to a JSON array where each object has keys corresponding to the spreadsheet column names,
- then stores that JSON locally and/or automatically commits it to a GitHub repo (your schedule app repo, e.g., [MoFo All-hands schedule app](https://github.com/m ozilla/mofo- allhands)).
To run the script
- Create a Python virtual environment and install all the required packages. See create a Python virtual environment docs for instructions.
- Get API creds from GitHub and Google. See authentication docs for instructions.
- Share your Google Spreadsheet with the Google Service Account that you created in Step 2.
- Set values for environment variables and run
source your-file-name.env
- Running
update_schedule()
will execute these methods in succession. You can trigger it from the command line:python update_schedule.py