ae-sys-core 0.3.23__tar.gz → 0.3.24__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.
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/LICENSE.md +1 -1
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/PKG-INFO +53 -11
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/README.md +5 -5
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae/sys_core.py +42 -40
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/PKG-INFO +54 -12
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/SOURCES.txt +1 -0
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/requires.txt +5 -7
- ae_sys_core-0.3.24/pyproject.toml +4 -0
- ae_sys_core-0.3.24/setup.py +117 -0
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/tests/test_sys_core.py +7 -1
- ae_sys_core-0.3.23/setup.py +0 -18
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/dependency_links.txt +0 -0
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/top_level.txt +0 -0
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/ae_sys_core.egg-info/zip-safe +0 -0
- {ae_sys_core-0.3.23 → ae_sys_core-0.3.24}/setup.cfg +0 -0
|
@@ -1,39 +1,81 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_sys_core
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.24
|
|
4
4
|
Summary: ae namespace module portion sys_core: dynamic system configuration, initialization and connection
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_sys_core
|
|
6
6
|
Author: AndiEcker
|
|
7
7
|
Author-email: aecker2@gmail.com
|
|
8
|
-
License:
|
|
8
|
+
License: GPL-3.0-or-later
|
|
9
|
+
Project-URL: Bug Tracker, https://gitlab.com/ae-group/ae_sys_core/-/issues
|
|
9
10
|
Project-URL: Documentation, https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html
|
|
10
11
|
Project-URL: Repository, https://gitlab.com/ae-group/ae_sys_core
|
|
11
12
|
Project-URL: Source, https://ae.readthedocs.io/en/latest/_modules/ae/sys_core.html
|
|
12
13
|
Keywords: configuration,development,environment,productivity
|
|
13
14
|
Classifier: Development Status :: 3 - Alpha
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
15
15
|
Classifier: Natural Language :: English
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Typing :: Typed
|
|
21
22
|
Requires-Python: >=3.9
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE.md
|
|
25
|
+
Requires-Dist: ae_base
|
|
26
|
+
Requires-Dist: ae_core
|
|
27
|
+
Requires-Dist: ae_console
|
|
23
28
|
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: aedev_project_tpls; extra == "dev"
|
|
30
|
+
Requires-Dist: ae_ae; extra == "dev"
|
|
31
|
+
Requires-Dist: anybadge; extra == "dev"
|
|
32
|
+
Requires-Dist: coverage-badge; extra == "dev"
|
|
33
|
+
Requires-Dist: aedev_project_manager; extra == "dev"
|
|
34
|
+
Requires-Dist: flake8; extra == "dev"
|
|
35
|
+
Requires-Dist: mypy; extra == "dev"
|
|
36
|
+
Requires-Dist: pylint; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-django; extra == "dev"
|
|
40
|
+
Requires-Dist: typing; extra == "dev"
|
|
41
|
+
Requires-Dist: types-setuptools; extra == "dev"
|
|
24
42
|
Provides-Extra: docs
|
|
25
43
|
Provides-Extra: tests
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
Requires-Dist: anybadge; extra == "tests"
|
|
45
|
+
Requires-Dist: coverage-badge; extra == "tests"
|
|
46
|
+
Requires-Dist: aedev_project_manager; extra == "tests"
|
|
47
|
+
Requires-Dist: flake8; extra == "tests"
|
|
48
|
+
Requires-Dist: mypy; extra == "tests"
|
|
49
|
+
Requires-Dist: pylint; extra == "tests"
|
|
50
|
+
Requires-Dist: pytest; extra == "tests"
|
|
51
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
52
|
+
Requires-Dist: pytest-django; extra == "tests"
|
|
53
|
+
Requires-Dist: typing; extra == "tests"
|
|
54
|
+
Requires-Dist: types-setuptools; extra == "tests"
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: description-content-type
|
|
60
|
+
Dynamic: home-page
|
|
61
|
+
Dynamic: keywords
|
|
62
|
+
Dynamic: license
|
|
63
|
+
Dynamic: license-file
|
|
64
|
+
Dynamic: project-url
|
|
65
|
+
Dynamic: provides-extra
|
|
66
|
+
Dynamic: requires-dist
|
|
67
|
+
Dynamic: requires-python
|
|
68
|
+
Dynamic: summary
|
|
69
|
+
|
|
70
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
|
|
71
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
|
|
72
|
+
# sys_core 0.3.24
|
|
31
73
|
|
|
32
74
|
[](
|
|
33
75
|
https://gitlab.com/ae-group/ae_sys_core)
|
|
34
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.24)
|
|
37
79
|
[](
|
|
38
80
|
https://pypi.org/project/ae-sys-core/#history)
|
|
39
81
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae
|
|
2
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.
|
|
3
|
-
# sys_core 0.3.
|
|
1
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
|
|
2
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
|
|
3
|
+
# sys_core 0.3.24
|
|
4
4
|
|
|
5
5
|
[](
|
|
6
6
|
https://gitlab.com/ae-group/ae_sys_core)
|
|
7
7
|
[](
|
|
9
|
+
https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.24)
|
|
10
10
|
[](
|
|
11
11
|
https://pypi.org/project/ae-sys-core/#history)
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@ dynamic system configuration, initialization and connection
|
|
|
3
3
|
===========================================================
|
|
4
4
|
|
|
5
5
|
this module allows the dynamic (data-driven) configuration and connection of your application to all their needed
|
|
6
|
-
external systems (like servers, databases, cloud
|
|
6
|
+
external systems (like servers, databases, cloud storages, ...).
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
system classes
|
|
@@ -56,16 +56,17 @@ to provide multiple system configurations for the same application (suite) you c
|
|
|
56
56
|
individual config files for each application instance with a separate config file
|
|
57
57
|
(see .sys_env<SYS_ENV_ID>.cfg :ref:`here <config-files>`).
|
|
58
58
|
"""
|
|
59
|
+
import importlib
|
|
60
|
+
|
|
59
61
|
from abc import ABC, abstractmethod
|
|
60
62
|
from collections import OrderedDict
|
|
61
|
-
import importlib
|
|
62
63
|
from typing import Any, Dict, Optional, Sequence, Union, cast
|
|
63
64
|
|
|
64
65
|
from ae.core import DEBUG_LEVEL_DISABLED, DEBUG_LEVEL_VERBOSE, HIDDEN_CREDENTIALS # type: ignore # mypy
|
|
65
66
|
from ae.console import ConsoleApp # type: ignore # mypy doesn't find namespace pkg
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
__version__ = '0.3.
|
|
69
|
+
__version__ = '0.3.24'
|
|
69
70
|
|
|
70
71
|
|
|
71
72
|
SYS_SECTION_NAME = 'aeSystems' #: section name for system config variables
|
|
@@ -74,12 +75,12 @@ SYS_SECTION_NAME = 'aeSystems' #: section name for system confi
|
|
|
74
75
|
def config_value(var_name: str, console_app: ConsoleApp) -> Any:
|
|
75
76
|
""" determine system configuration setting value from application config options/variables.
|
|
76
77
|
|
|
77
|
-
:param var_name:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
:param console_app:
|
|
82
|
-
:return:
|
|
78
|
+
:param var_name: config variable name. variable value gets searched in the application instance
|
|
79
|
+
environment, first in the :ref:`application config options <config-options>`,
|
|
80
|
+
then in the :ref:`application config variables <config-variables>` (first within
|
|
81
|
+
the section MAIN_SECTION_NAME/aeOptions) and then within SYS_SECTION_NAME/aeSystems.
|
|
82
|
+
:param console_app: ConsoleApp instance of the application providing these config options/variables.
|
|
83
|
+
:return: config variable value if found else None.
|
|
83
84
|
"""
|
|
84
85
|
val = console_app.get_var(var_name)
|
|
85
86
|
if val is None:
|
|
@@ -95,11 +96,11 @@ class SystemBase:
|
|
|
95
96
|
rec_types: Optional[Dict[str, str]] = None):
|
|
96
97
|
""" create new :class:`SystemBase` instance.
|
|
97
98
|
|
|
98
|
-
:param sys_id:
|
|
99
|
-
:param console_app:
|
|
100
|
-
:param credentials:
|
|
101
|
-
:param features:
|
|
102
|
-
:param rec_types:
|
|
99
|
+
:param sys_id: unique str to identify a system (also used as prefix/suffix).
|
|
100
|
+
:param console_app: ConsoleApp instance of the application using these systems.
|
|
101
|
+
:param credentials: dict to access system, containing e.g. username, password, token, dsn...
|
|
102
|
+
:param features: optional list with special features for this system (see SDF_* constants).
|
|
103
|
+
:param rec_types: optional dict of available record types for this system.
|
|
103
104
|
"""
|
|
104
105
|
self.sys_id = sys_id #: system id
|
|
105
106
|
self.console_app = console_app #: application instance and config environment
|
|
@@ -108,7 +109,7 @@ class SystemBase:
|
|
|
108
109
|
self.available_rec_types: Dict[str, str] = \
|
|
109
110
|
rec_types or {} #: record types available in this system
|
|
110
111
|
|
|
111
|
-
self.connection: Any = None #: object with
|
|
112
|
+
self.connection: Any = None #: object with optional connect()/disconnect()/close() methods
|
|
112
113
|
self.conn_error: str = "" #: error message of last system access or dis-/connect
|
|
113
114
|
|
|
114
115
|
SystemBase.instances += 1
|
|
@@ -116,7 +117,7 @@ class SystemBase:
|
|
|
116
117
|
def __repr__(self) -> str:
|
|
117
118
|
""" representation string of this :class:`SystemBase` instance.
|
|
118
119
|
|
|
119
|
-
:return:
|
|
120
|
+
:return: representation string of this instance.
|
|
120
121
|
"""
|
|
121
122
|
ret = self.sys_id
|
|
122
123
|
if self.conn_error:
|
|
@@ -132,10 +133,10 @@ class SystemBase:
|
|
|
132
133
|
def connect(self, sys_config: Dict[str, str], force_reconnect: bool = False) -> str:
|
|
133
134
|
""" connect this instance to his system using a system connector class.
|
|
134
135
|
|
|
135
|
-
:param sys_config:
|
|
136
|
-
:param force_reconnect:
|
|
137
|
-
|
|
138
|
-
:return:
|
|
136
|
+
:param sys_config: dict with the :ref:`dynamic config properties of this system <system-properties>`.
|
|
137
|
+
:param force_reconnect: optional; pass True to force re-connection (even if self.connection is
|
|
138
|
+
already initialized).
|
|
139
|
+
:return: error message or empty string in case of no errors while re-connecting.
|
|
139
140
|
"""
|
|
140
141
|
self.conn_error = ""
|
|
141
142
|
if not self.connection or force_reconnect:
|
|
@@ -154,7 +155,7 @@ class SystemBase:
|
|
|
154
155
|
def disconnect(self) -> str:
|
|
155
156
|
""" disconnect this external system.
|
|
156
157
|
|
|
157
|
-
:return:
|
|
158
|
+
:return: error message string or empty string if no errors occurred on disconnection.
|
|
158
159
|
"""
|
|
159
160
|
err_msg = ""
|
|
160
161
|
if self.connection:
|
|
@@ -168,13 +169,14 @@ class SystemBase:
|
|
|
168
169
|
|
|
169
170
|
|
|
170
171
|
class SystemConnectorBase(ABC):
|
|
171
|
-
""" abstract system connector base class -
|
|
172
|
+
""" abstract system connector base class - subclass establishes the connection to an external system. """
|
|
172
173
|
instances: int = 0
|
|
173
174
|
|
|
174
175
|
def __init__(self, system: SystemBase):
|
|
175
176
|
""" create new :class:`SystemBase` instance.
|
|
176
177
|
|
|
177
|
-
:param system:
|
|
178
|
+
:param system: instance of :class:`SystemBase` class that is representing the system using
|
|
179
|
+
this connection.
|
|
178
180
|
"""
|
|
179
181
|
self.system = system #: SystemBase instance
|
|
180
182
|
self.console_app = system.console_app #: application instance and config environment
|
|
@@ -185,7 +187,7 @@ class SystemConnectorBase(ABC):
|
|
|
185
187
|
def __repr__(self) -> str:
|
|
186
188
|
""" representation string of this :class:`SystemBase` instance.
|
|
187
189
|
|
|
188
|
-
:return:
|
|
190
|
+
:return: representation string of this instance.
|
|
189
191
|
"""
|
|
190
192
|
ret = self.system.sys_id
|
|
191
193
|
if self.last_err_msg:
|
|
@@ -200,7 +202,7 @@ class SystemConnectorBase(ABC):
|
|
|
200
202
|
|
|
201
203
|
@abstractmethod
|
|
202
204
|
def connect(self) -> str:
|
|
203
|
-
""" abstract method - raising NotImplementedError, so has to be implemented by the
|
|
205
|
+
""" abstract method - raising NotImplementedError, so has to be implemented by the subclass. """
|
|
204
206
|
|
|
205
207
|
|
|
206
208
|
class UsedSystems(OrderedDict):
|
|
@@ -219,16 +221,16 @@ class UsedSystems(OrderedDict):
|
|
|
219
221
|
def __init__(self, console_app: ConsoleApp, *selected_systems: str, **entered_credentials: str):
|
|
220
222
|
""" create new instance of :class:`UsedSystems`.
|
|
221
223
|
|
|
222
|
-
:param console_app:
|
|
223
|
-
:param selected_systems:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
:param entered_credentials:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
224
|
+
:param console_app: ConsoleApp instance of the application using these systems.
|
|
225
|
+
:param selected_systems: optional iterable of system id strings of the available systems that have to be
|
|
226
|
+
initialized for the app specified by the :paramref:`~UsedSystems.console_app`
|
|
227
|
+
argument. if no system id get passed then all available systems will be
|
|
228
|
+
initialized from the config variable `availableSystems`.
|
|
229
|
+
:param entered_credentials: optional dict of credentials entered by a user at run-time (overwriting
|
|
230
|
+
the values set in the related config variable `availableSystems`).
|
|
231
|
+
the keys of this dictionary starting with the system id in lower case,
|
|
232
|
+
followed by one of the key strings specified in the **credential_keys** config
|
|
233
|
+
list (see :ref:`system-properties`).
|
|
232
234
|
"""
|
|
233
235
|
super().__init__()
|
|
234
236
|
self._systems = self
|
|
@@ -252,8 +254,8 @@ class UsedSystems(OrderedDict):
|
|
|
252
254
|
def _load_merge_cred_feat(self, entered_credentials: Dict[str, str]):
|
|
253
255
|
""" load and initialize all used system configs and merge entered credentials into it.
|
|
254
256
|
|
|
255
|
-
:param entered_credentials:
|
|
256
|
-
|
|
257
|
+
:param entered_credentials: passed over unchanged from :class:`UsedSystems` - see
|
|
258
|
+
:paramref:`~UsedSystems.entered_credentials`.
|
|
257
259
|
"""
|
|
258
260
|
debug_level = self.console_app.debug_level
|
|
259
261
|
for sys_id, sys_config in self.available_systems.items():
|
|
@@ -287,9 +289,9 @@ class UsedSystems(OrderedDict):
|
|
|
287
289
|
def _add_system(self, sys_id: str, credentials: Dict[str, str], features: Sequence[str] = ()):
|
|
288
290
|
""" add new :class:`SystemBase` instance to this :class:`UsedSystems` instance.
|
|
289
291
|
|
|
290
|
-
:param sys_id:
|
|
291
|
-
:param credentials:
|
|
292
|
-
:param features:
|
|
292
|
+
:param sys_id: system id.
|
|
293
|
+
:param credentials: credentials of the new system to add.
|
|
294
|
+
:param features: optional list with special features for this system (see SDF_* constants).
|
|
293
295
|
"""
|
|
294
296
|
assert sys_id in self.available_systems, f"UsedSystems._add_system(): unsupported system id {sys_id}"
|
|
295
297
|
assert sys_id not in self._systems, f"UsedSystems._add_system(): system id {sys_id} already specified"
|
|
@@ -1,39 +1,81 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.3.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ae_sys_core
|
|
3
|
+
Version: 0.3.24
|
|
4
4
|
Summary: ae namespace module portion sys_core: dynamic system configuration, initialization and connection
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_sys_core
|
|
6
6
|
Author: AndiEcker
|
|
7
7
|
Author-email: aecker2@gmail.com
|
|
8
|
-
License:
|
|
8
|
+
License: GPL-3.0-or-later
|
|
9
|
+
Project-URL: Bug Tracker, https://gitlab.com/ae-group/ae_sys_core/-/issues
|
|
9
10
|
Project-URL: Documentation, https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html
|
|
10
11
|
Project-URL: Repository, https://gitlab.com/ae-group/ae_sys_core
|
|
11
12
|
Project-URL: Source, https://ae.readthedocs.io/en/latest/_modules/ae/sys_core.html
|
|
12
13
|
Keywords: configuration,development,environment,productivity
|
|
13
14
|
Classifier: Development Status :: 3 - Alpha
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
15
15
|
Classifier: Natural Language :: English
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Typing :: Typed
|
|
21
22
|
Requires-Python: >=3.9
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE.md
|
|
25
|
+
Requires-Dist: ae_base
|
|
26
|
+
Requires-Dist: ae_core
|
|
27
|
+
Requires-Dist: ae_console
|
|
23
28
|
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: aedev_project_tpls; extra == "dev"
|
|
30
|
+
Requires-Dist: ae_ae; extra == "dev"
|
|
31
|
+
Requires-Dist: anybadge; extra == "dev"
|
|
32
|
+
Requires-Dist: coverage-badge; extra == "dev"
|
|
33
|
+
Requires-Dist: aedev_project_manager; extra == "dev"
|
|
34
|
+
Requires-Dist: flake8; extra == "dev"
|
|
35
|
+
Requires-Dist: mypy; extra == "dev"
|
|
36
|
+
Requires-Dist: pylint; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-django; extra == "dev"
|
|
40
|
+
Requires-Dist: typing; extra == "dev"
|
|
41
|
+
Requires-Dist: types-setuptools; extra == "dev"
|
|
24
42
|
Provides-Extra: docs
|
|
25
43
|
Provides-Extra: tests
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
Requires-Dist: anybadge; extra == "tests"
|
|
45
|
+
Requires-Dist: coverage-badge; extra == "tests"
|
|
46
|
+
Requires-Dist: aedev_project_manager; extra == "tests"
|
|
47
|
+
Requires-Dist: flake8; extra == "tests"
|
|
48
|
+
Requires-Dist: mypy; extra == "tests"
|
|
49
|
+
Requires-Dist: pylint; extra == "tests"
|
|
50
|
+
Requires-Dist: pytest; extra == "tests"
|
|
51
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
52
|
+
Requires-Dist: pytest-django; extra == "tests"
|
|
53
|
+
Requires-Dist: typing; extra == "tests"
|
|
54
|
+
Requires-Dist: types-setuptools; extra == "tests"
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: description-content-type
|
|
60
|
+
Dynamic: home-page
|
|
61
|
+
Dynamic: keywords
|
|
62
|
+
Dynamic: license
|
|
63
|
+
Dynamic: license-file
|
|
64
|
+
Dynamic: project-url
|
|
65
|
+
Dynamic: provides-extra
|
|
66
|
+
Dynamic: requires-dist
|
|
67
|
+
Dynamic: requires-python
|
|
68
|
+
Dynamic: summary
|
|
69
|
+
|
|
70
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
|
|
71
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
|
|
72
|
+
# sys_core 0.3.24
|
|
31
73
|
|
|
32
74
|
[](
|
|
33
75
|
https://gitlab.com/ae-group/ae_sys_core)
|
|
34
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.24)
|
|
37
79
|
[](
|
|
38
80
|
https://pypi.org/project/ae-sys-core/#history)
|
|
39
81
|
|
|
@@ -3,33 +3,31 @@ ae_core
|
|
|
3
3
|
ae_console
|
|
4
4
|
|
|
5
5
|
[dev]
|
|
6
|
-
|
|
6
|
+
aedev_project_tpls
|
|
7
7
|
ae_ae
|
|
8
8
|
anybadge
|
|
9
9
|
coverage-badge
|
|
10
|
-
|
|
10
|
+
aedev_project_manager
|
|
11
11
|
flake8
|
|
12
12
|
mypy
|
|
13
13
|
pylint
|
|
14
14
|
pytest
|
|
15
15
|
pytest-cov
|
|
16
|
+
pytest-django
|
|
16
17
|
typing
|
|
17
18
|
types-setuptools
|
|
18
|
-
wheel
|
|
19
|
-
twine
|
|
20
19
|
|
|
21
20
|
[docs]
|
|
22
21
|
|
|
23
22
|
[tests]
|
|
24
23
|
anybadge
|
|
25
24
|
coverage-badge
|
|
26
|
-
|
|
25
|
+
aedev_project_manager
|
|
27
26
|
flake8
|
|
28
27
|
mypy
|
|
29
28
|
pylint
|
|
30
29
|
pytest
|
|
31
30
|
pytest-cov
|
|
31
|
+
pytest-django
|
|
32
32
|
typing
|
|
33
33
|
types-setuptools
|
|
34
|
-
wheel
|
|
35
|
-
twine
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.57
|
|
2
|
+
""" setup of ae namespace module portion sys_core: dynamic system configuration, initialization and connection. """
|
|
3
|
+
# noinspection PyUnresolvedReferences
|
|
4
|
+
import sys
|
|
5
|
+
print(f"SetUp {__name__=} {sys.executable=} {sys.argv=} {sys.path=}")
|
|
6
|
+
|
|
7
|
+
# noinspection PyUnresolvedReferences
|
|
8
|
+
import setuptools
|
|
9
|
+
|
|
10
|
+
setup_kwargs = {
|
|
11
|
+
'author': 'AndiEcker',
|
|
12
|
+
'author_email': 'aecker2@gmail.com',
|
|
13
|
+
'classifiers': [ 'Development Status :: 3 - Alpha', 'Natural Language :: English', 'Operating System :: OS Independent',
|
|
14
|
+
'Programming Language :: Python', 'Programming Language :: Python :: 3',
|
|
15
|
+
'Programming Language :: Python :: 3.9', 'Topic :: Software Development :: Libraries :: Python Modules',
|
|
16
|
+
'Typing :: Typed'],
|
|
17
|
+
'description': 'ae namespace module portion sys_core: dynamic system configuration, initialization and connection',
|
|
18
|
+
'extras_require': { 'dev': [ 'aedev_project_tpls', 'ae_ae', 'anybadge', 'coverage-badge', 'aedev_project_manager', 'flake8',
|
|
19
|
+
'mypy', 'pylint', 'pytest', 'pytest-cov', 'pytest-django', 'typing', 'types-setuptools'],
|
|
20
|
+
'docs': [],
|
|
21
|
+
'tests': [ 'anybadge', 'coverage-badge', 'aedev_project_manager', 'flake8', 'mypy', 'pylint', 'pytest',
|
|
22
|
+
'pytest-cov', 'pytest-django', 'typing', 'types-setuptools']},
|
|
23
|
+
'install_requires': ['ae_base', 'ae_core', 'ae_console'],
|
|
24
|
+
'keywords': ['configuration', 'development', 'environment', 'productivity'],
|
|
25
|
+
'license': 'GPL-3.0-or-later',
|
|
26
|
+
'long_description': ('<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->\n'
|
|
27
|
+
'<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->\n'
|
|
28
|
+
'# sys_core 0.3.24\n'
|
|
29
|
+
'\n'
|
|
30
|
+
'[](\n'
|
|
31
|
+
' https://gitlab.com/ae-group/ae_sys_core)\n'
|
|
32
|
+
'[](\n'
|
|
34
|
+
' https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.24)\n'
|
|
35
|
+
'[](\n'
|
|
36
|
+
' https://pypi.org/project/ae-sys-core/#history)\n'
|
|
37
|
+
'\n'
|
|
38
|
+
'>ae namespace module portion sys_core: dynamic system configuration, initialization and connection.\n'
|
|
39
|
+
'\n'
|
|
40
|
+
'[](\n'
|
|
41
|
+
' https://ae-group.gitlab.io/ae_sys_core/coverage/index.html)\n'
|
|
42
|
+
'[](\n'
|
|
43
|
+
' https://ae-group.gitlab.io/ae_sys_core/lineprecision.txt)\n'
|
|
44
|
+
'[](\n'
|
|
45
|
+
' https://ae-group.gitlab.io/ae_sys_core/pylint.log)\n'
|
|
46
|
+
'\n'
|
|
47
|
+
'[](\n'
|
|
48
|
+
' https://gitlab.com/ae-group/ae_sys_core/)\n'
|
|
49
|
+
'[](\n'
|
|
50
|
+
' https://gitlab.com/ae-group/ae_sys_core/)\n'
|
|
51
|
+
'[](\n'
|
|
52
|
+
' https://gitlab.com/ae-group/ae_sys_core/)\n'
|
|
53
|
+
'[](\n'
|
|
54
|
+
' https://pypi.org/project/ae-sys-core/)\n'
|
|
55
|
+
'[](\n'
|
|
56
|
+
' https://gitlab.com/ae-group/ae_sys_core/-/blob/develop/LICENSE.md)\n'
|
|
57
|
+
'[](\n'
|
|
58
|
+
' https://libraries.io/pypi/ae-sys-core)\n'
|
|
59
|
+
'[](\n'
|
|
60
|
+
' https://pypi.org/project/ae-sys-core/#files)\n'
|
|
61
|
+
'\n'
|
|
62
|
+
'\n'
|
|
63
|
+
'## installation\n'
|
|
64
|
+
'\n'
|
|
65
|
+
'\n'
|
|
66
|
+
'execute the following command to install the\n'
|
|
67
|
+
'ae.sys_core module\n'
|
|
68
|
+
'in the currently active virtual environment:\n'
|
|
69
|
+
' \n'
|
|
70
|
+
'```shell script\n'
|
|
71
|
+
'pip install ae-sys-core\n'
|
|
72
|
+
'```\n'
|
|
73
|
+
'\n'
|
|
74
|
+
'if you want to contribute to this portion then first fork\n'
|
|
75
|
+
'[the ae_sys_core repository at GitLab](\n'
|
|
76
|
+
'https://gitlab.com/ae-group/ae_sys_core "ae.sys_core code repository").\n'
|
|
77
|
+
'after that pull it to your machine and finally execute the\n'
|
|
78
|
+
'following command in the root folder of this repository\n'
|
|
79
|
+
'(ae_sys_core):\n'
|
|
80
|
+
'\n'
|
|
81
|
+
'```shell script\n'
|
|
82
|
+
'pip install -e .[dev]\n'
|
|
83
|
+
'```\n'
|
|
84
|
+
'\n'
|
|
85
|
+
'the last command will install this module portion, along with the tools you need\n'
|
|
86
|
+
'to develop and run tests or to extend the portion documentation. to contribute only to the unit tests or to the\n'
|
|
87
|
+
'documentation of this portion, replace the setup extras key `dev` in the above command with `tests` or `docs`\n'
|
|
88
|
+
'respectively.\n'
|
|
89
|
+
'\n'
|
|
90
|
+
'more detailed explanations on how to contribute to this project\n'
|
|
91
|
+
'[are available here](\n'
|
|
92
|
+
'https://gitlab.com/ae-group/ae_sys_core/-/blob/develop/CONTRIBUTING.rst)\n'
|
|
93
|
+
'\n'
|
|
94
|
+
'\n'
|
|
95
|
+
'## namespace portion documentation\n'
|
|
96
|
+
'\n'
|
|
97
|
+
'information on the features and usage of this portion are available at\n'
|
|
98
|
+
'[ReadTheDocs](\n'
|
|
99
|
+
'https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html\n'
|
|
100
|
+
'"ae_sys_core documentation").\n'),
|
|
101
|
+
'long_description_content_type': 'text/markdown',
|
|
102
|
+
'name': 'ae_sys_core',
|
|
103
|
+
'package_data': {'': []},
|
|
104
|
+
'packages': ['ae'],
|
|
105
|
+
'project_urls': { 'Bug Tracker': 'https://gitlab.com/ae-group/ae_sys_core/-/issues',
|
|
106
|
+
'Documentation': 'https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html',
|
|
107
|
+
'Repository': 'https://gitlab.com/ae-group/ae_sys_core',
|
|
108
|
+
'Source': 'https://ae.readthedocs.io/en/latest/_modules/ae/sys_core.html'},
|
|
109
|
+
'python_requires': '>=3.9',
|
|
110
|
+
'url': 'https://gitlab.com/ae-group/ae_sys_core',
|
|
111
|
+
'version': '0.3.24',
|
|
112
|
+
'zip_safe': True,
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if __name__ == "__main__":
|
|
116
|
+
setuptools.setup(**setup_kwargs)
|
|
117
|
+
pass
|
|
@@ -5,7 +5,8 @@ import sys
|
|
|
5
5
|
|
|
6
6
|
from ae.base import CFG_EXT
|
|
7
7
|
# noinspection PyProtectedMember
|
|
8
|
-
from ae.core import DEBUG_LEVEL_ENABLED, DEBUG_LEVEL_VERBOSE, app_inst_lock, _APP_INSTANCES,
|
|
8
|
+
from ae.core import (DEBUG_LEVEL_DISABLED, DEBUG_LEVEL_ENABLED, DEBUG_LEVEL_VERBOSE, app_inst_lock, _APP_INSTANCES,
|
|
9
|
+
_unregister_app_instance)
|
|
9
10
|
from ae.console import ConsoleApp
|
|
10
11
|
from ae.sys_core import SystemBase, SystemConnectorBase, UsedSystems
|
|
11
12
|
|
|
@@ -95,6 +96,8 @@ class TestSystemBase:
|
|
|
95
96
|
s = SystemBase(SS, console_app_env, ext_cred, features=SYS_FEATURES)
|
|
96
97
|
usr = s.credentials.get(CRED_KEY_USR)
|
|
97
98
|
pwd = s.credentials.get(CRED_KEY_PWD)
|
|
99
|
+
|
|
100
|
+
console_app_env.debug_level = DEBUG_LEVEL_DISABLED
|
|
98
101
|
assert SS in repr(s)
|
|
99
102
|
assert usr not in repr(s)
|
|
100
103
|
assert pwd not in repr(s)
|
|
@@ -195,6 +198,7 @@ class TestSystemConnectionBase:
|
|
|
195
198
|
empty_dict = {}
|
|
196
199
|
s = SystemBase(SX, console_app_env, empty_dict)
|
|
197
200
|
with pytest.raises(TypeError):
|
|
201
|
+
# noinspection PyAbstractClass
|
|
198
202
|
SystemConnectorBase(s)
|
|
199
203
|
|
|
200
204
|
sc = SystemConn(s)
|
|
@@ -210,6 +214,8 @@ class TestSystemConnectionBase:
|
|
|
210
214
|
sc = SystemConn(s)
|
|
211
215
|
usr = sc.system.credentials.get(CRED_KEY_USR)
|
|
212
216
|
pwd = sc.system.credentials.get(CRED_KEY_PWD)
|
|
217
|
+
console_app_env.debug_level = DEBUG_LEVEL_DISABLED
|
|
218
|
+
|
|
213
219
|
assert SS in repr(sc)
|
|
214
220
|
assert usr not in repr(sc)
|
|
215
221
|
assert pwd not in repr(sc)
|
ae_sys_core-0.3.23/setup.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_project V0.3.25
|
|
2
|
-
""" setup this project with setuptools and aedev.setup_project. """
|
|
3
|
-
import pprint
|
|
4
|
-
import sys
|
|
5
|
-
|
|
6
|
-
import setuptools
|
|
7
|
-
|
|
8
|
-
from aedev.setup_project import project_env_vars # type: ignore
|
|
9
|
-
|
|
10
|
-
pev = project_env_vars(from_setup=True)
|
|
11
|
-
|
|
12
|
-
if __name__ == "__main__":
|
|
13
|
-
print("# EXECUTING SETUPTOOLS SETUP: argv, kwargs ###################")
|
|
14
|
-
print(pprint.pformat(sys.argv, indent=3, width=75, compact=True))
|
|
15
|
-
setup_kwargs = pev['setup_kwargs']
|
|
16
|
-
print(pprint.pformat(setup_kwargs, indent=3, width=75, compact=True))
|
|
17
|
-
setuptools.setup(**setup_kwargs)
|
|
18
|
-
print("# FINISHED SETUPTOOLS SETUP ##################################")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|