pyegeria 0.1.1.4__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.4 → pyegeria-0.1.1.5}/PKG-INFO +1 -1
  2. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/pyproject.toml +1 -1
  3. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/registered_info.py +3 -3
  4. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_registered_info.py +3 -3
  5. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/.gitignore +0 -0
  6. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/LICENSE +0 -0
  7. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/MANIFEST.in +0 -0
  8. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/README.md +0 -0
  9. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/requirements.txt +0 -0
  10. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/setup.py +0 -0
  11. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/__init__.py +0 -0
  12. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/_client.py +0 -0
  13. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/_exceptions.py +0 -0
  14. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/_globals.py +0 -0
  15. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/_validators.py +0 -0
  16. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/config.toml +0 -0
  17. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/core_omag_server_config.py +0 -0
  18. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/platform_services.py +0 -0
  19. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/server_operations.py +0 -0
  20. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/src/pyegeria/utils.py +0 -0
  21. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/README.md +0 -0
  22. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/__init__.py +0 -0
  23. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/pytest.ini +0 -0
  24. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_client.py +0 -0
  25. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_core_omag_server_config.py +0 -0
  26. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_glossary_omvs.py +0 -0
  27. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_platform_services.py +0 -0
  28. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_server_operations.py +0 -0
  29. {pyegeria-0.1.1.4 → pyegeria-0.1.1.5}/tests/test_util_exp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.1.1.4
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 +7,7 @@ build-backend = "hatchling.build"
7
7
 
8
8
  [project]
9
9
  name = "pyegeria"
10
- version = "0.1.1.4"
10
+ version = "0.1.1.5"
11
11
  authors = [
12
12
  {name ="Dan Wolfson", email= "dan.wolfson@pdr-associates.com"},
13
13
  ]
@@ -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
File without changes
File without changes