cjapy 0.2.2.post3__tar.gz → 0.2.2.post4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/PKG-INFO +1 -1
- cjapy-0.2.2.post4/cjapy/__version__.py +1 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/requestCreator.py +29 -7
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/PKG-INFO +1 -1
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/releases.md +1 -0
- cjapy-0.2.2.post3/cjapy/__version__.py +0 -1
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/LICENSE +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/README.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/__init__.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/cjapy.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/config.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/configs.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/connector.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/projects.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/token_provider.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/workspace.py +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/SOURCES.txt +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/dependency_links.txt +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/requires.txt +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/top_level.txt +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/authenticating_without_config_json.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/cja.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/getting_started.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/logging.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/main.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/projects.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/requestCreator.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/workspace.md +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/pyproject.toml +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/requirements.txt +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/setup.cfg +0 -0
- {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.2-4"
|
|
@@ -212,17 +212,39 @@ class RequestCreator:
|
|
|
212
212
|
"""
|
|
213
213
|
self.__request["settings"]["limit"] = limit
|
|
214
214
|
|
|
215
|
-
def setSearch(self,itemIds:list=None)-> None:
|
|
215
|
+
def setSearch(self,itemIds:list=None,clause:str=None,reset:bool=True)-> None:
|
|
216
216
|
"""
|
|
217
217
|
Set the items ID search in the specified dimension
|
|
218
218
|
Arguments :
|
|
219
|
-
itemIds :
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
itemIds : OPTIONAL : The list of itemId to be searched in the dimension
|
|
220
|
+
clause : OPTIONAL : If you want to set a specific clause such as:
|
|
221
|
+
"( CONTAINS 'Python' ) AND ( CONTAINS 'Platform' )"
|
|
222
|
+
"( CONTAINS 'Python' ) OR ( CONTAINS 'Platform' )"
|
|
223
|
+
"( MATCH 'Python' )" : Equals
|
|
224
|
+
"( BEGINS-WITH 'Python' )"
|
|
225
|
+
"( NOT CONTAINS 'Python' )"
|
|
226
|
+
reset : OPTIONAL : automatically reset the search from your request
|
|
227
|
+
"""
|
|
228
|
+
if reset:
|
|
229
|
+
self.__request['search']={}
|
|
230
|
+
if itemIds is not None:
|
|
231
|
+
self.__request["search"]["itemIds"] = itemIds
|
|
232
|
+
elif clause is not None:
|
|
233
|
+
self.__request["search"]["clause"] = clause
|
|
224
234
|
self.search = True
|
|
225
|
-
|
|
235
|
+
|
|
236
|
+
# def addDimensions(self,dimensionIds:list=None)->None:
|
|
237
|
+
# """
|
|
238
|
+
# In case you want to pass a list of dimensions to the report API.
|
|
239
|
+
# Arguments:
|
|
240
|
+
# dimensionIds : REQUIRED : The list of dimensions IDs you want to use
|
|
241
|
+
# """
|
|
242
|
+
# if dimensionIds is None:
|
|
243
|
+
# raise ValueError("dimensionIds parameters should be used")
|
|
244
|
+
# if type(dimensionIds) != list:
|
|
245
|
+
# raise TypeError("dimensionIds should be a list")
|
|
246
|
+
# self.__request["dimension"] = dimensionIds
|
|
247
|
+
|
|
226
248
|
def removeSearch(self)->None:
|
|
227
249
|
"""
|
|
228
250
|
Remove the search capability in the request.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.2-3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|