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 git@github.com:sh0sh1n/db-playmate.git && cd db-playmate``
- Set up Python3 environment if you haven't already activated one:
- Create new:
python3 -m venv .venv
- Activate:
source .venv/bin/activate
- More info: https://docs.python.org/3/tutorial/venv.html
- Create new:
Use poetry to install dependencies:
poetry install
Copy the
config.toml
file toenv/config.toml
and 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_token
field inside: theenv/config.toml
file. 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.toml
and replace the default values of parameters with your values.