Sushi chef for Better World Ed
- Import content from Better World Ed
into Kolibri Studio
-
Install Python 3 if you don't have it already.
-
Install pip if you don't have it already.
-
Create a Python virtual environment for this project (optional, but recommended):
- Install the virtualenv package:
pip install virtualenv
- The next steps depends if you're using UNIX (Mac/Linux) or Windows:
- For UNIX systems:
- Create a virtual env called
venv
in the current directory using the following command:virtualenv -p python3 venv
- Activate the virtualenv called
venv
by running:source venv/bin/activate
. Your command prompt will change to indicate you're working insidevenv
.
- Create a virtual env called
- For Windows systems:
- Create a virtual env called
venv
in the current directory using the following command:virtualenv -p C:/Python36/python.exe venv
. You may need to adjust the-p
argument depending on where your version of Python is located. - Activate the virtualenv called
venv
by running:.\venv\Scripts\activate
- Create a virtual env called
- For UNIX systems:
- Install the virtualenv package:
-
Run
pip install -r requirements.txt
to install the required python libraries.
In order to run the script, you need an authorization token. To get one,
- Create an account on Kolibri Studio
- Navigate to the Tokens tab under your Settings page
- Copy the given authorization token (you will need this for later).
This sushi-chef requires following components:
settings.yaml
: This file contains configuration that enables Pydrive authentication process achieve Google Drive Api executions. Developer needs to updatesettings.yaml
with user's credentials. Please refer to this document to updatesettings.yaml
file.credentials.json
: This file contains Google Drive API information.bwe_overall_database.csv
: csv file that contains contents frombetter-world-ed
spreadsheet. Please locate thebwe_overall_database.csv
file at the root of this repository.
In sushi-chef-better-world-ed
directory, run the following command to run the script with token from previous step:
$ ./sushichef.py -v --token=<AUTHORIZATION TOKEN> --compress
Example
$ ./sushichef.py -v --token=123456abcdefb4c9404451768a3924eb71123456 --compress