Skip to main content

This is the Watson Health Cognitive Services Python SDK containing ACD and IML

Project description

Build Status semantic-release

Watson Health Cognitive Services Python SDK Version 0.0.4

The IBM Watson Health Cognitive Services (WHCS) Python SDK allows developers to programmaticlly interact with the following WHCS services:

Service Name Artifact Id
Annotator for Clinical data annotator_for_clinical_data
Insights for Medical Literature insights_for_medical_literature

NOTE: You must be signed in to IBM Cloud to see the docs.

Prerequisites

An IBM Cloud account. An IAM API key to allow the SDK to access your provisioned service instance. Python 3.5 or above

Installation

To install, use pip

pip install --upgrade ibm-whcs-sdk

Authentication

The ibm-whcs-sdk project supports the following types of authentication:

  • Identity and Access Management (IAM)

For more information about how to use authentication with your services click here

Using the SDK

For general SDK usage information, please see this link

Examples

For SDK usage examples, please see the service API documentation. There are code examples and sample responses for each service API

Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services, please ask a question at IBM Watson Health Supportof Stack Overflow.

Issues

If you encounter an issue with the project, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible that someone has already reported the problem.

Logging

Enable logging

import logging
logging.basicConfig(level=logging.DEBUG)

This would show output of the form:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): iam.cloud.ibm.com:443
DEBUG:urllib3.connectionpool:https://iam.cloud.ibm.com:443 "POST /identity/token HTTP/1.1" 200 1809
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gateway.watsonplatform.net:443
DEBUG:urllib3.connectionpool:https://gateway.watsonplatform.net:443 "POST /assistant/api/v1/workspaces?version=2018-07-10 HTTP/1.1" 201 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gateway.watsonplatform.net:443
DEBUG:urllib3.connectionpool:https://gateway.watsonplatform.net:443 "GET /assistant/api/v1/workspaces/883a2a44-eb5f-4b1a-96b0-32a90b475ea8?version=2018-07-10&export=true HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gateway.watsonplatform.net:443
DEBUG:urllib3.connectionpool:https://gateway.watsonplatform.net:443 "DELETE /assistant/api/v1/workspaces/883a2a44-eb5f-4b1a-96b0-32a90b475ea8?version=2018-07-10 HTTP/1.1" 200 28

Low level request and response dump

To get low level information of the requests/ responses:

from http.client import HTTPConnection
HTTPConnection.debuglevel = 1

Open source @ IBM

Find more open source projects on the IBM Github Page

Contributing

See CONTRIBUTING.

License

The IBM Cloud MySDK Java SDK is released under the Apache 2.0 license. The license's full text can be found in LICENSE.

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

ibm_whcs_sdk-0.0.4.tar.gz (57.2 kB view hashes)

Uploaded Source

Built Distribution

ibm_whcs_sdk-0.0.4-py3-none-any.whl (61.2 kB view hashes)

Uploaded Python 3

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