@@ -19,8 +19,6 @@ Whether you want to test the client installation or simply check more examples o
1919
2020In order to install the Python client, you only need to use [ ` pip ` ] ( https://packaging.python.org/installing/ ) .
2121
22- ** IMPORTANT:** Currently we only support Python 2.7
23-
2422``` bash
2523pip install pyslicer --extra-index-url=https://packagecloud.io/slicingdice/clients/pypi/simple
2624```
@@ -63,7 +61,7 @@ query_data = {
6361 }
6462 ]
6563}
66- print client.count_entity(query_data)
64+ print ( client.count_entity(query_data) )
6765```
6866
6967## Reference
@@ -93,7 +91,7 @@ Get information about current database(related to api keys informed on construct
9391``` python
9492from pyslicer import SlicingDice
9593client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
96- print client.get_database()
94+ print ( client.get_database() )
9795```
9896
9997#### Output example
@@ -115,7 +113,7 @@ Get all created columns, both active and inactive ones. This method corresponds
115113``` python
116114from pyslicer import SlicingDice
117115client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
118- print client.get_columns()
116+ print ( client.get_columns() )
119117```
120118
121119#### Output example
@@ -161,7 +159,7 @@ column = {
161159 " description" : " Year of manufacturing" ,
162160 " storage" : " latest-value"
163161}
164- print client.create_column(column)
162+ print ( client.create_column(column) )
165163```
166164
167165#### Output example
@@ -216,7 +214,7 @@ insert_data = {
216214 },
217215 " auto-create" : [" table" , " column" ]
218216}
219- print client.insert(insert_data)
217+ print ( client.insert(insert_data) )
220218```
221219
222220#### Output example
@@ -243,7 +241,7 @@ ids = [
243241 " user2@slicingdice.com" ,
244242 " user3@slicingdice.com"
245243]
246- print client.exists_entity(ids)
244+ print ( client.exists_entity(ids) )
247245```
248246
249247#### Output example
@@ -271,7 +269,7 @@ Count the number of inserted entities in the whole database. This method corresp
271269from pyslicer import SlicingDice
272270client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
273271
274- print client.count_entity_total()
272+ print ( client.count_entity_total() )
275273```
276274
277275#### Output example
@@ -297,7 +295,7 @@ client = SlicingDice('MASTER_OR_READ_API_KEY', uses_test_endpoint=False)
297295
298296tables = [' default' ]
299297
300- print client.count_entity_total(tables)
298+ print ( client.count_entity_total(tables) )
301299```
302300
303301#### Output example
@@ -350,7 +348,7 @@ query = [
350348 " bypass-cache" : False
351349 }
352350]
353- print client.count_entity(query)
351+ print ( client.count_entity(query) )
354352```
355353
356354#### Output example
@@ -406,7 +404,7 @@ query = [
406404 " bypass-cache" : True
407405 }
408406]
409- print client.count_event(query)
407+ print ( client.count_event(query) )
410408```
411409
412410#### Output example
@@ -438,7 +436,7 @@ query = {
438436 " car-model" : 3
439437 }
440438}
441- print client.top_values(query)
439+ print ( client.top_values(query) )
442440```
443441
444442#### Output example
@@ -499,7 +497,7 @@ query = {
499497 }
500498 ]
501499}
502- print client.aggregation(query)
500+ print ( client.aggregation(query) )
503501```
504502
505503#### Output example
@@ -537,7 +535,7 @@ Get all saved queries. This method corresponds to a [GET request at /query/saved
537535``` python
538536from pyslicer import SlicingDice
539537client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
540- print client.get_saved_queries()
538+ print ( client.get_saved_queries() )
541539```
542540
543541#### Output example
@@ -606,7 +604,7 @@ query = {
606604 ],
607605 " cache-period" : 100
608606}
609- print client.create_saved_query(query)
607+ print ( client.create_saved_query(query) )
610608```
611609
612610#### Output example
@@ -659,7 +657,7 @@ new_query = {
659657 ],
660658 " cache-period" : 100
661659}
662- print client.update_saved_query(' my-saved-query' , new_query)
660+ print ( client.update_saved_query(' my-saved-query' , new_query) )
663661```
664662
665663#### Output example
@@ -695,7 +693,7 @@ Executed a saved query at SlicingDice. This method corresponds to a [GET request
695693``` python
696694from pyslicer import SlicingDice
697695client = SlicingDice(' MASTER_OR_READ_API_KEY' , uses_test_endpoint = False )
698- print client.get_saved_query(' my-saved-query' )
696+ print ( client.get_saved_query(' my-saved-query' ) )
699697```
700698
701699#### Output example
@@ -732,7 +730,7 @@ Delete a saved query at SlicingDice. This method corresponds to a [DELETE reques
732730``` python
733731from pyslicer import SlicingDice
734732client = SlicingDice(' MASTER_API_KEY' , uses_test_endpoint = False )
735- print client.delete_saved_query(' my-saved-query' )
733+ print ( client.delete_saved_query(' my-saved-query' ) )
736734```
737735
738736#### Output example
@@ -784,7 +782,7 @@ query = {
784782 " columns" : [" car-model" , " year" ],
785783 " limit" : 2
786784}
787- print client.result(query)
785+ print ( client.result(query) )
788786```
789787
790788#### Output example
@@ -832,7 +830,7 @@ query = {
832830 " columns" : [" car-model" , " year" ],
833831 " limit" : 2
834832}
835- print client.score(query)
833+ print ( client.score(query) )
836834```
837835
838836#### Output example
0 commit comments