Skip to content

Commit 7e07aeb

Browse files
Merge branch 'master' into feature/compatibilize-client-with-python3
2 parents 67764ed + 99cc134 commit 7e07aeb

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Change Log
22

3+
## [2.0.0]
34
### Updated
5+
- Update `exists_entity()` to receive `table` as parameter
46
- Update API errors code
57
- Remove auto_create_columns parameter from insert method
8+
- Rename SlicingDice API endpoints
69

710
## [1.0.0]
811
### Added
912
- Thin layers around SlicingDice API endpoints
10-
- Automatic regression test script run_query_tests.py with its JSON data
13+
- Automatic regression test script run_query_tests.py with its JSON data

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SlicingDice Official Python Client (v1.0)
1+
# SlicingDice Official Python Client (v2.0.0)
22
### Build Status: [![CircleCI](https://circleci.com/gh/SlicingDice/slicingdice-python.svg?style=svg)](https://circleci.com/gh/SlicingDice/slicingdice-python)
33

44
Official Python client for [SlicingDice](http://www.slicingdice.com/), Data Warehouse and Analytics Database as a Service.
@@ -228,8 +228,8 @@ print(client.insert(insert_data))
228228
}
229229
```
230230

231-
### `exists_entity(ids)`
232-
Verify which entities exist in a database given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-query-exists-entity).
231+
### `exists_entity(ids, table=None)`
232+
Verify which entities exist in a table (uses `default` table if not provided) given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-query-exists-entity).
233233

234234
#### Request example
235235

pyslicer/client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,12 @@ def top_values(self, query):
277277
req_type="post",
278278
key_level=0)
279279

280-
def exists_entity(self, ids):
280+
def exists_entity(self, ids, table=None):
281281
"""Make a exists entity query
282282
283283
Keyword arguments:
284-
ids -- A list with entity to check if exists
284+
ids -- A list with entities to check if exists
285+
table -- In which table entities check be checked
285286
"""
286287
base_url = self._wrapper_test()
287288
url = base_url + URLResources.QUERY_EXISTS_ENTITY
@@ -291,6 +292,8 @@ def exists_entity(self, ids):
291292
query = {
292293
'ids': ids
293294
}
295+
if table:
296+
query['table'] = table
294297
return self._make_request(
295298
url=url,
296299
json_data=ujson.dumps(query),

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def read(fname):
77

88
setup(
99
name="pyslicer",
10-
version="1.0.0",
10+
version="2.0.0",
1111
author="SlicingDice LLC",
1212
author_email="help@slicingdice.com",
1313
description="Official Python client for SlicingDice, Data Warehouse and Analytics Database as a Service.",

0 commit comments

Comments
 (0)