Skip to content

Commit 2ac7ca8

Browse files
committed
chore(name): change name to ibm_watson
1 parent 9290c03 commit 2ac7ca8

9 files changed

+23
-21
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ include README.md
22
include LICENSE
33

44
recursive-include examples *.py *.md
5-
recursive-include watson_developer_cloud *.py *.md
5+
recursive-include ibm_watson *.py *.md
66
global-exclude .DS_Store
77
global-exclude *.pyc

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ discovery.set_iam_access_token('<access_token>')
168168

169169
### Username and password
170170
```python
171-
from watson_developer_cloud import DiscoveryV1
171+
from ibm_watson import DiscoveryV1
172172
# In the constructor
173173
discovery = DiscoveryV1(version='2018-08-01', url='<url_as_per_region>', username='<username>', password='<password>')
174174
```
@@ -189,7 +189,7 @@ Version 1.0 focuses on the move to programmatically-generated code for many of t
189189
## Changes for v2.0
190190
`DetailedResponse` which contains the result, headers and HTTP status code is now the default response for all methods.
191191
```python
192-
from watson_developer_cloud import AssistantV1
192+
from ibm_watson import AssistantV1
193193

194194
assistant = AssistantV1(
195195
username='xxx',
@@ -211,7 +211,7 @@ This version includes many breaking changes as a result of standardizing behavio
211211
To set client configs like timeout use the `with_http_config()` function and pass it a dictionary of configs.
212212

213213
```python
214-
from watson_developer_cloud import AssistantV1
214+
from ibm_watson import AssistantV1
215215

216216
assistant = AssistantV1(
217217
username='xxx',
@@ -242,7 +242,7 @@ headers = {
242242
For example, to send a header called `Custom-Header` to a call in Watson Assistant, pass
243243
the headers parameter as:
244244
```python
245-
from watson_developer_cloud import AssistantV1
245+
from ibm_watson import AssistantV1
246246

247247
assistant = AssistantV1(
248248
username='xxx',
@@ -256,7 +256,7 @@ response = assistant.list_workspaces(headers={'Custom-Header': 'custom_value'}).
256256
## Parsing HTTP response info
257257
If you would like access to some HTTP response information along with the response model, you can set the `set_detailed_response()` to `True`. Since Python SDK `v2.0`, it is set to `True`
258258
```python
259-
from watson_developer_cloud import AssistantV1
259+
from ibm_watson import AssistantV1
260260

261261
assistant = AssistantV1(
262262
username='xxx',
@@ -283,7 +283,7 @@ You can use the `get_result()`, `get_headers()` and get_status_code() to return
283283
The Text to Speech service supports synthesizing text to spoken audio using web sockets with the `synthesize_using_websocket`. The Speech to Text service supports recognizing speech to text using web sockets with the `recognize_using_websocket`. These methods need a custom callback class to listen to events. Below is an example of `synthesize_using_websocket`. Note: The service accepts one request per connection.
284284

285285
```py
286-
from watson_developer_cloud.websocket import SynthesizeCallback
286+
from ibm_watson.websocket import SynthesizeCallback
287287

288288
class MySynthesizeCallback(SynthesizeCallback):
289289
def __init__(self):

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ build: off
2525

2626
test_script:
2727

28-
- ps: py.test --reruns 3 --cov=watson_developer_cloud
28+
- ps: py.test --reruns 3 --cov=ibm_watson
2929

3030
deploy: off
3131

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ clean:
5555

5656
document:
5757
rm -rf apis
58-
$(SPHINXAPIDOC) -o apis ../watson_developer_cloud -f -e -T
58+
$(SPHINXAPIDOC) -o apis ../ibm_watson -f -e -T
5959
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
6060
@echo
6161
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

docs/conf.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import sys
44
import os
5-
import watson_developer_cloud
5+
import ibm_watson
66

7-
sys.path.insert(0, os.path.abspath('../watson_developer_cloud/'))
7+
sys.path.insert(0, os.path.abspath('../ibm_watson/'))
88

99
from recommonmark.parser import CommonMarkParser
1010
source_parsers = {
@@ -45,8 +45,8 @@
4545
copyright = u'2015, IBM Corp'
4646
author = u'IBM Corp'
4747

48-
version = watson_developer_cloud.__version__
49-
release = watson_developer_cloud.__version__
48+
version = ibm_watson.__version__
49+
release = ibm_watson.__version__
5050

5151
# The language for content autogenerated by Sphinx. Refer to documentation
5252
# for a list of supported languages.
@@ -55,9 +55,9 @@
5555
# List of patterns, relative to source directory, that match files and
5656
# directories to ignore when looking for source files.
5757
exclude_patterns = ['_build', '_templates',
58-
'apis/modules.rst','apis/watson_developer_cloud.rst',
59-
'apis/watson_developer_cloud.version.rst',
60-
'apis/watson_developer_cloud.watson_developer_cloud_service.rst']
58+
'apis/modules.rst', 'apis/ibm_watson.rst',
59+
'apis/ibm_watson.version.rst',
60+
'apis/ibm_watson.ibm_watson_service.rst']
6161

6262
# If true, '()' will be appended to :func: etc. cross-reference text.
6363
add_function_parentheses = False
@@ -74,7 +74,7 @@
7474
pygments_style = 'sphinx'
7575

7676
# A list of ignored prefixes for module index sorting.
77-
modindex_common_prefix = ['watson_developer_cloud.']
77+
modindex_common_prefix = ['ibm_watson.']
7878

7979
# If true, keep warnings as "system message" paragraphs in the built documents.
8080
#keep_warnings = False

pylint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
55
echo "Python version: $PYTHON_VERSION"
66
if [ $PYTHON_VERSION = '2.7' ]; then
7-
pylint watson_developer_cloud test examples
7+
pylint ibm_watson test examples
88
fi

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python_dotenv>=0.1.5;python_version!='3.2'
55
pylint>=1.4.4
66
tox>=2.9.1
77
pytest-rerunfailures>=3.1
8+
ibm_cloud_sdk_core>=0.2.0
89

910
# code coverage
1011
coverage<5

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
requests>=2.0,<3.0
22
python_dateutil>=2.5.3
3-
websocket-client==0.48.0
3+
websocket-client==0.48.0
4+
ibm_cloud_sdk_core>=0.2.0

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ envlist = lint, py27, py34, py35, py36
44
[testenv:lint]
55
basepython = python2.7
66
deps = pylint
7-
commands = pylint watson_developer_cloud test examples
7+
commands = pylint ibm_watson test examples
88

99
[testenv]
1010
passenv = TOXENV CI TRAVIS*
1111
commands =
12-
py.test --reruns 3 --cov=watson_developer_cloud
12+
py.test --reruns 3 --cov=ibm_watson
1313
codecov -e TOXENV
1414
deps =
1515
-r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)