Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
ad44aac
Generate Text to Speech (#332)
ammardodin Feb 9, 2018
85e8231
Generate Speech to Text (#335)
ammardodin Feb 13, 2018
0f9c798
Add global transaction id and transaction id (#356)
ehdsouza Feb 14, 2018
f8b7768
Reorganize unit tests and add test-header
ehdsouza Feb 14, 2018
aa32016
Remove test header from examples folder
ehdsouza Feb 14, 2018
5fc6615
remove deprecated services (#358)
ehdsouza Feb 14, 2018
a819f38
changing the check (#360)
ehdsouza Feb 14, 2018
2993c16
Regenerate conversation and add more tests
ehdsouza Feb 14, 2018
20fbed6
Remove dialog import
ehdsouza Feb 15, 2018
059cba5
Regenerate discovery
ehdsouza Feb 15, 2018
848c932
Regenerate nbc
ehdsouza Feb 15, 2018
662afd2
Regenerate nlu
ehdsouza Feb 15, 2018
4caa81a
Regenerate visual recognition
ehdsouza Feb 15, 2018
82b3920
Regenerate language translator
ehdsouza Feb 15, 2018
8e1db1e
Regenerate tone analyzer
ehdsouza Feb 15, 2018
663bff4
Revert back for create_classifier and update_classifier
ehdsouza Feb 15, 2018
3617806
Merge pull request #369 from watson-developer-cloud/codegen/tone-anal…
germanattanasio Feb 15, 2018
980f662
Merge pull request #368 from watson-developer-cloud/codegen/language-…
germanattanasio Feb 15, 2018
270ebc6
Merge pull request #364 from watson-developer-cloud/codegen/nlc
germanattanasio Feb 15, 2018
94db81a
Merge pull request #365 from watson-developer-cloud/codegen/nlu
germanattanasio Feb 15, 2018
1850dd4
Merge pull request #363 from watson-developer-cloud/codegen/discovery
germanattanasio Feb 15, 2018
b1458d8
Merge pull request #362 from watson-developer-cloud/codegen/conversation
germanattanasio Feb 15, 2018
c74abb3
Merge pull request #367 from watson-developer-cloud/codegen/visual-re…
germanattanasio Feb 15, 2018
8dfc0f9
Remove virtualenv (#370)
ehdsouza Feb 16, 2018
885f680
feat(SpeechToText): Add support for Web Sockets (#376)
ehdsouza Mar 2, 2018
d487608
fix(conversation): Adding two step process that supports special nami…
ehdsouza Mar 5, 2018
29b04b8
fix(python sdk conversation): handling renamed props in nested json o…
ehdsouza Mar 6, 2018
d351a19
Merge pull request #384 from watson-developer-cloud/conversation-example
germanattanasio Mar 6, 2018
598f8f2
feat(python discovery): regenerate discovery
ehdsouza Mar 7, 2018
01de0d6
fix(python discovery): correcting the username and password
ehdsouza Mar 7, 2018
e067605
style(python language translator): regenerated service
ehdsouza Mar 7, 2018
aa092b1
chore: regenerated natural language classifier
ehdsouza Mar 7, 2018
dfa592a
test: Adding random generator
ehdsouza Mar 7, 2018
e31cbbf
style: Adding # coding: utf-8
ehdsouza Mar 7, 2018
76c0928
chore: regenerate nlu
ehdsouza Mar 7, 2018
d226c9e
style: regenerate personality insights
ehdsouza Mar 7, 2018
28855ed
Merge pull request #390 from watson-developer-cloud/codegen/personali…
germanattanasio Mar 7, 2018
074b61b
Merge pull request #389 from watson-developer-cloud/codegen/nlu
germanattanasio Mar 7, 2018
c3812e3
Merge pull request #388 from watson-developer-cloud/codegen/nlc
germanattanasio Mar 7, 2018
b705442
Merge pull request #387 from watson-developer-cloud/codegen/language-…
germanattanasio Mar 7, 2018
f8d655b
Remove pytest_cache
ehdsouza Mar 7, 2018
c309df6
refactor(python regenerate): regenerate tone analyzer
ehdsouza Mar 7, 2018
25108e2
Remove file
ehdsouza Mar 7, 2018
cc90b0b
Regenerate text to speech
ehdsouza Mar 7, 2018
1c3d728
Regenerate speech to text
ehdsouza Mar 7, 2018
2b63901
Merge pull request #386 from watson-developer-cloud/codegen/discovery
germanattanasio Mar 7, 2018
c5aef04
Regenerate visual recognition
ehdsouza Mar 7, 2018
19df9ba
Remove transfer encoding
ehdsouza Mar 7, 2018
26c7b95
Merge pull request #393 from watson-developer-cloud/codegen/speech-to…
germanattanasio Mar 7, 2018
84ee57a
accept is optional
ehdsouza Mar 7, 2018
179dfe9
Merge pull request #392 from watson-developer-cloud/codegen/text-to-s…
germanattanasio Mar 8, 2018
7b9de7c
Merge pull request #391 from watson-developer-cloud/codegen/tone-anal…
germanattanasio Mar 8, 2018
0447f90
Taking care of pylon issues
ehdsouza Mar 8, 2018
180d48e
Merge pull request #395 from watson-developer-cloud/pylint
germanattanasio Mar 8, 2018
5847d7a
fix(lint): update code based on pylint
germanattanasio Mar 8, 2018
c52250d
fix(STT,TTS): fix lint
germanattanasio Mar 8, 2018
7d6d8fa
fix(Travis): update encrypted file
germanattanasio Mar 8, 2018
cfdc398
Merge branch 'next' into codegen/visual-recognition
germanattanasio Mar 8, 2018
8b79044
Merge pull request #394 from watson-developer-cloud/codegen/visual-re…
germanattanasio Mar 8, 2018
15f6f0b
refactor: renaming integration tests
ehdsouza Mar 8, 2018
18f6c7c
Instructions for pyaudio
ehdsouza Mar 8, 2018
3663485
Merge pull request #396 from watson-developer-cloud/rename
germanattanasio Mar 8, 2018
0cb0c18
docs(python sdk): Updating the setup.py with new packages
ehdsouza Mar 8, 2018
8685317
Merge pull request #397 from watson-developer-cloud/updateSetup
germanattanasio Mar 8, 2018
7da18a5
Merge branch 'develop' into next
germanattanasio Mar 8, 2018
3c102ad
Updating readme with dependencies
ehdsouza Mar 8, 2018
843edeb
Formatting the readme
ehdsouza Mar 8, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .env.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# lint Python modules using external checkers.
[MASTER]
ignore=SVN
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622,inconsistent-return-statements
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ cache: pip
before_install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_6e98b3e8e789_key -iv $encrypted_6e98b3e8e789_iv -in .env.enc -out .env -d || true'
install: pip install tox-travis
script: tox
script:
- pip install -U python-dotenv
- tox
before_deploy:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Watson Developer Cloud Python SDK

[![Build Status](https://travis-ci.org/watson-developer-cloud/python-sdk.svg)](https://travis-ci.org/watson-developer-cloud/python-sdk)
[![Build Status](https://travis-ci.org/watson-developer-cloud/python-sdk.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/python-sdk)
[![Slack](https://wdc-slack-inviter.mybluemix.net/badge.svg)](https://wdc-slack-inviter.mybluemix.net)
[![codecov.io](https://codecov.io/github/watson-developer-cloud/python-sdk/coverage.svg?branch=master)](https://codecov.io/github/watson-developer-cloud/python-sdk?branch=master)
[![Latest Stable Version](https://img.shields.io/pypi/v/watson-developer-cloud.svg)](https://pypi.python.org/pypi/watson-developer-cloud)
Expand Down Expand Up @@ -66,7 +66,7 @@ Version 1.0 focuses on the move to programmatically-generated code for many of t
## Migration
This version includes many breaking changes as a result of standardizing behavior across the new generated services. Full details on migration from previous versions can be found [here](https://github.com/watson-developer-cloud/python-sdk/wiki/Migration).

## Configuring the http client
## Configuring the http client (Supported from v1.1.0)
To set client configs like timeout use the `with_http_config()` function and pass it a dictionary of configs.

```python
Expand All @@ -86,11 +86,13 @@ print(json.dumps(response, indent=2))
## Dependencies

* [requests]
* `pysolr` >=3.3, <4.0
* `argparse` >=1.3.0
* `pyOpenSSL` >=16.2.0
* `python_dateutil` >= 2.5.3
* [responses] for testing
* Following for web sockets support in speech to text
* `autobahn` >= 0.10.9
* `Twisted` >= 13.2.0
* `pyOpenSSL` >= 16.2.0
* `service-identity` >= 17.0.0

## Contributing

Expand Down
21 changes: 0 additions & 21 deletions examples/alchemy_data_news_v1.py

This file was deleted.

48 changes: 0 additions & 48 deletions examples/alchemy_language_v1.py

This file was deleted.

1 change: 1 addition & 0 deletions examples/authorization_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
username='YOUR SERVICE USERNAME',
password='YOUR SERVICE PASSWORD')


print(json.dumps(authorization.get_token(url=SpeechToTextV1.default_url),
indent=2))
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def invokeToneConversation(payload, maintainToneHistoryInContext):
with application-specific code to process the err or data object
returned by the Conversation Service.
"""
tone = tone_analyzer.tone(tone_input=payload['input']['text'])
tone = tone_analyzer.tone(tone_input=payload['input']['text'], content_type='application/json')
conversation_payload = tone_detection.\
updateUserTone(payload, tone, maintainToneHistoryInContext)
response = conversation.message(workspace_id=workspace_id,
Expand Down
Loading