Releases: watson-developer-cloud/python-sdk
Releases · watson-developer-cloud/python-sdk
v4.0.2
v4.0.1
v4.0.0
4.0.0 (2019-10-04)
Check the MIGRATION-V4 for more details
Bug Fixes
- recognize: Update websocket request (1b0c1ab)
Features
- assistant: regenerate assistantv1 (9f336d0)
- assistantv2: generate assistantv2 (7099563)
- compare comply: Generate compare and comply (158c451)
- discovery: CPD-only functionality, Autocomplete method, spellingSuggestions in Query) (d78b1b0)
- discovery: Generate discovery (bac470f)
- language translator: Generate language translator (9c1dac2)
- logging: Add logging to ws functions (148b5a7)
- logging: enable logging in websocket (751aa5d)
- model: _convert_model doesnt need classname anymore (5f40ac2)
- NLC: Generate natural language classifier (96a33c6)
- NLU: Generate natural language understanding (276ae93)
- PI: Generate personality insight (bb62492)
- stt: customization_id no longer a param in recognize_using_websocket (a6163ac)
- STT: Generate speech to text (9f749f8)
- TA: Generate tone analyzer (5656498)
- TTS: Generate text to speech (082d8ae)
- visual recognition3: Regenerate vr3 (307b885)
- visual recongition: New version v4 in visual recognition (c087917)
- VR: Generate visuall recognition (74a3fe6)
- vr4: regenerate vr4 where TrainingDataObject is optional (6122ab1)
BREAKING CHANGES
Check the MIGRATION-V4 for more details
v3.4.2
v3.4.1
4.0.0rc1
Authentication is passed as an authenticator param when initializing the service
v4
Breaking changes
The v4 adds support only from python 3.5 and above. Major changes include:
Method optional param
The method params which are optional would need to be specified by name rather than position. For example:
The list_workspaces with page_limit
as 10
was:
assistant_service.list_workspaces(10)
Now, we need to specify the optional param name
assistant_service.list_workspaces(page_limit=10)
Authentication methods
There are 5 authentication variants supplied in the SDK (shown below), and it's possible now to create your own authentication implementation if you need something specific by implementing the Authenticator
implementation.
BasicAuthenticator
from ibm_cloud_sdk_core.authenticators import BasicAuthenticator
authenticator = BasicAuthenticator(<your_username>, <your_password>)
service = MyService(authenticator=authenticator)
BearerTokenAuthenticator
from ibm_cloud_sdk_core.authenticators import BearerTokenAuthenticator
authenticator = BearerTokenAuthenticator(<your_bearer_token>)
service = MyService(authenticator=authenticator)
# can set bearer token
service.get_authenticator().set_bearer_token('54321');
CloudPakForDataAuthenticator
from ibm_cloud_sdk_core.authenticators import CloudPakForDataAuthenticator
authenticator = CloudPakForDataAuthenticator(
'my_username',
'my_password',
'https://my-cp4d-url',
disable_ssl_verification=True)
service = MyService(authenticator=authenticator)
IAMAuthenticator
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('my_apikey')
service = MyService(authenticator=authenticator)
NoAuthAuthenticator
from ibm_cloud_sdk_core.authenticators import NoAuthAuthenticator
authenticator = NoAuthAuthenticator()
service = MyService(authenticator=authenticator)
Creating an Authenticator from Environmental Configuration
from ibm_cloud_sdk_core import get_authenticator_from_environment
authenticator = get_authenticator_from_environment('Assistant')
service = MyService(authenticator=authenticator)
v3.4.0
v3.3.0
v3.2.0
3.2.0 (2019-07-24)
Features
- assistantv2: DialogRuntimeResponseGeneric model has new params header and results (9d9a85a)
- compare comply: Basic auth support for compare and comply (ad624bb)
- compare comply: ClassifyReturn model changes (a20c81e)
- compare comply: ClassifyReturn model updates (612b8ba)
- compare comply: model changes (e14b93d)
- NLU: NLU Confidence field in EntitesResult and EntityMention (7a915f5)
- speech to text: AcousticModel & LanguageModel have updated field (306e42a)
- speech to text: ProcessingMetrics has processing_metrics field (482ccd6)