This package is intended to be used as an interface for KoboToolbox and Box for the Databrary PLAY project.
Install poetry:
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3
Clone the repo and change to the folder:
``git clone [email protected]:sh0sh1n/db-playmate.git && cd db-playmate``
- Set up Python3 environment using poetry if you haven't already activated one:
- Have poetry create a venv and install the packages:
poetry install - Activate:
poetry shell
- Have poetry create a venv and install the packages:
Copy the
config.tomlfile toenv/config.tomland fill in your credentials
You will need to set up authentication credentials for both Box and KoboToolbox.
Log in to KoboToolbox: https://kf.kobotoolbox.org
You need to retrieve your API token. Once logged in, go to https://kf.kobotoolbox.org/token/?format=json
You should see something like:
{"token":"c203948098abab0a980ab7986"}Copy the long string in quotes. This will be the value of the
auth_tokenfield inside: theenv/config.tomlfile. See Local configuration file.
1. The package reads configurations first from the config.toml file in the root directory and then
a env/config.toml if it exists. Thus, the env/config.toml settings will override the root config settings.
2. To add your user-specific configurations, create a folder in the root directory called env
and copy the config.toml file from the root directory into the env folder.
- Open
env/config.tomland replace the default values of parameters with your values.
Once everything is installed and credentials are set up, run ``python db_playmate/frontend.py``to kick off the process.