Skip to main content

GIDEON provides epidemiological data going back to 1348 AD. This package provides an interface with the GIDEON API to access its Infectous Disease database within Python.

Project description

GIDEON - Python Interface (BETA)

GIDEON Authentication

  • The package will attempt to read the environment variable $GIDEON_API_KEY, which is set to your GIDEON API key.
  • The API key can be set in the terminal or .bashrc file as export GIDEON_API_KEY=<YOUR API KEY>
  • The GIDEON API key can be updated within Python by calling the function gideon_api.set_api_key(<YOUR API KEY>)

Developer Setup

Install the Virtual Environment

  1. Install the pipenv Python package by installing it to your Python user install directory with the following terminal command: $python3 -m pip install --user pipenv
  2. Setup the developer virtual environment. Enter the root of the project and execute the terminal command $python3 -m pipenv install --dev
  3. Enter the virtual environment with the command $python3 -m pipenv shell

Build and Install the gideon_api Package.

  • From the root directory, $pip install -e .
  • The -e/--editable flag allows the developer to not have to reinstall the package when the Python files are updated.

Build the HTML Documentation

  1. Activate the pipenv environment
  2. Navigate to the docs/ directory
  3. Run make html to build the HTML documents in the build/ subdirectory

Functionality Overview

GIDEON ID Codes

Many of the items in the GIDEON database use an id code, such as diseases, bacteria, drugs, etc. Use gideon_api.lookup_item to get specific item code to use when calling the GIDEON API.

Outbreak Data

The following command will query the GIDEON API for particular outbreak data:

  • gideon_api.outbreaks_by_year
  • gideon_api.outbreaks_by_country_year
  • gideon_api.latest_outbreaks_by_country
  • gideon_api.outbreaks_by_disease
  • gideon_api.endemic_countries_by_disease
  • gideon_api.endemic_diseases_by_country

Query the GIDEON API Directly

  • gideon_api.query: This is the main function users should use to send commands to the GIDEON API
  • gideon_api.query_online: This version should be used to process the request without interacting with the cache and provides lower level response data.

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

gideon-api-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gideon_api-0.1.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file gideon-api-0.1.0.tar.gz.

File metadata

  • Download URL: gideon-api-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gideon-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62f9dcad8ea5440d855d054d84069bd0159740e3aac21f5a40991f57d27e7c86
MD5 d40c1616802d27a67d5411db806b9390
BLAKE2b-256 cba5158eea26163a023bcd310d1164aff59c1ebf47f63d857dfdace1c5d0067b

See more details on using hashes here.

File details

Details for the file gideon_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gideon_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gideon_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0052ad35a234a7fce91eb92c96d6ee28b79abd1d6ef5ea483f685f8fde57d656
MD5 a38713763bdc65ed7aef26d59d94600c
BLAKE2b-256 c84a160ae22d63fccc5e44514bda230d71beb65d2cc7cde94f2507a75d7e2a82

See more details on using hashes here.

Supported by

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