Skip to content

Commit d3cd773

Browse files
committed
Remove Swiftype reference in the code.
1 parent 071e27e commit d3cd773

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
You can install the latest version of the Swiftype client using `pip`:
2222

23-
pip install swiftype
23+
pip install elastic-site-search
2424

2525
To install locally, clone this repository, `cd` into the directory and run:
2626

@@ -34,8 +34,8 @@ To install locally, clone this repository, `cd` into the directory and run:
3434

3535
2. Configure your client:
3636

37-
from swiftype import swiftype
38-
client = swiftype.Client(api_key='YOUR_API_KEY')
37+
from elastic_site_search import Client
38+
client = Client(api_key='YOUR_API_KEY')
3939

4040

4141
3. Create an `Engine` named e.g. `youtube`:
@@ -103,8 +103,8 @@ or
103103

104104
Before issuing commands to the API, configure the client with your API key:
105105

106-
import swiftype
107-
client = swiftype.Client(api_key='YOUR_API_KEY')
106+
from elastic_site_search import Client
107+
client = Client(api_key='YOUR_API_KEY')
108108

109109
You can find your API key in your [Account Settings](https://swiftype.com/user/edit).
110110

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from .client import Client
12
from .version import VERSION
23

34
__version__ = VERSION
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,29 @@
22

33
from setuptools import setup, find_packages
44

5-
from swiftype.version import VERSION
5+
from elastic_site_search.version import VERSION
66

77
setup(
8-
name = 'swiftype',
8+
name = 'elastic-site-search',
99
version = VERSION,
10-
description = 'Swiftype API Client for Python',
11-
author = 'Swiftype',
12-
author_email = 'team@swiftype.com',
13-
url = 'https://swiftype.com/',
10+
description = 'Elastic Site Search API Client for Python',
11+
author = 'Elastic',
12+
author_email = 'support@elastic.co',
13+
url = 'https://github.com/elastic/site-search-python',
1414
packages = find_packages(),
1515
install_requires = ["anyjson", "six"],
1616
test_suite='nose.collector',
1717
classifiers = [
1818
'Intended Audience :: Developers',
1919
'Operating System :: OS Independent',
20-
'Programming Language :: Python',
20+
'Programming Language :: Python :: 2',
21+
'Programming Language :: Python :: 2.7',
22+
'Programming Language :: Python :: 3',
23+
'Programming Language :: Python :: 3.3',
24+
'Programming Language :: Python :: 3.4',
25+
'Programming Language :: Python :: 3.5',
26+
'Programming Language :: Python :: 3.6',
2127
'Topic :: Software Development :: Libraries :: Python Modules',
28+
'License :: OSI Approved :: Apache Software License',
2229
],
2330
)

tests/test_swiftype.py renamed to tests/test_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from swiftype import swiftype
1+
from elastic_site_search import Client
22
import os
33
import time
44
import unittest2 as unittest
@@ -14,7 +14,7 @@ def setUp(self):
1414
except:
1515
api_key = "a-test-api-key"
1616

17-
self.client = swiftype.Client(api_key=api_key, host='localhost:3000')
17+
self.client = Client(api_key=api_key, host='localhost:3000')
1818
self.engine = 'api-test'
1919
self.document_type = 'books'
2020

@@ -291,7 +291,7 @@ def __create_temporary_engine(self, name = None):
291291
class TestClientUsernameAndPassword(unittest.TestCase):
292292

293293
def setUp(self):
294-
self.client = swiftype.Client(
294+
self.client = Client(
295295
username='some_user',
296296
password='some_pasword',
297297
host='localhost:3000'
@@ -314,7 +314,7 @@ def setUp(self):
314314

315315
client_id = '3e4fd842fc99aecb4dc50e5b88a186c1e206ddd516cdd336da3622c4afd7e2e9'
316316
client_secret = '4441879b5e2a9c3271f5b1a4bc223b715f091e5ed20fe75d1352e1290c7a6dfb'
317-
self.client = swiftype.Client(api_key=api_key, client_id=client_id, client_secret=client_secret, host='localhost:3000')
317+
self.client = Client(api_key=api_key, client_id=client_id, client_secret=client_secret, host='localhost:3000')
318318

319319
def test_users(self):
320320
with vcr.use_cassette('fixtures/users.yaml'):
@@ -365,7 +365,7 @@ def setUp(self):
365365
access_token = '6cf7fbd297f00a8e3863a0595f55ff7d141cbef2fcbe00159d0f7403649b384e'
366366
self.engine = 'myusersengine'
367367
self.document_type = 'videos'
368-
self.client = swiftype.Client(access_token=access_token, host='localhost:3000')
368+
self.client = Client(access_token=access_token, host='localhost:3000')
369369

370370
def test_platform_engine_create(self):
371371
with vcr.use_cassette('fixtures/platform_engine_create.yaml'):

0 commit comments

Comments
 (0)