Skip to main content

Replace / update / redeploy KoBo forms

Project description

dynamic-kobo

PyPI Latest Release

Replace / update and redeploy KoBo forms.

Developed by Karla Peña Ramírez, packaged by Jacopo Margutti.

Requirements

  1. Python >= 3.7
  2. Firefox
  3. Geckodriver

Set up

  1. Download and install Firefox
  2. Download the geckodriver binary for your platform (here)
  3. Install dynamic-kobo from PyPI

pip install dynamic-kobo

Usage

Usage: replace-redeploy [OPTIONS]

  replace KoBo form with a new one and redeploy

Options:
  --config            path to configuration file (.env)
  --headless          run headless (no GUI)
  --koboserver TEXT   URL of KoBo server
  --username TEXT     username
  --password TEXT     password
  --formid TEXT       form (asset) ID
  --newform TEXT      absolute path to new form (.xlsx)
  --geckodriver TEXT  absolute path to geckodriver binary
  --help              show this message and exit

N.B. all options can be stored in a .env file, the script will load them automatically as environment variables. Example:

GECKODRIVER=C:\geckodriver\geckodriver.exe
KOBO_SERVER=https://kobo.humanitarianresponse.info/
USERNAME=...
PASSWORD=...
FORM_ID=ai3sdfC1GnERTW72rwwSFq
NEW_FORM='C:\forms\new-form.xlsx'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynamic-kobo-0.0.4.tar.gz (18.9 kB view details)

Uploaded Source

File details

Details for the file dynamic-kobo-0.0.4.tar.gz.

File metadata

  • Download URL: dynamic-kobo-0.0.4.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for dynamic-kobo-0.0.4.tar.gz
Algorithm Hash digest
SHA256 053d684bf3047baa2ebd5cee2d94e3dd0181e83a777797ea11dd4124ecf605a5
MD5 ea4b062f9fb4e8db43ae727c3290fc2e
BLAKE2b-256 6ffd2a31f9b2390f77afdb5ee84e863e351d7b12939c3eb005ac67f6b000dcbd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page