Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures
utils
.env.example
.gitignore
LICENSE
Pipfile
Pipfile.lock
README.md
cli.py
requirements.txt

README.md

Overview

This project is a prototype built to assist crowdsourcing of data about schools in Tanzania. It is built oin top of Ushahidi, a crowdsourcing platform, and has some extra glue / management code to hold it all together and automate things as much as possible.

Here are some relevant links for the Tanzania schools crowdsourcing project:

CLI tool

The code in this repository deals with the Ushahidi API, mostly to "seed" the database with forms and answers.

Installation

  • With pipenv
    • $ pipenv install to install dependencies
    • $ pipenv shell to activate the environment
  • With pip/virtualenv: use the provided requirements.txt file

Usage

$ python cli.py --help
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Commands:
  delete_form
  fake_answer
  heroku_adjust_upload
  send_answer
  send_form
  test

For individual commands syntax and description, call any of them with the --help flag, like this:

$ python cli.py test --help
Usage: cli.py test [OPTIONS]

Options:
  -a, --auth  Test authentication
  -p, --ping  Ping test
  -t, --time  Time to API and back
  -e, --env   Print env vars (paged)
  --help      Show this message and exit.

License

MIT License

Copyright (c) 2018 Open Knowledge International

You can’t perform that action at this time.