Skip to main content

Python Tool for accessing online data from KOBO TOOLBOX.

Project description

kobodata

Made in Tanzania Downloads Downloads Downloads

A python wrapper for Kobo Data Tool Kit

Why Kobodata

  • This helps get remote data collected easily via kobo forms via consuming the APIS from *.kobotoolbox.org sites.

There are several accounts , you can signup for one:

Getting started

To get started with kobodata, you have to firstly install the library either directly or using pip.

Installation directly

Use git to clone or you can also manually download the project repository just as shown below;

$ git clone https://github.com/kalokola/kobodata
$ cd kobodata
kobodata $ python setup.py install 

Installing from pip

# For Windows 

pip install  --upgrade kobodata

#For Linux | MAC 

pip3 install --upgrade kobodata

Get Account Credentials

  1. You have to sign up at Kobo ToolBox and create your first form.
  2. To obratin account_token got to your account settings and you will see an API Token section, view the token and copy it to your cip board. The API Token looks like bd1f68af664306q82d62w1412873d3b76b4321
  3. To obtain the dataset_uuid navigate to your kobo project, select [DATA] to view the table. Inspect the link to your table and copy a section that looks like agLCVHnDkbXRkEuhtp4oUF
  4. Specify the account_domain for your account kf.kobotoolbox.org or kobo.humanitarianresponse.info

Once you have got the credentials you can proceed as follows.

How to Use (Code Exmaple).

Here how to fetch real time data

>>> from kobodata import KoboData 
>>> account_token = "bd1f68af664306q82d62w1412873d3b76b4321"
>>> dataset_uuid = ""
>>> account_domain = "kf.kobotoolbox.org"
>>> dataset = KoboData(
            account_subdomain,
            dataset_uuid,
            account_token     
        )

# get number observations
>>> dataset.counts
    784 rows

# return a dictionary of results
>>> dataset.get_data

All the credit

  1. kalokola
  2. All other contributors

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

kobodata-0.0.9.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file kobodata-0.0.9.tar.gz.

File metadata

  • Download URL: kobodata-0.0.9.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for kobodata-0.0.9.tar.gz
Algorithm Hash digest
SHA256 402c283391a7793a191eab79876de83821079a095609795d1af6f170d09dd230
MD5 3ffdca48a2b8928f40ff77c88576cb14
BLAKE2b-256 211baf5050b70864f52e6ba1ae2c46fa25b87951104caffe1786021a5de7789a

See more details on using hashes here.

Supported by

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