aepp 0.4.3.post2__tar.gz → 0.5.0__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.5.0}/PKG-INFO +1 -1
  2. aepp-0.5.0/aepp/__version__.py +1 -0
  3. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/cli/__main__.py +10 -10
  4. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/flowservice.py +1 -1
  5. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/synchronizer.py +3 -2
  6. {aepp-0.4.3.post2 → aepp-0.5.0/aepp.egg-info}/PKG-INFO +1 -1
  7. {aepp-0.4.3.post2 → aepp-0.5.0}/pyproject.toml +1 -1
  8. aepp-0.4.3.post2/aepp/__version__.py +0 -1
  9. {aepp-0.4.3.post2 → aepp-0.5.0}/LICENSE +0 -0
  10. {aepp-0.4.3.post2 → aepp-0.5.0}/MANIFEST.in +0 -0
  11. {aepp-0.4.3.post2 → aepp-0.5.0}/README.md +0 -0
  12. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/__init__.py +0 -0
  13. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/accesscontrol.py +0 -0
  14. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/catalog.py +0 -0
  15. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/classmanager.py +0 -0
  16. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/cli/__init__.py +0 -0
  17. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/config.py +0 -0
  18. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/configs.py +0 -0
  19. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/connector.py +0 -0
  20. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/customerprofile.py +0 -0
  21. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/dataaccess.py +0 -0
  22. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/dataprep.py +0 -0
  23. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/datasets.py +0 -0
  24. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/datatypemanager.py +0 -0
  25. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/deletion.py +0 -0
  26. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/destination.py +0 -0
  27. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/destinationinstanceservice.py +0 -0
  28. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/edge.py +0 -0
  29. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/exportDatasetToDataLandingZone.py +0 -0
  30. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/fieldgroupmanager.py +0 -0
  31. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/hygiene.py +0 -0
  32. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/identity.py +0 -0
  33. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/ingestion.py +0 -0
  34. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/observability.py +0 -0
  35. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/policy.py +0 -0
  36. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/privacyservice.py +0 -0
  37. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/queryservice.py +0 -0
  38. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/sandboxes.py +0 -0
  39. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/schema.py +0 -0
  40. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/schemamanager.py +0 -0
  41. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/segmentation.py +0 -0
  42. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/sensei.py +0 -0
  43. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/som.py +0 -0
  44. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/tags.py +0 -0
  45. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp/utils.py +0 -0
  46. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp.egg-info/SOURCES.txt +0 -0
  47. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp.egg-info/dependency_links.txt +0 -0
  48. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp.egg-info/entry_points.txt +0 -0
  49. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp.egg-info/requires.txt +0 -0
  50. {aepp-0.4.3.post2 → aepp-0.5.0}/aepp.egg-info/top_level.txt +0 -0
  51. {aepp-0.4.3.post2 → aepp-0.5.0}/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.5.0
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.5.0"
@@ -33,24 +33,25 @@ 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
+ dict_config = json.load(FileIO(config_path))
39
41
  self.sandbox = kwargs.get("sandbox",dict_config.get("sandbox-name","prod"))
40
42
  self.secret = dict_config.get("secret",kwargs.get("secret"))
41
43
  self.org_id = dict_config.get("org_id",kwargs.get("org_id"))
42
44
  self.client_id = dict_config.get("client_id",kwargs.get("client_id"))
43
45
  self.scopes = dict_config.get("scopes",kwargs.get("scopes"))
44
- self.connectInstance = True
45
46
  else:
46
47
  self.sandbox = kwargs.get("sandbox","prod")
47
48
  self.secret = kwargs.get("secret")
48
49
  self.org_id = kwargs.get("org_id")
49
50
  self.client_id = kwargs.get("client_id")
50
51
  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:
53
- print("Auto-configuring connection...")
52
+ self.connectInstance = True
53
+ 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:
54
+ print("Configuring connection...")
54
55
  self.config = aepp.configure(
55
56
  connectInstance=self.connectInstance,
56
57
  sandbox=self.sandbox,
@@ -111,7 +112,7 @@ class ServiceShell(cmd.Cmd):
111
112
  if args.sandbox:
112
113
  self.config.setSandbox(args.sandbox)
113
114
  self.prompt = f"{self.config.sandbox}> "
114
- console.print(Panel(f"Sandbox changed to: {self.config.sandbox}", style="blue"))
115
+ console.print(Panel(f"Sandbox changed to: [bold green]{self.config.sandbox}[/bold green]", style="blue"))
115
116
  else:
116
117
  console.print(Panel("(!) You must configure the connection first using the 'config' command.", style="red"))
117
118
 
@@ -1227,8 +1228,7 @@ def main():
1227
1228
  parser.add_argument("-sc", "--scopes", help="Scopes")
1228
1229
  parser.add_argument("-cid", "--client_id", help="Auto-login client ID")
1229
1230
  parser.add_argument("-cf", "--config_file", help="Path to config file", default=None)
1230
- args = parser.parse_args()
1231
- # Initialize the shell
1231
+ args = parser.parse_args()
1232
1232
  shell = ServiceShell(**vars(args))
1233
1233
  try:
1234
1234
  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.5.0
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
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