Skip to content

dkim0526/sushi-chef-better-world-ed

 
 

Repository files navigation

Better World Ed Chef

Sushi chef for Better World Ed - Import content from Better World Ed into Kolibri Studio

Installation

  • 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 inside venv.
      • 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
  • Run pip install -r requirements.txt to install the required python libraries.

Usage

Get an Authorization Token

In order to run the script, you need an authorization token. To get one,

  1. Create an account on Kolibri Studio
  2. Navigate to the Tokens tab under your Settings page
  3. Copy the given authorization token (you will need this for later).

Requirements

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 update settings.yaml with user's credentials. Please refer to this document to update settings.yaml file.
  • credentials.json : This file contains Google Drive API information.
  • bwe_overall_database.csv : csv file that contains contents from better-world-ed spreadsheet. Please locate the bwe_overall_database.csv file at the root of this repository.
Running the Chef

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%