Skip to main content

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

Metadata

Release files for kobodata 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kobodata 0.0.9
File Size Uploaded
kobodata-0.0.9.tar.gz 3.0 kB Details

Release files / kobodata-0.0.9.tar.gz

Download URL kobodata-0.0.9.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
402c283391a7793a191eab79876de83821079a095609795d1af6f170d09dd230
BLAKE2b-256 checksum
How to use checksums
211baf5050b70864f52e6ba1ae2c46fa25b87951104caffe1786021a5de7789a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page