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.
Files changed (51) hide show
  1. {aepp-0.4.3.post2/aepp.egg-info → aepp-0.4.3.post3}/PKG-INFO +1 -1
  2. aepp-0.4.3.post3/aepp/__version__.py +1 -0
  3. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/cli/__main__.py +11 -8
  4. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/flowservice.py +1 -1
  5. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/synchronizer.py +3 -2
  6. {aepp-0.4.3.post2 → aepp-0.4.3.post3/aepp.egg-info}/PKG-INFO +1 -1
  7. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/pyproject.toml +1 -1
  8. aepp-0.4.3.post2/aepp/__version__.py +0 -1
  9. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/LICENSE +0 -0
  10. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/MANIFEST.in +0 -0
  11. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/README.md +0 -0
  12. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/__init__.py +0 -0
  13. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/accesscontrol.py +0 -0
  14. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/catalog.py +0 -0
  15. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/classmanager.py +0 -0
  16. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/cli/__init__.py +0 -0
  17. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/config.py +0 -0
  18. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/configs.py +0 -0
  19. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/connector.py +0 -0
  20. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/customerprofile.py +0 -0
  21. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/dataaccess.py +0 -0
  22. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/dataprep.py +0 -0
  23. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/datasets.py +0 -0
  24. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/datatypemanager.py +0 -0
  25. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/deletion.py +0 -0
  26. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/destination.py +0 -0
  27. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/destinationinstanceservice.py +0 -0
  28. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/edge.py +0 -0
  29. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/exportDatasetToDataLandingZone.py +0 -0
  30. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/fieldgroupmanager.py +0 -0
  31. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/hygiene.py +0 -0
  32. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/identity.py +0 -0
  33. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/ingestion.py +0 -0
  34. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/observability.py +0 -0
  35. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/policy.py +0 -0
  36. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/privacyservice.py +0 -0
  37. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/queryservice.py +0 -0
  38. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/sandboxes.py +0 -0
  39. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/schema.py +0 -0
  40. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/schemamanager.py +0 -0
  41. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/segmentation.py +0 -0
  42. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/sensei.py +0 -0
  43. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/som.py +0 -0
  44. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/tags.py +0 -0
  45. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp/utils.py +0 -0
  46. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/SOURCES.txt +0 -0
  47. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/dependency_links.txt +0 -0
  48. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/entry_points.txt +0 -0
  49. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/requires.txt +0 -0
  50. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/aepp.egg-info/top_level.txt +0 -0
  51. {aepp-0.4.3.post2 → aepp-0.4.3.post3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aepp
3
- Version: 0.4.3.post2
3
+ Version: 0.4.3.post3
4
4
  Summary: Package to manage AEP API endpoint and some helper functions
5
5
  Author-email: Julien Piccini <piccini.julien@gmail.com>
6
6
  License: Apache-2.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
- if kwargs.get("config_file"):
37
- mypath = Path.cwd()
38
- dict_config = json.load(FileIO( mypath / Path(kwargs.get("config_file"))))
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
- self.connectInstance = True
52
- 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:
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,aepp.ConnectObject] = aepp.config.config_object
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:aepp.ConnectObject=None,baseSandbox:str=None,region:str='nld2',localFolder:str=None):
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) != aepp.ConnectObject:
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aepp
3
- Version: 0.4.3.post2
3
+ Version: 0.4.3.post3
4
4
  Summary: Package to manage AEP API endpoint and some helper functions
5
5
  Author-email: Julien Piccini <piccini.julien@gmail.com>
6
6
  License: Apache-2.0
@@ -38,7 +38,7 @@ dependencies = [
38
38
  aepp = "aepp.cli.__main__:main"
39
39
 
40
40
  [tool.setuptools]
41
- packages = { find = { where = ["."], include = ["aepp*"] } }
41
+ packages = ["aepp", "aepp.cli"]
42
42
  include-package-data = true
43
43
 
44
44
  [tool.setuptools.dynamic]
@@ -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