pyegeria 0.1.1__tar.gz → 0.1.1.5__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 (29) hide show
  1. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/PKG-INFO +8 -1
  2. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/pyproject.toml +10 -3
  3. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/requirements.txt +2 -1
  4. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/setup.py +1 -1
  5. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/__init__.py +2 -6
  6. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/registered_info.py +3 -3
  7. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_registered_info.py +3 -3
  8. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/.gitignore +0 -0
  9. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/LICENSE +0 -0
  10. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/MANIFEST.in +0 -0
  11. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/README.md +0 -0
  12. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/_client.py +0 -0
  13. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/_exceptions.py +0 -0
  14. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/_globals.py +0 -0
  15. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/_validators.py +0 -0
  16. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/config.toml +0 -0
  17. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/core_omag_server_config.py +0 -0
  18. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/platform_services.py +0 -0
  19. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/server_operations.py +0 -0
  20. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/src/pyegeria/utils.py +0 -0
  21. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/README.md +0 -0
  22. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/__init__.py +0 -0
  23. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/pytest.ini +0 -0
  24. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_client.py +0 -0
  25. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_core_omag_server_config.py +0 -0
  26. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_glossary_omvs.py +0 -0
  27. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_platform_services.py +0 -0
  28. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_server_operations.py +0 -0
  29. {pyegeria-0.1.1 → pyegeria-0.1.1.5}/tests/test_util_exp.py +0 -0
@@ -1,15 +1,22 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.1.1
3
+ Version: 0.1.1.5
4
4
  Summary: A python client for Egeria
5
5
  Project-URL: Homepage, https://github.com/odpi/egeria-python
6
6
  Project-URL: Issues, https://github.com/odpi/egeria-python/issues
7
7
  Author-email: Dan Wolfson <dan.wolfson@pdr-associates.com>
8
8
  License-File: LICENSE
9
+ Keywords: egeria,governance,metadata
9
10
  Classifier: License :: OSI Approved :: Apache Software License
10
11
  Classifier: Programming Language :: Python
11
12
  Classifier: Programming Language :: Python :: 3
12
13
  Requires-Python: >=3.10
14
+ Requires-Dist: pandas~=2.2.0
15
+ Requires-Dist: pytest~=7.4.2
16
+ Requires-Dist: requests~=2.31.0
17
+ Requires-Dist: tabulate~=0.9.0
18
+ Requires-Dist: urllib3~=1.26.15
19
+ Requires-Dist: validators~=0.22.0
13
20
  Description-Content-Type: text/markdown
14
21
 
15
22
  <!-- SPDX-License-Identifier: CC-BY-4.0 -->
@@ -7,21 +7,28 @@ build-backend = "hatchling.build"
7
7
 
8
8
  [project]
9
9
  name = "pyegeria"
10
- version = "0.1.1"
10
+ version = "0.1.1.5"
11
11
  authors = [
12
12
  {name ="Dan Wolfson", email= "dan.wolfson@pdr-associates.com"},
13
13
  ]
14
14
  description = "A python client for Egeria"
15
15
  readme= "README.md"
16
16
  requires-python = ">=3.10"
17
-
17
+ dependencies = [
18
+ "requests~=2.31.0",
19
+ "validators~=0.22.0",
20
+ "pytest~=7.4.2",
21
+ "urllib3~=1.26.15",
22
+ "tabulate~=0.9.0",
23
+ "pandas~=2.2.0"
24
+ ]
25
+ keywords = ["egeria", "metadata", "governance"]
18
26
  classifiers = [
19
27
  "License :: OSI Approved :: Apache Software License",
20
28
  "Programming Language :: Python",
21
29
  "Programming Language :: Python :: 3",
22
30
  ]
23
31
 
24
- #license = "LICENSE"
25
32
 
26
33
  [project.urls]
27
34
  Homepage = "https://github.com/odpi/egeria-python"
@@ -2,4 +2,5 @@ requests~=2.31.0
2
2
  validators~=0.22.0
3
3
  pytest~=7.4.2
4
4
  urllib3~=1.26.15
5
- tabulate~=0.9.0
5
+ tabulate~=0.9.0
6
+ pandas~=2.2.0
@@ -5,7 +5,7 @@ setup(
5
5
  extras_require=dict(tests=["pytest"]),
6
6
  # packages=find_packages(where="src"),
7
7
  package_dir={"": "src"},
8
- version='0.04',
8
+ version='0.1.1.3',
9
9
  packages=['pyegeria'],
10
10
  url='https://egeria-project.org',
11
11
  license='Apache 2.0',
@@ -11,7 +11,6 @@ the server platform and servers along with some basic configuration of Egeria se
11
11
 
12
12
  """
13
13
 
14
- from importlib import resources
15
14
  try:
16
15
  import tomllib
17
16
  except ModuleNotFoundError:
@@ -24,11 +23,8 @@ if disable_ssl_warnings:
24
23
  from urllib3 import disable_warnings
25
24
  disable_warnings(InsecureRequestWarning)
26
25
 
27
- from ._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
28
- print_exception_response, )
29
- from .utils import print_response
30
- from ._client import Client
31
26
  from .platform_services import Platform
32
27
  from .core_omag_server_config import CoreServerConfig
28
+ from .registered_info import RegisteredInfo
33
29
 
34
- __version__ = "0.1"
30
+ __version__ = "0.1.1.3"
@@ -13,6 +13,7 @@ companion service is also configured and running.
13
13
  import pandas as pd
14
14
  from tabulate import tabulate
15
15
 
16
+ from ._validators import validate_name
16
17
  from .utils import wrap_text
17
18
 
18
19
  from ._client import Client
@@ -48,14 +49,13 @@ class RegisteredInfo(Client):
48
49
 
49
50
  def __init__(
50
51
  self,
52
+ server_name: str,
51
53
  platform_url: str,
52
54
  user_id: str,
53
55
  user_pwd: str = None,
54
56
  verify_flag: bool = False,
55
- server_name: str = None
56
57
  ):
57
- if server_name is None:
58
- server_name = "NA"
58
+ validate_name(server_name)
59
59
  Client.__init__(self, server_name, platform_url,
60
60
  user_id, user_pwd, verify_flag)
61
61
  self.admin_command_root = (f"{self.platform_url}/open-metadata/platform-services/users/"
@@ -97,10 +97,10 @@ class TestRegisteredInfoServices:
97
97
 
98
98
  def test_list_severity_definitions(self):
99
99
  try:
100
- r_client = RegisteredInfo(self.good_platform1_url,
101
- server_name=self.good_server_1, user_id=self.good_user_1)
100
+ r_client = RegisteredInfo(self.good_server_1,self.good_platform1_url,
101
+ user_id=self.good_user_1)
102
102
 
103
- response = r_client.list_severity_definitions(fmt='table', skinny=False, wrap_len=30)
103
+ response = r_client.list_severity_definitions(fmt='json', skinny=True, wrap_len=40)
104
104
  print(json.dumps(response, indent=4))
105
105
  assert True
106
106
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes