cgse-core 0.1.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.
- cgse_core-0.1.0/.envrc.disabled +9 -0
- cgse_core-0.1.0/.gitignore +39 -0
- cgse_core-0.1.0/PKG-INFO +20 -0
- cgse_core-0.1.0/README.md +1 -0
- cgse_core-0.1.0/pyproject.toml +86 -0
- cgse_core-0.1.0/src/cgse_core/__init__.py +0 -0
- cgse_core-0.1.0/src/cgse_core/settings.yaml +35 -0
- cgse_core-0.1.0/src/egse/confman/__init__.py +1081 -0
- cgse_core-0.1.0/src/egse/confman/__main__.py +0 -0
- cgse_core-0.1.0/src/egse/confman/confman.yaml +67 -0
- cgse_core-0.1.0/src/egse/confman/confman_cs.py +237 -0
- cgse_core-0.1.0/src/egse/logger/__init__.py +261 -0
- cgse_core-0.1.0/src/egse/logger/__main__.py +12 -0
- cgse_core-0.1.0/src/egse/logger/log_cs.py +310 -0
- cgse_core-0.1.0/src/egse/procman/__init__.py +816 -0
- cgse_core-0.1.0/src/egse/procman/procman.yaml +49 -0
- cgse_core-0.1.0/src/egse/procman/procman_cs.py +201 -0
- cgse_core-0.1.0/src/egse/storage/__init__.py +1090 -0
- cgse_core-0.1.0/src/egse/storage/__main__.py +3 -0
- cgse_core-0.1.0/src/egse/storage/persistence.py +537 -0
- cgse_core-0.1.0/src/egse/storage/storage.yaml +72 -0
- cgse_core-0.1.0/src/egse/storage/storage_cs.py +198 -0
- cgse_core-0.1.0/src/scripts/_start.py +41 -0
- cgse_core-0.1.0/src/scripts/_status.py +81 -0
- cgse_core-0.1.0/src/scripts/_stop.py +41 -0
- cgse_core-0.1.0/src/scripts/cgse.py +100 -0
- cgse_core-0.1.0/src/scripts/services.py +49 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
SITE=CSL2
|
|
2
|
+
|
|
3
|
+
export PLATO_CONF_DATA_LOCATION=~/Documents/PyCharmProjects/plato-cgse-conf/data/${SITE}/conf
|
|
4
|
+
export PLATO_CONF_REPO_LOCATION=~/Documents/PyCharmProjects/plato-cgse-conf
|
|
5
|
+
export PLATO_DATA_STORAGE_LOCATION=~/data
|
|
6
|
+
export PLATO_LOCAL_SETTINGS=~/cgse/local_settings.yaml
|
|
7
|
+
|
|
8
|
+
export PYTHONSTARTUP=~/Documents/PyCharmProjects/plato-common-egse/startup.py
|
|
9
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Python versions and environment
|
|
2
|
+
|
|
3
|
+
__pycache__
|
|
4
|
+
.python-version
|
|
5
|
+
.envrc
|
|
6
|
+
|
|
7
|
+
# Build systems
|
|
8
|
+
|
|
9
|
+
build
|
|
10
|
+
dist
|
|
11
|
+
**/*.egg-info
|
|
12
|
+
|
|
13
|
+
# Apple specific
|
|
14
|
+
|
|
15
|
+
.DS_Store
|
|
16
|
+
|
|
17
|
+
# Unit testing
|
|
18
|
+
|
|
19
|
+
.pytest_cache
|
|
20
|
+
.coverage
|
|
21
|
+
htmlcov
|
|
22
|
+
|
|
23
|
+
# Virtual environments
|
|
24
|
+
|
|
25
|
+
.env
|
|
26
|
+
.venv
|
|
27
|
+
venv
|
|
28
|
+
|
|
29
|
+
# PyCharm IDE
|
|
30
|
+
|
|
31
|
+
.idea
|
|
32
|
+
|
|
33
|
+
# MKDOCS documentation site
|
|
34
|
+
|
|
35
|
+
/site
|
|
36
|
+
|
|
37
|
+
# Packaging
|
|
38
|
+
|
|
39
|
+
uv.lock
|
cgse_core-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cgse-core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Core services for the CGSE framework
|
|
5
|
+
Author: IVS KU Leuven
|
|
6
|
+
Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Keywords: CGSE,Common-EGSE,hardware testing,software framework
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Requires-Dist: apscheduler>=3.11.0
|
|
11
|
+
Requires-Dist: cgse-common
|
|
12
|
+
Requires-Dist: click>=8.1.8
|
|
13
|
+
Requires-Dist: gitpython>=3.1.44
|
|
14
|
+
Requires-Dist: prometheus-client>=0.21.1
|
|
15
|
+
Requires-Dist: pyzmq==23.2.1
|
|
16
|
+
Requires-Dist: rich>=13.9.4
|
|
17
|
+
Requires-Dist: typer>=0.15.1
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# The core services for the CGSE platform
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# The core services for the CGSE platform
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "cgse-core"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Core services for the CGSE framework"
|
|
5
|
+
authors = [
|
|
6
|
+
{name = "IVS KU Leuven"}
|
|
7
|
+
]
|
|
8
|
+
maintainers = [
|
|
9
|
+
{name = "Rik Huygen", email = "rik.huygen@kuleuven.be"},
|
|
10
|
+
{name = "Sara Regibo", email = "sara.regibo@kuleuven.be"}
|
|
11
|
+
]
|
|
12
|
+
readme = {"file" = "README.md", "content-type" = "text/markdown"}
|
|
13
|
+
requires-python = ">=3.9"
|
|
14
|
+
license = "MIT"
|
|
15
|
+
keywords = [
|
|
16
|
+
"CGSE",
|
|
17
|
+
"Common-EGSE",
|
|
18
|
+
"hardware testing",
|
|
19
|
+
"software framework"
|
|
20
|
+
]
|
|
21
|
+
dependencies = [
|
|
22
|
+
"cgse-common",
|
|
23
|
+
"apscheduler>=3.11.0",
|
|
24
|
+
"click>=8.1.8",
|
|
25
|
+
"gitpython>=3.1.44",
|
|
26
|
+
"prometheus-client>=0.21.1",
|
|
27
|
+
"pyzmq == 23.2.1",
|
|
28
|
+
"rich>=13.9.4",
|
|
29
|
+
"typer>=0.15.1",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.scripts]
|
|
33
|
+
log_cs = 'egse.logger.log_cs:cli'
|
|
34
|
+
sm_cs = 'egse.storage.storage_cs:cli'
|
|
35
|
+
cm_cs = 'egse.confman.confman_cs:cli'
|
|
36
|
+
pm_cs = 'egse.procman.procman_cs:cli'
|
|
37
|
+
|
|
38
|
+
cgse = 'scripts.cgse:app'
|
|
39
|
+
|
|
40
|
+
[project.entry-points."cgse.version"]
|
|
41
|
+
cgse-core = ''
|
|
42
|
+
|
|
43
|
+
[project.entry-points."cgse.settings"]
|
|
44
|
+
cgse-core = "cgse_core:settings.yaml"
|
|
45
|
+
|
|
46
|
+
[tool.pytest.ini_options]
|
|
47
|
+
pythonpath = "src"
|
|
48
|
+
testpaths = ["tests"]
|
|
49
|
+
addopts = "-ra --cov --cov-report html"
|
|
50
|
+
filterwarnings = [
|
|
51
|
+
"ignore::DeprecationWarning"
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[tool.coverage.run]
|
|
55
|
+
omit = [
|
|
56
|
+
"tests/*",
|
|
57
|
+
"*/cgse-common/*",
|
|
58
|
+
"conftest.py",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.build.targets.sdist]
|
|
62
|
+
exclude = [
|
|
63
|
+
"/tests",
|
|
64
|
+
"/pytest.ini",
|
|
65
|
+
"/.gitignore",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[tool.hatch.build.targets.wheel]
|
|
69
|
+
packages = ["src/egse", "src/scripts", "src/cgse_core"]
|
|
70
|
+
|
|
71
|
+
[tool.ruff]
|
|
72
|
+
line-length = 120
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint]
|
|
75
|
+
extend-select = ["E501"]
|
|
76
|
+
|
|
77
|
+
[build-system]
|
|
78
|
+
requires = ["hatchling"]
|
|
79
|
+
build-backend = "hatchling.build"
|
|
80
|
+
|
|
81
|
+
[dependency-groups]
|
|
82
|
+
dev = [
|
|
83
|
+
"pytest>=8.3.4",
|
|
84
|
+
"pytest-cov>=6.0.0",
|
|
85
|
+
"ruff>=0.9.0",
|
|
86
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
PACKAGES:
|
|
2
|
+
CGSE_CORE: The core services of the CGSE
|
|
3
|
+
|
|
4
|
+
Logging Control Server: # LOG_CS
|
|
5
|
+
|
|
6
|
+
PROTOCOL: tcp
|
|
7
|
+
HOSTNAME: localhost # The hostname that client shall connect to, e.g. pleiad01 @ KU Leuven
|
|
8
|
+
LOGGING_PORT: 7000
|
|
9
|
+
COMMANDING_PORT: 7001
|
|
10
|
+
METRICS_PORT: 7003 # The HTTP port where Prometheus will connect to for retrieving metrics
|
|
11
|
+
MAX_NR_LOG_FILES: 20 # The maximum number of log files that will be maintained in a roll-over
|
|
12
|
+
MAX_SIZE_LOG_FILES: 20 # The maximum size one log file can become
|
|
13
|
+
TEXTUALOG_IP_ADDRESS: 127.0.0.1 # The IP address of the textualog listening server
|
|
14
|
+
TEXTUALOG_LISTENING_PORT: 19996 # The port number on which the textualog server is listening
|
|
15
|
+
|
|
16
|
+
Configuration Manager Control Server: # CM_CS
|
|
17
|
+
|
|
18
|
+
PROTOCOL: tcp
|
|
19
|
+
HOSTNAME: localhost # The hostname that client shall connect to, e.g. pleiad01 @ KU Leuven
|
|
20
|
+
COMMANDING_PORT: 6000 # The port on which the controller listens to commands - REQ-REP
|
|
21
|
+
MONITORING_PORT: 6001 # The port on which the controller sends periodic status information of the device - PUB-SUB
|
|
22
|
+
SERVICE_PORT: 6002 # The port on which the controller listens for configuration and administration - REQ-REP
|
|
23
|
+
METRICS_PORT: 6003 # The HTTP port where Prometheus will connect to for retrieving metrics
|
|
24
|
+
DELAY: 1 # The delay time between publishing status information [seconds]
|
|
25
|
+
STORAGE_MNEMONIC: CM # The mnemonic to be used in the filename storing the housekeeping data
|
|
26
|
+
|
|
27
|
+
Storage Control Server: # SM_CS
|
|
28
|
+
|
|
29
|
+
PROTOCOL: tcp
|
|
30
|
+
HOSTNAME: localhost # The hostname that client shall connect to, e.g. pleiad01 @ KU Leuven
|
|
31
|
+
COMMANDING_PORT: 6100 # The port on which the controller listens to commands - REQ-REP
|
|
32
|
+
MONITORING_PORT: 6101 # The port on which the controller sends periodic status information of the device - PUB-SUB
|
|
33
|
+
SERVICE_PORT: 6102 # The port on which the controller listens for configuration and administration - REQ-REP
|
|
34
|
+
METRICS_PORT: 6103 # The HTTP port where Prometheus will connect to for retrieving metrics
|
|
35
|
+
DELAY: 1 # The delay time between publishing status information [seconds]
|