Skip to content

Releases: watson-developer-cloud/python-sdk

v4.0.2

11 Nov 22:14
Compare
Choose a tag to compare

4.0.2 (2019-11-11)

Bug Fixes

  • semantic: Fix semantic release stale commit (f0eaafa)

v4.0.1

04 Oct 17:51
Compare
Choose a tag to compare

4.0.1 (2019-10-04)

Bug Fixes

  • FileWithMetadata: Hand edit for FileWithMetadata _to_dict() (2d6f6d0)

v4.0.0

04 Oct 15:39
Compare
Choose a tag to compare

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

02 Oct 19:52
Compare
Choose a tag to compare

3.4.2 (2019-10-02)

Bug Fixes

  • core: Update core version for handling proxy in token managers (68ea837)

v3.4.1

27 Sep 21:03
Compare
Choose a tag to compare

3.4.1 (2019-09-27)

Bug Fixes

  • ws: Move customization_weight as part of message (05c7117)

4.0.0rc1

30 Aug 19:10
Compare
Choose a tag to compare
4.0.0rc1 Pre-release
Pre-release

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

22 Aug 00:32
Compare
Choose a tag to compare

3.4.0 (2019-08-22)

Bug Fixes

  • compare comply: BodyCells with some properties corrected to return list of strings (3203692)
  • compare comply: KeyValuePair has a list of value (3b76f2f)

Features

  • compare comply: ClassifyReturn new property contract_currencies (be8d771)

v3.3.0

08 Aug 14:12
Compare
Choose a tag to compare

3.3.0 (2019-08-08)

Features

  • docker: implemented docker file for installing and verifying sdk (5609fd2)

v3.2.0

24 Jul 19:04
Compare
Choose a tag to compare

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)

v3.1.2

03 Jul 22:23
Compare
Choose a tag to compare

3.1.2 (2019-07-03)

Bug Fixes

  • readme: fix project's long_description has invalid markup (c8aa157)