aepp 0.4.3.post2__tar.gz → 0.4.3.post3__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.
- {aepp-0.4.3.post2/aepp.egg-info → aepp-0.4.3.post3}/PKG-INFO +1 -1
- aepp-0.4.3.post3/aepp/__version__.py +1 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/cli/__main__.py +11 -8
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/flowservice.py +1 -1
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/synchronizer.py +3 -2
- {aepp-0.4.3.post2 → aepp-0.4.3.post3/aepp.egg-info}/PKG-INFO +1 -1
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/pyproject.toml +1 -1
- aepp-0.4.3.post2/aepp/__version__.py +0 -1
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/LICENSE +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/MANIFEST.in +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/README.md +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/__init__.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/accesscontrol.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/catalog.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/classmanager.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/cli/__init__.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/config.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/configs.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/connector.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/customerprofile.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/dataaccess.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/dataprep.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/datasets.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/datatypemanager.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/deletion.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/destination.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/destinationinstanceservice.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/edge.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/exportDatasetToDataLandingZone.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/fieldgroupmanager.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/hygiene.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/identity.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/ingestion.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/observability.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/policy.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/privacyservice.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/queryservice.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/sandboxes.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/schema.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/schemamanager.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/segmentation.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/sensei.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/som.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/tags.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/utils.py +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/SOURCES.txt +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/dependency_links.txt +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/entry_points.txt +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/requires.txt +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/top_level.txt +0 -0
- {aepp-0.4.3.post2 → aepp-0.4.3.post3}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.3-3"
|
|
@@ -33,23 +33,27 @@ class ServiceShell(cmd.Cmd):
|
|
|
33
33
|
super().__init__()
|
|
34
34
|
self.config = None
|
|
35
35
|
self.connectInstance = True
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
config_path = Path(kwargs.get("config_file"))
|
|
37
|
+
if not config_path.is_absolute():
|
|
38
|
+
config_path = Path.cwd() / config_path
|
|
39
|
+
if config_path.exists() and kwargs.get("config_file") is not None:
|
|
40
|
+
print("Loading configuration from file...")
|
|
41
|
+
print(f"Config path: {config_path}")
|
|
42
|
+
dict_config = json.load(FileIO(config_path))
|
|
39
43
|
self.sandbox = kwargs.get("sandbox",dict_config.get("sandbox-name","prod"))
|
|
40
44
|
self.secret = dict_config.get("secret",kwargs.get("secret"))
|
|
41
45
|
self.org_id = dict_config.get("org_id",kwargs.get("org_id"))
|
|
42
46
|
self.client_id = dict_config.get("client_id",kwargs.get("client_id"))
|
|
43
47
|
self.scopes = dict_config.get("scopes",kwargs.get("scopes"))
|
|
44
|
-
self.connectInstance = True
|
|
45
48
|
else:
|
|
46
49
|
self.sandbox = kwargs.get("sandbox","prod")
|
|
47
50
|
self.secret = kwargs.get("secret")
|
|
48
51
|
self.org_id = kwargs.get("org_id")
|
|
49
52
|
self.client_id = kwargs.get("client_id")
|
|
50
53
|
self.scopes = kwargs.get("scopes")
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
print(f"Debug: sandbox={self.sandbox}, secret={self.secret}, org_id={self.org_id}, client_id={self.client_id}, scopes={self.scopes}")
|
|
55
|
+
self.connectInstance = True
|
|
56
|
+
if self.sandbox is not None and self.secret is not None and self.org_id is not None and self.client_id is not None and self.scopes is not None:
|
|
53
57
|
print("Auto-configuring connection...")
|
|
54
58
|
self.config = aepp.configure(
|
|
55
59
|
connectInstance=self.connectInstance,
|
|
@@ -1227,8 +1231,7 @@ def main():
|
|
|
1227
1231
|
parser.add_argument("-sc", "--scopes", help="Scopes")
|
|
1228
1232
|
parser.add_argument("-cid", "--client_id", help="Auto-login client ID")
|
|
1229
1233
|
parser.add_argument("-cf", "--config_file", help="Path to config file", default=None)
|
|
1230
|
-
args = parser.parse_args()
|
|
1231
|
-
# Initialize the shell
|
|
1234
|
+
args = parser.parse_args()
|
|
1232
1235
|
shell = ServiceShell(**vars(args))
|
|
1233
1236
|
try:
|
|
1234
1237
|
shell.cmdloop()
|
|
@@ -1993,7 +1993,7 @@ class FlowManager:
|
|
|
1993
1993
|
|
|
1994
1994
|
def __init__(self,
|
|
1995
1995
|
flowId:str=None,
|
|
1996
|
-
config: Union[dict,
|
|
1996
|
+
config: Union[dict,ConnectObject] = aepp.config.config_object
|
|
1997
1997
|
)->None:
|
|
1998
1998
|
"""
|
|
1999
1999
|
Instantiate a Flow Manager Instance based on the flow ID.
|
|
@@ -15,11 +15,12 @@ from copy import deepcopy
|
|
|
15
15
|
from typing import Union
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
from io import FileIO
|
|
18
|
+
from .configs import ConnectObject
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
class Synchronizer:
|
|
21
22
|
## TO DO -> Add support for local environment
|
|
22
|
-
def __init__(self,targets:list=None,config:
|
|
23
|
+
def __init__(self,targets:list=None,config:'ConnectObject'=None,baseSandbox:str=None,region:str='nld2',localFolder:str=None):
|
|
23
24
|
"""
|
|
24
25
|
Setup the synchronizor object with the base sandbox and target sandbox.
|
|
25
26
|
Arguments:
|
|
@@ -42,7 +43,7 @@ class Synchronizer:
|
|
|
42
43
|
self.localfolder = None
|
|
43
44
|
if targets is None:
|
|
44
45
|
raise ValueError("a list of target sandboxes must be provided - at least one")
|
|
45
|
-
if config is None or type(config) !=
|
|
46
|
+
if config is None or type(config) != ConnectObject:
|
|
46
47
|
raise ValueError("a ConnectObject must be provided")
|
|
47
48
|
config_object = deepcopy(config.getConfigObject())
|
|
48
49
|
if baseSandbox is not None and localFolder is None:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.3-2"
|
|
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
|
|
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
|