aepp 0.4.2__py3-none-any.whl → 0.4.2.post1__py3-none-any.whl
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.
- aepp/__version__.py +1 -1
- aepp/queryservice.py +21 -13
- aepp/synchronizer.py +8 -2
- {aepp-0.4.2.dist-info → aepp-0.4.2.post1.dist-info}/METADATA +1 -1
- {aepp-0.4.2.dist-info → aepp-0.4.2.post1.dist-info}/RECORD +8 -8
- {aepp-0.4.2.dist-info → aepp-0.4.2.post1.dist-info}/WHEEL +0 -0
- {aepp-0.4.2.dist-info → aepp-0.4.2.post1.dist-info}/licenses/LICENSE +0 -0
- {aepp-0.4.2.dist-info → aepp-0.4.2.post1.dist-info}/top_level.txt +0 -0
aepp/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.4.2"
|
|
1
|
+
__version__ = "0.4.2-1"
|
aepp/queryservice.py
CHANGED
|
@@ -706,27 +706,35 @@ class QueryService:
|
|
|
706
706
|
res = self.connector.deleteData(self.endpoint + path)
|
|
707
707
|
return res
|
|
708
708
|
|
|
709
|
-
def createQueryTemplate(self, queryData: dict = None) -> dict:
|
|
709
|
+
def createQueryTemplate(self, queryData: dict = None,name: str = None,sql: str = None,queryParameters: dict = None) -> dict:
|
|
710
710
|
"""
|
|
711
711
|
Create a query template based on the dictionary passed.
|
|
712
712
|
Arguments:
|
|
713
|
-
queryData : REQUIED : An object that contains "sql"
|
|
714
|
-
|
|
713
|
+
queryData : REQUIED : An object that contains "sql" and "name" keys.
|
|
714
|
+
name : OPTIONAL : Name of the template
|
|
715
|
+
sql : OPTIONAL : SQL query as a string.
|
|
716
|
+
queryParameters : OPTIONAL : in case you are using template, providing the paramter in a dictionary.
|
|
717
|
+
more info : https://developer.adobe.com/experience-platform-apis/references/query-service/#tag/Query-Templates
|
|
715
718
|
"""
|
|
716
719
|
path = "/query-templates"
|
|
717
720
|
if self.loggingEnabled:
|
|
718
721
|
self.logger.debug(f"Starting createTemplate")
|
|
719
|
-
if
|
|
720
|
-
if (
|
|
721
|
-
"sql" not in queryData.keys()
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
)
|
|
722
|
+
if queryData is not None:
|
|
723
|
+
if isinstance(queryData, dict):
|
|
724
|
+
if ("sql" not in queryData.keys() or "name" not in queryData.keys()):
|
|
725
|
+
raise KeyError(
|
|
726
|
+
"Minimum key value are not respected.\nPlease see here for more info :\nhttps://www.adobe.io/apis/experienceplatform/home/api-reference.html#/Query-Templates/create_query_template "
|
|
727
|
+
)
|
|
728
|
+
else:
|
|
729
|
+
raise Exception("expected a dictionary for queryData")
|
|
728
730
|
else:
|
|
729
|
-
|
|
731
|
+
if name is None or sql is None:
|
|
732
|
+
raise Exception(
|
|
733
|
+
"Either queryData dictionary or name and sql parameters are required."
|
|
734
|
+
)
|
|
735
|
+
queryData = {"name": name, "sql": sql}
|
|
736
|
+
if queryParameters is not None:
|
|
737
|
+
queryData["queryParameters"] = queryParameters
|
|
730
738
|
res = self.connector.postData(
|
|
731
739
|
self.endpoint + path, headers=self.header, data=queryData
|
|
732
740
|
)
|
aepp/synchronizer.py
CHANGED
|
@@ -1025,6 +1025,12 @@ class Synchronizer:
|
|
|
1025
1025
|
raise Exception("the audience could not be created in the target sandbox")
|
|
1026
1026
|
else: ## audience already exists in target
|
|
1027
1027
|
if verbose:
|
|
1028
|
-
print(f"audience '{audience_name}' already exists in target {target},
|
|
1029
|
-
|
|
1028
|
+
print(f"audience '{audience_name}' already exists in target {target}, updating it")
|
|
1029
|
+
t_audience = [el for el in t_audiences if el['name'] == audience_name][0]
|
|
1030
|
+
t_audience['description'] = baseAudience.get('description','')
|
|
1031
|
+
t_audience['expression'] = baseAudience.get('expression',[])
|
|
1032
|
+
t_audience['ansibleDataModel'] = baseAudience.get('ansibleDataModel',{})
|
|
1033
|
+
t_audience['evaluationInfo'] = baseAudience.get('evaluationInfo',{'batch': {'enabled': True}, 'continuous': {'enabled': False},'synchronous': {'enabled': False}})
|
|
1034
|
+
res = targetAudiences.putAudience(t_audience['id'],t_audience)
|
|
1035
|
+
self.dict_targetComponents[target]['audience'][audience_name] = res
|
|
1030
1036
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
aepp/__init__.py,sha256=d5hE6VcHz52B5o_AbYO368iG8FTsJlt91nBWej8WL8A,26381
|
|
2
|
-
aepp/__version__.py,sha256=
|
|
2
|
+
aepp/__version__.py,sha256=xKsus_Aysiezv53BE4nW5FKd7mCc8QtDhoJUymK_WOw,23
|
|
3
3
|
aepp/accesscontrol.py,sha256=PB3FcrO4bvDjdNxjHx7p_20hp4ahBXewoOSxuTGMXC8,17423
|
|
4
4
|
aepp/catalog.py,sha256=hK9m3SAP0fhgkYqu14Tcfq14qBhw54tLCOF0mH31b1M,68237
|
|
5
5
|
aepp/classmanager.py,sha256=CTYGkg5ygB8HtRia6DfT9WLBqXJOVg7pSM9jBB25Bqw,64707
|
|
@@ -24,17 +24,17 @@ aepp/ingestion.py,sha256=OamE7NDei2Ev5vXIDkMlzvdyBaN41nkIGmpAnUlQoZI,22372
|
|
|
24
24
|
aepp/observability.py,sha256=bKe74nlXYB5E5syh7Lj4VqIgwUI3OjMxK383P05EdLU,9951
|
|
25
25
|
aepp/policy.py,sha256=JbpvfCKJl2kE2McK2mn_ZI5HKd_6pTnrfMoUdyJesWQ,24924
|
|
26
26
|
aepp/privacyservice.py,sha256=V6BkJeZG1LDBCyEQm9Gx0i68iRHG6uxSJiVnXzkHapI,8790
|
|
27
|
-
aepp/queryservice.py,sha256=
|
|
27
|
+
aepp/queryservice.py,sha256=lvyRJ9Lwj8YZpINuHj-xKZry9WVYuevTb9NEvkKYyHo,62311
|
|
28
28
|
aepp/sandboxes.py,sha256=UwlSFkO2OOmH--6ISz8rxwDu2LcLH1MPqoH7yOEAZHc,29363
|
|
29
29
|
aepp/schema.py,sha256=PmYXSkmhmVVUbXQqsEVSAaTMYKOYha8FIYoySwPgMs4,122150
|
|
30
30
|
aepp/schemamanager.py,sha256=hwItd4vXsPFeV25gX1Fbeiu07-BCg4z_VRQREMgJZ58,50738
|
|
31
31
|
aepp/segmentation.py,sha256=oSgR2yx4nawYN5XAeHV_wefvmXEf0nb-bCguaDmp8F8,43555
|
|
32
32
|
aepp/sensei.py,sha256=oYNy5BSWAEqsDkEexcQso6NfA6ntGGMnCOyHri0pJs8,7761
|
|
33
33
|
aepp/som.py,sha256=XNm_Lu2wt2kpSSpldLptuER2eludFXeO9fI6i3iNCzo,34175
|
|
34
|
-
aepp/synchronizer.py,sha256=
|
|
34
|
+
aepp/synchronizer.py,sha256=nkZ3dn335JmwzzO3PqYkMhU7ZfiOHGKObfL1yZrnHLY,77932
|
|
35
35
|
aepp/tags.py,sha256=t2qBallTcWR4IOXcDBmrPpqjbSay1z3E2bcRijzVm1s,17641
|
|
36
36
|
aepp/utils.py,sha256=tG-YVXylm38-bynqfp5N_Mzyo7mhlZj-dLo7wLoO4tM,1200
|
|
37
|
-
aepp-0.4.2.dist-info/licenses/LICENSE,sha256=HjYTlfne3BbS5gNHzNqJ5COCiTQLUdf87QkzRyFbE4Y,10337
|
|
37
|
+
aepp-0.4.2.post1.dist-info/licenses/LICENSE,sha256=HjYTlfne3BbS5gNHzNqJ5COCiTQLUdf87QkzRyFbE4Y,10337
|
|
38
38
|
tests/__init__.py,sha256=d6zWJsJFZrQd5wAYM7sezSxwXbuMMWfNPkK_vpaUzFA,623
|
|
39
39
|
tests/catalog_test.py,sha256=O4kkG0C_dXk3E77pSzWIt1ewfyKjfZqgbJmBwWwx0po,2246
|
|
40
40
|
tests/dataaccess_test.py,sha256=bnHwOjPPauTM8s1c6O7iUYC--gqt6tPzT94aEZHDC-c,1238
|
|
@@ -44,7 +44,7 @@ tests/exportDatasetToDatalandingZone_test.py,sha256=193AgQR8yhnQmRWV9pgYz1X2Hz-Y
|
|
|
44
44
|
tests/flowservice_test.py,sha256=Y1mpYWbKYL_x-ZlIY-EuOuNvlzVV1ERlKseDO7gN3Ss,4208
|
|
45
45
|
tests/schema_test.py,sha256=6UsgdsizKmii1hzREpBEKWvZouXdJMvU68UKSxlt1uk,2774
|
|
46
46
|
tests/som_test.py,sha256=a4ut0pEg1HJVMTESaPITmj7YkF54eWCMzKxTMIS-VvM,12101
|
|
47
|
-
aepp-0.4.2.dist-info/METADATA,sha256=
|
|
48
|
-
aepp-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
-
aepp-0.4.2.dist-info/top_level.txt,sha256=Gn88pv1ywuEAgOvhmmXXhN4dosEfCrBNDskje3nqS34,11
|
|
50
|
-
aepp-0.4.2.dist-info/RECORD,,
|
|
47
|
+
aepp-0.4.2.post1.dist-info/METADATA,sha256=C0qoq_LfXGblXogvCA41CfLELxbQVbTM4pKVqkxUDNs,5476
|
|
48
|
+
aepp-0.4.2.post1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
aepp-0.4.2.post1.dist-info/top_level.txt,sha256=Gn88pv1ywuEAgOvhmmXXhN4dosEfCrBNDskje3nqS34,11
|
|
50
|
+
aepp-0.4.2.post1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|