ae-sys-core 0.3.26__tar.gz → 0.3.28__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.26 → ae_sys_core-0.3.28}/LICENSE.md +1 -1
- {ae_sys_core-0.3.26/ae_sys_core.egg-info → ae_sys_core-0.3.28}/PKG-INFO +21 -22
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/README.md +18 -12
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae/sys_core.py +14 -13
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28/ae_sys_core.egg-info}/PKG-INFO +21 -22
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae_sys_core.egg-info/requires.txt +0 -7
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/pyproject.toml +4 -1
- ae_sys_core-0.3.28/setup.py +84 -0
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/tests/test_sys_core.py +13 -3
- ae_sys_core-0.3.26/setup.py +0 -117
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae_sys_core.egg-info/SOURCES.txt +0 -0
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae_sys_core.egg-info/dependency_links.txt +0 -0
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae_sys_core.egg-info/top_level.txt +0 -0
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/ae_sys_core.egg-info/zip-safe +0 -0
- {ae_sys_core-0.3.26 → ae_sys_core-0.3.28}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_sys_core
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.28
|
|
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
|
|
@@ -16,40 +16,33 @@ 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
|
-
Classifier: Programming Language :: Python :: 3.
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Typing :: Typed
|
|
22
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE.md
|
|
25
|
-
Requires-Dist: ae_base
|
|
26
25
|
Requires-Dist: ae_core
|
|
27
26
|
Requires-Dist: ae_console
|
|
28
27
|
Provides-Extra: dev
|
|
29
28
|
Requires-Dist: aedev_project_tpls; extra == "dev"
|
|
30
29
|
Requires-Dist: ae_ae; extra == "dev"
|
|
31
30
|
Requires-Dist: anybadge; extra == "dev"
|
|
32
|
-
Requires-Dist: coverage-badge; extra == "dev"
|
|
33
|
-
Requires-Dist: aedev_project_manager; extra == "dev"
|
|
34
31
|
Requires-Dist: flake8; extra == "dev"
|
|
35
32
|
Requires-Dist: mypy; extra == "dev"
|
|
36
33
|
Requires-Dist: pylint; extra == "dev"
|
|
37
34
|
Requires-Dist: pytest; extra == "dev"
|
|
38
35
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
39
|
-
Requires-Dist: pytest-django; extra == "dev"
|
|
40
36
|
Requires-Dist: typing; extra == "dev"
|
|
41
37
|
Requires-Dist: types-setuptools; extra == "dev"
|
|
42
38
|
Provides-Extra: docs
|
|
43
39
|
Provides-Extra: tests
|
|
44
40
|
Requires-Dist: anybadge; extra == "tests"
|
|
45
|
-
Requires-Dist: coverage-badge; extra == "tests"
|
|
46
|
-
Requires-Dist: aedev_project_manager; extra == "tests"
|
|
47
41
|
Requires-Dist: flake8; extra == "tests"
|
|
48
42
|
Requires-Dist: mypy; extra == "tests"
|
|
49
43
|
Requires-Dist: pylint; extra == "tests"
|
|
50
44
|
Requires-Dist: pytest; extra == "tests"
|
|
51
45
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
52
|
-
Requires-Dist: pytest-django; extra == "tests"
|
|
53
46
|
Requires-Dist: typing; extra == "tests"
|
|
54
47
|
Requires-Dist: types-setuptools; extra == "tests"
|
|
55
48
|
Dynamic: author
|
|
@@ -67,15 +60,15 @@ Dynamic: requires-dist
|
|
|
67
60
|
Dynamic: requires-python
|
|
68
61
|
Dynamic: summary
|
|
69
62
|
|
|
70
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.
|
|
71
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.
|
|
72
|
-
# sys_core 0.3.
|
|
63
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.110 -->
|
|
64
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.33 -->
|
|
65
|
+
# sys_core 0.3.28
|
|
73
66
|
|
|
74
67
|
[](
|
|
75
68
|
https://gitlab.com/ae-group/ae_sys_core)
|
|
76
69
|
[](
|
|
71
|
+
https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.28)
|
|
79
72
|
[](
|
|
80
73
|
https://pypi.org/project/ae-sys-core/#history)
|
|
81
74
|
|
|
@@ -104,8 +97,8 @@ Dynamic: summary
|
|
|
104
97
|
https://pypi.org/project/ae-sys-core/#files)
|
|
105
98
|
|
|
106
99
|
|
|
107
|
-
## installation
|
|
108
100
|
|
|
101
|
+
## installation
|
|
109
102
|
|
|
110
103
|
execute the following command to install the
|
|
111
104
|
ae.sys_core module
|
|
@@ -123,13 +116,17 @@ following command in the root folder of this repository
|
|
|
123
116
|
(ae_sys_core):
|
|
124
117
|
|
|
125
118
|
```shell script
|
|
126
|
-
pip install
|
|
119
|
+
pip install --editable .[dev]
|
|
127
120
|
```
|
|
128
121
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
this command installs this module portion project
|
|
123
|
+
along with the necessary tools to modify the source code,
|
|
124
|
+
run unit tests, and build documentation. to install only
|
|
125
|
+
the dependencies required for a specific task, replace
|
|
126
|
+
`dev` with one of the following:
|
|
127
|
+
|
|
128
|
+
* `tests`: for contributing to the unit test suite
|
|
129
|
+
* `docs`: for maintaining and building documentation
|
|
133
130
|
|
|
134
131
|
more detailed explanations on how to contribute to this project
|
|
135
132
|
[are available here](
|
|
@@ -138,7 +135,9 @@ https://gitlab.com/ae-group/ae_sys_core/-/blob/develop/CONTRIBUTING.rst)
|
|
|
138
135
|
|
|
139
136
|
## namespace portion documentation
|
|
140
137
|
|
|
141
|
-
|
|
138
|
+
the documentation of the source code of this portion is available at
|
|
142
139
|
[ReadTheDocs](
|
|
143
140
|
https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html
|
|
144
141
|
"ae_sys_core documentation").
|
|
142
|
+
|
|
143
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.
|
|
2
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.
|
|
3
|
-
# sys_core 0.3.
|
|
1
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.110 -->
|
|
2
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.33 -->
|
|
3
|
+
# sys_core 0.3.28
|
|
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.28)
|
|
10
10
|
[](
|
|
11
11
|
https://pypi.org/project/ae-sys-core/#history)
|
|
12
12
|
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
https://pypi.org/project/ae-sys-core/#files)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
## installation
|
|
39
38
|
|
|
39
|
+
## installation
|
|
40
40
|
|
|
41
41
|
execute the following command to install the
|
|
42
42
|
ae.sys_core module
|
|
@@ -54,13 +54,17 @@ following command in the root folder of this repository
|
|
|
54
54
|
(ae_sys_core):
|
|
55
55
|
|
|
56
56
|
```shell script
|
|
57
|
-
pip install
|
|
57
|
+
pip install --editable .[dev]
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
this command installs this module portion project
|
|
61
|
+
along with the necessary tools to modify the source code,
|
|
62
|
+
run unit tests, and build documentation. to install only
|
|
63
|
+
the dependencies required for a specific task, replace
|
|
64
|
+
`dev` with one of the following:
|
|
65
|
+
|
|
66
|
+
* `tests`: for contributing to the unit test suite
|
|
67
|
+
* `docs`: for maintaining and building documentation
|
|
64
68
|
|
|
65
69
|
more detailed explanations on how to contribute to this project
|
|
66
70
|
[are available here](
|
|
@@ -69,7 +73,9 @@ https://gitlab.com/ae-group/ae_sys_core/-/blob/develop/CONTRIBUTING.rst)
|
|
|
69
73
|
|
|
70
74
|
## namespace portion documentation
|
|
71
75
|
|
|
72
|
-
|
|
76
|
+
the documentation of the source code of this portion is available at
|
|
73
77
|
[ReadTheDocs](
|
|
74
78
|
https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html
|
|
75
79
|
"ae_sys_core documentation").
|
|
80
|
+
|
|
81
|
+
|
|
@@ -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 storages
|
|
6
|
+
external systems (like servers, databases, cloud storages).
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
system classes
|
|
@@ -14,7 +14,7 @@ the :class:`SystemBase` class represents a single system. the creation of instan
|
|
|
14
14
|
|
|
15
15
|
each instance of :class:`SystemBase` is using a system-specific connector class to establish an internal connection to
|
|
16
16
|
the represented system. for the implementation of a connector class, simply inherit from the abstract base class
|
|
17
|
-
:class:`
|
|
17
|
+
:class:`SystemConnectorBase` - also provided by this module.
|
|
18
18
|
|
|
19
19
|
by creating an instance of the class :class:`UsedSystems` you get a dictionary-like object with all the properties for
|
|
20
20
|
each configured system. the items of this dict are instances of the class :class:`SystemBase`.
|
|
@@ -33,9 +33,9 @@ items of this dict are also dicts with string keys and called `system configs`.
|
|
|
33
33
|
these system configs. the following system config dict keys are supported:
|
|
34
34
|
|
|
35
35
|
* **name** : system name (long name of system-id, only used for repr() and debugging).
|
|
36
|
-
* **credential_keys** :
|
|
37
|
-
* **feature_keys** :
|
|
38
|
-
* **available_rec_types** :
|
|
36
|
+
* **credential_keys** : list[str] of credential keys needed to connect to this system.
|
|
37
|
+
* **feature_keys** : list[str] of feature keys supported by this system.
|
|
38
|
+
* **available_rec_types** : dict[str, str] of supported rec type ids and names.
|
|
39
39
|
* **connector_module** : name of the connector package.module (def=ae.sys_data_<system-id-in-lower-case>).
|
|
40
40
|
* **connector_class** : name of the connector class (def=<system-id>SysConnector),
|
|
41
41
|
|
|
@@ -60,13 +60,14 @@ import importlib
|
|
|
60
60
|
|
|
61
61
|
from abc import ABC, abstractmethod
|
|
62
62
|
from collections import OrderedDict
|
|
63
|
-
from
|
|
63
|
+
from collections.abc import Sequence
|
|
64
|
+
from typing import Any, cast
|
|
64
65
|
|
|
65
66
|
from ae.core import DEBUG_LEVEL_DISABLED, DEBUG_LEVEL_VERBOSE, HIDDEN_CREDENTIALS # type: ignore # mypy
|
|
66
67
|
from ae.console import ConsoleApp # type: ignore # mypy doesn't find namespace pkg
|
|
67
68
|
|
|
68
69
|
|
|
69
|
-
__version__ = '0.3.
|
|
70
|
+
__version__ = '0.3.28'
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
SYS_SECTION_NAME = 'aeSystems' #: section name for system config variables
|
|
@@ -76,9 +77,9 @@ def config_value(var_name: str, console_app: ConsoleApp) -> Any:
|
|
|
76
77
|
""" determine system configuration setting value from application config options/variables.
|
|
77
78
|
|
|
78
79
|
:param var_name: config variable name. variable value gets searched in the application instance
|
|
79
|
-
environment, first in
|
|
80
|
+
environment, first in :ref:`application config options <config-options>`,
|
|
80
81
|
then in the :ref:`application config variables <config-variables>` (first within
|
|
81
|
-
the section
|
|
82
|
+
the section 'aeOptions') and then within SYS_SECTION_NAME/aeSystems.
|
|
82
83
|
:param console_app: ConsoleApp instance of the application providing these config options/variables.
|
|
83
84
|
:return: config variable value if found else None.
|
|
84
85
|
"""
|
|
@@ -94,12 +95,12 @@ class SystemBase:
|
|
|
94
95
|
|
|
95
96
|
# pylint: disable=too-many-arguments,too-many-positional-arguments
|
|
96
97
|
def __init__(self, sys_id: str, console_app: ConsoleApp, credentials: dict[str, str], features: Sequence[str] = (),
|
|
97
|
-
rec_types:
|
|
98
|
+
rec_types: dict[str, str] | None = None):
|
|
98
99
|
""" create new :class:`SystemBase` instance.
|
|
99
100
|
|
|
100
101
|
:param sys_id: unique str to identify a system (also used as prefix/suffix).
|
|
101
102
|
:param console_app: ConsoleApp instance of the application using these systems.
|
|
102
|
-
:param credentials: dict to access system, containing e.g. username, password, token, dsn
|
|
103
|
+
:param credentials: dict to access system, containing e.g. username, password, token, dsn.
|
|
103
104
|
:param features: optional list with special features for this system (see SDF_* constants).
|
|
104
105
|
:param rec_types: optional dict of available record types for this system.
|
|
105
106
|
"""
|
|
@@ -244,7 +245,7 @@ class UsedSystems(OrderedDict):
|
|
|
244
245
|
self.console_app.po(f"**** UsedSystems don't found the 'availableSystems' option or config variable"
|
|
245
246
|
f"in the config files ({self.console_app._cfg_files})")
|
|
246
247
|
return
|
|
247
|
-
self.available_systems: dict[str, dict[str,
|
|
248
|
+
self.available_systems: dict[str, dict[str, dict[str, str] | str]]
|
|
248
249
|
if selected_systems:
|
|
249
250
|
self.available_systems = {k: v for k, v in conf_systems.items() if k in selected_systems}
|
|
250
251
|
else:
|
|
@@ -296,7 +297,7 @@ class UsedSystems(OrderedDict):
|
|
|
296
297
|
"""
|
|
297
298
|
assert sys_id in self.available_systems, f"UsedSystems._add_system(): unsupported system id {sys_id}"
|
|
298
299
|
assert sys_id not in self._systems, f"UsedSystems._add_system(): system id {sys_id} already specified"
|
|
299
|
-
rec_types = cast(
|
|
300
|
+
rec_types = cast(dict[str, str] | None, self.available_systems[sys_id].get('available_rec_types'))
|
|
300
301
|
self._systems[sys_id] = SystemBase(sys_id, self.console_app, credentials, features, rec_types)
|
|
301
302
|
|
|
302
303
|
def connect(self, force_reconnect: bool = False) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_sys_core
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.28
|
|
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
|
|
@@ -16,40 +16,33 @@ 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
|
-
Classifier: Programming Language :: Python :: 3.
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Typing :: Typed
|
|
22
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE.md
|
|
25
|
-
Requires-Dist: ae_base
|
|
26
25
|
Requires-Dist: ae_core
|
|
27
26
|
Requires-Dist: ae_console
|
|
28
27
|
Provides-Extra: dev
|
|
29
28
|
Requires-Dist: aedev_project_tpls; extra == "dev"
|
|
30
29
|
Requires-Dist: ae_ae; extra == "dev"
|
|
31
30
|
Requires-Dist: anybadge; extra == "dev"
|
|
32
|
-
Requires-Dist: coverage-badge; extra == "dev"
|
|
33
|
-
Requires-Dist: aedev_project_manager; extra == "dev"
|
|
34
31
|
Requires-Dist: flake8; extra == "dev"
|
|
35
32
|
Requires-Dist: mypy; extra == "dev"
|
|
36
33
|
Requires-Dist: pylint; extra == "dev"
|
|
37
34
|
Requires-Dist: pytest; extra == "dev"
|
|
38
35
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
39
|
-
Requires-Dist: pytest-django; extra == "dev"
|
|
40
36
|
Requires-Dist: typing; extra == "dev"
|
|
41
37
|
Requires-Dist: types-setuptools; extra == "dev"
|
|
42
38
|
Provides-Extra: docs
|
|
43
39
|
Provides-Extra: tests
|
|
44
40
|
Requires-Dist: anybadge; extra == "tests"
|
|
45
|
-
Requires-Dist: coverage-badge; extra == "tests"
|
|
46
|
-
Requires-Dist: aedev_project_manager; extra == "tests"
|
|
47
41
|
Requires-Dist: flake8; extra == "tests"
|
|
48
42
|
Requires-Dist: mypy; extra == "tests"
|
|
49
43
|
Requires-Dist: pylint; extra == "tests"
|
|
50
44
|
Requires-Dist: pytest; extra == "tests"
|
|
51
45
|
Requires-Dist: pytest-cov; extra == "tests"
|
|
52
|
-
Requires-Dist: pytest-django; extra == "tests"
|
|
53
46
|
Requires-Dist: typing; extra == "tests"
|
|
54
47
|
Requires-Dist: types-setuptools; extra == "tests"
|
|
55
48
|
Dynamic: author
|
|
@@ -67,15 +60,15 @@ Dynamic: requires-dist
|
|
|
67
60
|
Dynamic: requires-python
|
|
68
61
|
Dynamic: summary
|
|
69
62
|
|
|
70
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.
|
|
71
|
-
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.
|
|
72
|
-
# sys_core 0.3.
|
|
63
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.110 -->
|
|
64
|
+
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.33 -->
|
|
65
|
+
# sys_core 0.3.28
|
|
73
66
|
|
|
74
67
|
[](
|
|
75
68
|
https://gitlab.com/ae-group/ae_sys_core)
|
|
76
69
|
[](
|
|
71
|
+
https://gitlab.com/ae-group/ae_sys_core/-/tree/release0.3.28)
|
|
79
72
|
[](
|
|
80
73
|
https://pypi.org/project/ae-sys-core/#history)
|
|
81
74
|
|
|
@@ -104,8 +97,8 @@ Dynamic: summary
|
|
|
104
97
|
https://pypi.org/project/ae-sys-core/#files)
|
|
105
98
|
|
|
106
99
|
|
|
107
|
-
## installation
|
|
108
100
|
|
|
101
|
+
## installation
|
|
109
102
|
|
|
110
103
|
execute the following command to install the
|
|
111
104
|
ae.sys_core module
|
|
@@ -123,13 +116,17 @@ following command in the root folder of this repository
|
|
|
123
116
|
(ae_sys_core):
|
|
124
117
|
|
|
125
118
|
```shell script
|
|
126
|
-
pip install
|
|
119
|
+
pip install --editable .[dev]
|
|
127
120
|
```
|
|
128
121
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
this command installs this module portion project
|
|
123
|
+
along with the necessary tools to modify the source code,
|
|
124
|
+
run unit tests, and build documentation. to install only
|
|
125
|
+
the dependencies required for a specific task, replace
|
|
126
|
+
`dev` with one of the following:
|
|
127
|
+
|
|
128
|
+
* `tests`: for contributing to the unit test suite
|
|
129
|
+
* `docs`: for maintaining and building documentation
|
|
133
130
|
|
|
134
131
|
more detailed explanations on how to contribute to this project
|
|
135
132
|
[are available here](
|
|
@@ -138,7 +135,9 @@ https://gitlab.com/ae-group/ae_sys_core/-/blob/develop/CONTRIBUTING.rst)
|
|
|
138
135
|
|
|
139
136
|
## namespace portion documentation
|
|
140
137
|
|
|
141
|
-
|
|
138
|
+
the documentation of the source code of this portion is available at
|
|
142
139
|
[ReadTheDocs](
|
|
143
140
|
https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html
|
|
144
141
|
"ae_sys_core documentation").
|
|
142
|
+
|
|
143
|
+
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
ae_base
|
|
2
1
|
ae_core
|
|
3
2
|
ae_console
|
|
4
3
|
|
|
@@ -6,14 +5,11 @@ ae_console
|
|
|
6
5
|
aedev_project_tpls
|
|
7
6
|
ae_ae
|
|
8
7
|
anybadge
|
|
9
|
-
coverage-badge
|
|
10
|
-
aedev_project_manager
|
|
11
8
|
flake8
|
|
12
9
|
mypy
|
|
13
10
|
pylint
|
|
14
11
|
pytest
|
|
15
12
|
pytest-cov
|
|
16
|
-
pytest-django
|
|
17
13
|
typing
|
|
18
14
|
types-setuptools
|
|
19
15
|
|
|
@@ -21,13 +17,10 @@ types-setuptools
|
|
|
21
17
|
|
|
22
18
|
[tests]
|
|
23
19
|
anybadge
|
|
24
|
-
coverage-badge
|
|
25
|
-
aedev_project_manager
|
|
26
20
|
flake8
|
|
27
21
|
mypy
|
|
28
22
|
pylint
|
|
29
23
|
pytest
|
|
30
24
|
pytest-cov
|
|
31
|
-
pytest-django
|
|
32
25
|
typing
|
|
33
26
|
types-setuptools
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.
|
|
1
|
+
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.109
|
|
2
2
|
[build-system]
|
|
3
3
|
requires = ["setuptools>=42", "wheel"]
|
|
4
4
|
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[tool.coverage.run]
|
|
7
|
+
omit = ["**/*.kv"] # ignore Kivy's .kv files in pytest unit tests with coverage
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.109
|
|
2
|
+
""" setup of ae namespace module portion sys_core: dynamic system configuration, initialization and connection. """
|
|
3
|
+
import pathlib
|
|
4
|
+
import sys
|
|
5
|
+
from typing import Any
|
|
6
|
+
import setuptools
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
print("SetUp " + __name__ + ": " + sys.executable + str(sys.argv) + f" {sys.path=}")
|
|
10
|
+
|
|
11
|
+
setup_kwargs: dict[str, Any] = {
|
|
12
|
+
'author': 'AndiEcker',
|
|
13
|
+
'author_email': 'aecker2@gmail.com',
|
|
14
|
+
'classifiers': [
|
|
15
|
+
'Development Status :: 3 - Alpha',
|
|
16
|
+
'Natural Language :: English',
|
|
17
|
+
'Operating System :: OS Independent',
|
|
18
|
+
'Programming Language :: Python',
|
|
19
|
+
'Programming Language :: Python :: 3',
|
|
20
|
+
'Programming Language :: Python :: 3.12',
|
|
21
|
+
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
22
|
+
'Typing :: Typed',
|
|
23
|
+
],
|
|
24
|
+
'description': 'ae namespace module portion sys_core: dynamic system configuration, initialization and connection',
|
|
25
|
+
'extras_require': {
|
|
26
|
+
'dev': [
|
|
27
|
+
'aedev_project_tpls',
|
|
28
|
+
'ae_ae',
|
|
29
|
+
'anybadge',
|
|
30
|
+
'flake8',
|
|
31
|
+
'mypy',
|
|
32
|
+
'pylint',
|
|
33
|
+
'pytest',
|
|
34
|
+
'pytest-cov',
|
|
35
|
+
'typing',
|
|
36
|
+
'types-setuptools',
|
|
37
|
+
],
|
|
38
|
+
'docs': [],
|
|
39
|
+
'tests': [
|
|
40
|
+
'anybadge',
|
|
41
|
+
'flake8',
|
|
42
|
+
'mypy',
|
|
43
|
+
'pylint',
|
|
44
|
+
'pytest',
|
|
45
|
+
'pytest-cov',
|
|
46
|
+
'typing',
|
|
47
|
+
'types-setuptools',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
'install_requires': [
|
|
51
|
+
'ae_core',
|
|
52
|
+
'ae_console',
|
|
53
|
+
],
|
|
54
|
+
'keywords': [
|
|
55
|
+
'configuration',
|
|
56
|
+
'development',
|
|
57
|
+
'environment',
|
|
58
|
+
'productivity',
|
|
59
|
+
],
|
|
60
|
+
'license': 'GPL-3.0-or-later',
|
|
61
|
+
'long_description': (pathlib.Path(__file__).parent / 'README.md').read_text(encoding='utf-8'),
|
|
62
|
+
'long_description_content_type': 'text/markdown',
|
|
63
|
+
'name': 'ae_sys_core',
|
|
64
|
+
'package_data': {
|
|
65
|
+
'': [],
|
|
66
|
+
},
|
|
67
|
+
'packages': [
|
|
68
|
+
'ae',
|
|
69
|
+
],
|
|
70
|
+
'project_urls': {
|
|
71
|
+
'Bug Tracker': 'https://gitlab.com/ae-group/ae_sys_core/-/issues',
|
|
72
|
+
'Documentation': 'https://ae.readthedocs.io/en/latest/_autosummary/ae.sys_core.html',
|
|
73
|
+
'Repository': 'https://gitlab.com/ae-group/ae_sys_core',
|
|
74
|
+
'Source': 'https://ae.readthedocs.io/en/latest/_modules/ae/sys_core.html',
|
|
75
|
+
},
|
|
76
|
+
'python_requires': '>=3.12',
|
|
77
|
+
'url': 'https://gitlab.com/ae-group/ae_sys_core',
|
|
78
|
+
'version': '0.3.28',
|
|
79
|
+
'zip_safe': True,
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if __name__ == '__main__':
|
|
83
|
+
setuptools.setup(**setup_kwargs)
|
|
84
|
+
...
|
|
@@ -3,10 +3,10 @@ import pytest
|
|
|
3
3
|
|
|
4
4
|
from configparser import ConfigParser
|
|
5
5
|
|
|
6
|
-
from ae.base import CFG_EXT
|
|
7
6
|
from ae.core import DEBUG_LEVEL_DISABLED, DEBUG_LEVEL_ENABLED, DEBUG_LEVEL_VERBOSE
|
|
8
7
|
from ae.console import ConsoleApp
|
|
9
8
|
|
|
9
|
+
|
|
10
10
|
from ae.sys_core import SystemBase, SystemConnectorBase, UsedSystems
|
|
11
11
|
|
|
12
12
|
|
|
@@ -35,7 +35,7 @@ SYS_DICTS = {SS: {'connector_module': 'sys_core_test_mocks', 'connector_class':
|
|
|
35
35
|
@pytest.fixture
|
|
36
36
|
def console_app_env(restore_app_env):
|
|
37
37
|
""" ConsoleApp with automatic option, sys.argv reset and app unregister. """
|
|
38
|
-
yield ConsoleApp('Console App Environment for ae.sys_core tests', additional_cfg_files=("tests/test" +
|
|
38
|
+
yield ConsoleApp('Console App Environment for ae.sys_core tests', additional_cfg_files=("tests/test" + '.cfg', ))
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class TestConfig:
|
|
@@ -91,14 +91,18 @@ class TestSystemBase:
|
|
|
91
91
|
|
|
92
92
|
console_app_env.debug_level = DEBUG_LEVEL_DISABLED
|
|
93
93
|
assert SS in repr(s)
|
|
94
|
+
assert usr
|
|
94
95
|
assert usr not in repr(s)
|
|
96
|
+
assert pwd
|
|
95
97
|
assert pwd not in repr(s)
|
|
96
98
|
assert FEATURE1 not in repr(s)
|
|
97
99
|
assert console_app_env.app_name not in repr(s)
|
|
98
100
|
|
|
99
101
|
console_app_env.debug_level = DEBUG_LEVEL_ENABLED
|
|
100
102
|
assert SS in repr(s)
|
|
103
|
+
assert usr
|
|
101
104
|
assert usr in repr(s)
|
|
105
|
+
assert pwd
|
|
102
106
|
assert pwd not in repr(s)
|
|
103
107
|
assert FEATURE1 in repr(s)
|
|
104
108
|
assert console_app_env.app_name in repr(s)
|
|
@@ -108,6 +112,7 @@ class TestSystemBase:
|
|
|
108
112
|
s.console_app.debug_level = DEBUG_LEVEL_VERBOSE
|
|
109
113
|
usr = s.credentials.get(CRED_KEY_USR)
|
|
110
114
|
assert SS in repr(s)
|
|
115
|
+
assert usr
|
|
111
116
|
assert usr in repr(s)
|
|
112
117
|
assert FEATURE1 in repr(s)
|
|
113
118
|
assert repr(s.features) in repr(s)
|
|
@@ -122,6 +127,7 @@ class TestSystemBase:
|
|
|
122
127
|
|
|
123
128
|
console_app_env.debug_level = DEBUG_LEVEL_VERBOSE
|
|
124
129
|
assert SS in repr(s)
|
|
130
|
+
assert usr and pwd
|
|
125
131
|
assert usr in repr(s)
|
|
126
132
|
assert pwd in repr(s)
|
|
127
133
|
assert FEATURE1 in repr(s)
|
|
@@ -185,7 +191,7 @@ class SystemConn(SystemConnectorBase):
|
|
|
185
191
|
return self.last_err_msg
|
|
186
192
|
|
|
187
193
|
|
|
188
|
-
class
|
|
194
|
+
class TestSystemConnectorBase:
|
|
189
195
|
def test_init(self, console_app_env):
|
|
190
196
|
empty_dict = {}
|
|
191
197
|
s = SystemBase(SX, console_app_env, empty_dict)
|
|
@@ -209,7 +215,9 @@ class TestSystemConnectionBase:
|
|
|
209
215
|
console_app_env.debug_level = DEBUG_LEVEL_DISABLED
|
|
210
216
|
|
|
211
217
|
assert SS in repr(sc)
|
|
218
|
+
assert usr
|
|
212
219
|
assert usr not in repr(sc)
|
|
220
|
+
assert pwd
|
|
213
221
|
assert pwd not in repr(sc)
|
|
214
222
|
assert FEATURE1 not in repr(sc)
|
|
215
223
|
assert console_app_env.app_name not in repr(sc)
|
|
@@ -226,6 +234,7 @@ class TestSystemConnectionBase:
|
|
|
226
234
|
sc = SystemConn(s)
|
|
227
235
|
usr = sc.system.credentials.get(CRED_KEY_USR)
|
|
228
236
|
assert SS in repr(sc)
|
|
237
|
+
assert usr
|
|
229
238
|
assert usr in repr(sc)
|
|
230
239
|
assert FEATURE1 in repr(sc)
|
|
231
240
|
assert repr(s.features) in repr(sc)
|
|
@@ -276,6 +285,7 @@ class TestUsedSystems:
|
|
|
276
285
|
|
|
277
286
|
def test_init_missing_cred(self, console_app_env):
|
|
278
287
|
us = UsedSystems(console_app_env)
|
|
288
|
+
# noinspection unsupported-operator
|
|
279
289
|
us.available_systems[SS]['credential_keys'] += ('MissingCredentialKey', )
|
|
280
290
|
us.clear()
|
|
281
291
|
us._load_merge_cred_feat({})
|
ae_sys_core-0.3.26/setup.py
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.59
|
|
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.101 -->\n'
|
|
27
|
-
'<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.22 -->\n'
|
|
28
|
-
'# sys_core 0.3.26\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.26)\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.26',
|
|
112
|
-
'zip_safe': True,
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if __name__ == "__main__":
|
|
116
|
-
setuptools.setup(**setup_kwargs)
|
|
117
|
-
pass
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|