This is the Watson Health Cognitive Services Python SDK containing ACD and IML
Project description
Watson Health Cognitive Services Python SDK Version 0.0.5
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ibm_whcs_sdk-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227344f6210403d316f7531c38bb56a0fbef0de2c9d3dafaceaddffa6e9e9cba |
|
MD5 | e32a7c68db0aa5a43460612265dc7c99 |
|
BLAKE2b-256 | bc903e30b658975329391810273ad86569e4c3a0d2f8aea8fc9a134b48cd4b64 |