orionis 0.567.0__py3-none-any.whl → 0.568.0__py3-none-any.whl
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.
- orionis/console/enums/actions.py +35 -16
- orionis/console/enums/listener.py +31 -33
- orionis/console/enums/styles.py +61 -64
- orionis/metadata/framework.py +1 -1
- {orionis-0.567.0.dist-info → orionis-0.568.0.dist-info}/METADATA +1 -1
- {orionis-0.567.0.dist-info → orionis-0.568.0.dist-info}/RECORD +9 -9
- {orionis-0.567.0.dist-info → orionis-0.568.0.dist-info}/WHEEL +0 -0
- {orionis-0.567.0.dist-info → orionis-0.568.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.567.0.dist-info → orionis-0.568.0.dist-info}/top_level.txt +0 -0
orionis/console/enums/actions.py
CHANGED
@@ -2,42 +2,61 @@ from enum import Enum
|
|
2
2
|
|
3
3
|
class ArgumentAction(Enum):
|
4
4
|
"""
|
5
|
-
Enumeration
|
6
|
-
|
7
|
-
This enum
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
Enumeration of valid action types for use with Python's argparse module.
|
6
|
+
|
7
|
+
This enum defines all standard action types that can be assigned to command-line arguments
|
8
|
+
using argparse. Each member represents a specific way argparse processes and stores argument values.
|
9
|
+
|
10
|
+
Attributes
|
11
|
+
----------
|
12
|
+
STORE : str
|
13
|
+
Stores the argument value directly.
|
14
|
+
STORE_CONST : str
|
15
|
+
Stores a constant value when the argument is specified.
|
16
|
+
STORE_TRUE : str
|
17
|
+
Stores True when the argument is specified.
|
18
|
+
STORE_FALSE : str
|
19
|
+
Stores False when the argument is specified.
|
20
|
+
APPEND : str
|
21
|
+
Appends each argument value to a list.
|
22
|
+
APPEND_CONST : str
|
23
|
+
Appends a constant value to a list when the argument is specified.
|
24
|
+
COUNT : str
|
25
|
+
Counts the number of times the argument is specified.
|
26
|
+
HELP : str
|
27
|
+
Displays the help message and exits.
|
28
|
+
VERSION : str
|
29
|
+
Displays version information and exits.
|
11
30
|
|
12
31
|
Returns
|
13
32
|
-------
|
14
33
|
str
|
15
|
-
The string value representing the argparse action type.
|
34
|
+
The string value representing the corresponding argparse action type.
|
16
35
|
"""
|
17
36
|
|
18
|
-
#
|
37
|
+
# Stores the argument value directly
|
19
38
|
STORE = "store"
|
20
39
|
|
21
|
-
#
|
40
|
+
# Stores a constant value when the argument is specified
|
22
41
|
STORE_CONST = "store_const"
|
23
42
|
|
24
|
-
#
|
43
|
+
# Stores True when the argument is specified
|
25
44
|
STORE_TRUE = "store_true"
|
26
45
|
|
27
|
-
#
|
46
|
+
# Stores False when the argument is specified
|
28
47
|
STORE_FALSE = "store_false"
|
29
48
|
|
30
|
-
#
|
49
|
+
# Appends each argument value to a list
|
31
50
|
APPEND = "append"
|
32
51
|
|
33
|
-
#
|
52
|
+
# Appends a constant value to a list when the argument is specified
|
34
53
|
APPEND_CONST = "append_const"
|
35
54
|
|
36
|
-
#
|
55
|
+
# Counts the number of times the argument is specified
|
37
56
|
COUNT = "count"
|
38
57
|
|
39
|
-
#
|
58
|
+
# Displays the help message and exits the program
|
40
59
|
HELP = "help"
|
41
60
|
|
42
|
-
#
|
61
|
+
# Displays version information and exits the program
|
43
62
|
VERSION = "version"
|
@@ -2,62 +2,60 @@ from enum import Enum
|
|
2
2
|
|
3
3
|
class ListeningEvent(Enum):
|
4
4
|
"""
|
5
|
-
Enumeration of
|
5
|
+
Enumeration of scheduler and job-related events.
|
6
6
|
|
7
|
-
This
|
8
|
-
and its associated jobs. These events
|
9
|
-
in the scheduler's state or
|
7
|
+
This enumeration defines the various events that can occur during the lifecycle of a scheduler
|
8
|
+
and its associated jobs. These events are intended to be used for monitoring, logging, or
|
9
|
+
triggering actions in response to changes in the scheduler's state or job execution.
|
10
10
|
|
11
11
|
Attributes
|
12
12
|
----------
|
13
13
|
SCHEDULER_STARTED : str
|
14
|
-
|
14
|
+
Triggered when the scheduler starts.
|
15
15
|
SCHEDULER_SHUTDOWN : str
|
16
|
-
|
16
|
+
Triggered when the scheduler shuts down.
|
17
17
|
SCHEDULER_PAUSED : str
|
18
|
-
|
18
|
+
Triggered when the scheduler is paused.
|
19
19
|
SCHEDULER_RESUMED : str
|
20
|
-
|
20
|
+
Triggered when the scheduler is resumed.
|
21
21
|
SCHEDULER_ERROR : str
|
22
|
-
|
22
|
+
Triggered when the scheduler encounters an error.
|
23
23
|
JOB_BEFORE : str
|
24
|
-
|
24
|
+
Triggered before a job is executed.
|
25
25
|
JOB_AFTER : str
|
26
|
-
|
27
|
-
JOB_ON_SUCCESS : str
|
28
|
-
Event triggered when a job completes successfully.
|
26
|
+
Triggered after a job is executed.
|
29
27
|
JOB_ON_FAILURE : str
|
30
|
-
|
28
|
+
Triggered when a job fails.
|
31
29
|
JOB_ON_MISSED : str
|
32
|
-
|
30
|
+
Triggered when a job is missed.
|
33
31
|
JOB_ON_MAXINSTANCES : str
|
34
|
-
|
32
|
+
Triggered when a job exceeds its maximum allowed instances.
|
35
33
|
JOB_ON_PAUSED : str
|
36
|
-
|
34
|
+
Triggered when a job is paused.
|
37
35
|
JOB_ON_RESUMED : str
|
38
|
-
|
36
|
+
Triggered when a paused job is resumed.
|
39
37
|
JOB_ON_REMOVED : str
|
40
|
-
|
38
|
+
Triggered when a job is removed.
|
41
39
|
|
42
40
|
Returns
|
43
41
|
-------
|
44
42
|
str
|
45
|
-
The string
|
43
|
+
The string value representing the event name.
|
46
44
|
"""
|
47
45
|
|
48
46
|
# Scheduler-related events
|
49
|
-
SCHEDULER_STARTED = "schedulerStarted"
|
50
|
-
SCHEDULER_SHUTDOWN = "schedulerShutdown"
|
51
|
-
SCHEDULER_PAUSED = "schedulerPaused"
|
52
|
-
SCHEDULER_RESUMED = "schedulerResumed"
|
53
|
-
SCHEDULER_ERROR = "schedulerError"
|
47
|
+
SCHEDULER_STARTED = "schedulerStarted" # Triggered when the scheduler starts
|
48
|
+
SCHEDULER_SHUTDOWN = "schedulerShutdown" # Triggered when the scheduler shuts down
|
49
|
+
SCHEDULER_PAUSED = "schedulerPaused" # Triggered when the scheduler is paused
|
50
|
+
SCHEDULER_RESUMED = "schedulerResumed" # Triggered when the scheduler is resumed
|
51
|
+
SCHEDULER_ERROR = "schedulerError" # Triggered when the scheduler encounters an error
|
54
52
|
|
55
53
|
# Job-related events
|
56
|
-
JOB_BEFORE = "before"
|
57
|
-
JOB_AFTER = "after"
|
58
|
-
JOB_ON_FAILURE = "onFailure"
|
59
|
-
JOB_ON_MISSED = "onMissed"
|
60
|
-
JOB_ON_MAXINSTANCES = "onMaxInstances"
|
61
|
-
JOB_ON_PAUSED = "onPaused"
|
62
|
-
JOB_ON_RESUMED = "onResumed"
|
63
|
-
JOB_ON_REMOVED = "onRemoved"
|
54
|
+
JOB_BEFORE = "before" # Triggered before a job is executed
|
55
|
+
JOB_AFTER = "after" # Triggered after a job is executed
|
56
|
+
JOB_ON_FAILURE = "onFailure" # Triggered when a job fails
|
57
|
+
JOB_ON_MISSED = "onMissed" # Triggered when a job is missed
|
58
|
+
JOB_ON_MAXINSTANCES = "onMaxInstances" # Triggered when a job exceeds its max instances
|
59
|
+
JOB_ON_PAUSED = "onPaused" # Triggered when a job is paused
|
60
|
+
JOB_ON_RESUMED = "onResumed" # Triggered when a paused job is resumed
|
61
|
+
JOB_ON_REMOVED = "onRemoved" # Triggered when a job is removed
|
orionis/console/enums/styles.py
CHANGED
@@ -2,106 +2,103 @@ from enum import Enum
|
|
2
2
|
|
3
3
|
class ANSIColors(Enum):
|
4
4
|
"""
|
5
|
-
ANSI escape codes for text and
|
5
|
+
ANSI escape codes for styling text and backgrounds in terminal applications.
|
6
6
|
|
7
|
-
This Enum provides
|
8
|
-
|
9
|
-
|
7
|
+
This Enum provides a comprehensive set of ANSI escape codes for coloring and styling
|
8
|
+
text output in console applications. It includes codes for foreground (text) colors,
|
9
|
+
background colors, bold and underlined styles, as well as additional effects such as
|
10
|
+
dim, italic, and magenta. These codes can be used to enhance the readability and
|
11
|
+
emphasis of console messages, such as errors, warnings, informational, and success messages.
|
10
12
|
|
11
13
|
Attributes
|
12
14
|
----------
|
13
15
|
DEFAULT : str
|
14
|
-
|
15
|
-
|
16
|
-
Background Colors
|
17
|
-
-----------------
|
16
|
+
ANSI code to reset all colors and styles to the terminal's default.
|
18
17
|
BG_INFO : str
|
19
|
-
|
18
|
+
ANSI code for a blue background, typically used for informational messages.
|
20
19
|
BG_ERROR : str
|
21
|
-
|
20
|
+
ANSI code for a red background, typically used for error messages.
|
21
|
+
BG_FAIL : str
|
22
|
+
ANSI code for a specific red background, often used for failure messages.
|
22
23
|
BG_WARNING : str
|
23
|
-
|
24
|
+
ANSI code for a yellow background, typically used for warnings.
|
24
25
|
BG_SUCCESS : str
|
25
|
-
|
26
|
-
|
27
|
-
Foreground Colors
|
28
|
-
-----------------
|
26
|
+
ANSI code for a green background, typically used for success messages.
|
29
27
|
TEXT_INFO : str
|
30
|
-
|
28
|
+
ANSI code for blue foreground text, used for informational messages.
|
31
29
|
TEXT_ERROR : str
|
32
|
-
|
30
|
+
ANSI code for bright red foreground text, used for errors.
|
33
31
|
TEXT_WARNING : str
|
34
|
-
|
32
|
+
ANSI code for yellow foreground text, used for warnings.
|
35
33
|
TEXT_SUCCESS : str
|
36
|
-
|
34
|
+
ANSI code for green foreground text, used for success messages.
|
37
35
|
TEXT_WHITE : str
|
38
|
-
|
36
|
+
ANSI code for white foreground text, useful for contrast.
|
39
37
|
TEXT_MUTED : str
|
40
|
-
|
41
|
-
|
42
|
-
Bold Foreground Colors
|
43
|
-
----------------------
|
38
|
+
ANSI code for gray (muted) foreground text, used for secondary information.
|
44
39
|
TEXT_BOLD_INFO : str
|
45
|
-
|
40
|
+
ANSI code for bold blue foreground text, emphasizing informational messages.
|
46
41
|
TEXT_BOLD_ERROR : str
|
47
|
-
|
42
|
+
ANSI code for bold red foreground text, emphasizing errors.
|
48
43
|
TEXT_BOLD_WARNING : str
|
49
|
-
|
44
|
+
ANSI code for bold yellow foreground text, emphasizing warnings.
|
50
45
|
TEXT_BOLD_SUCCESS : str
|
51
|
-
|
46
|
+
ANSI code for bold green foreground text, emphasizing success messages.
|
52
47
|
TEXT_BOLD_WHITE : str
|
53
|
-
|
48
|
+
ANSI code for bold white foreground text, for strong contrast.
|
54
49
|
TEXT_BOLD_MUTED : str
|
55
|
-
|
56
|
-
|
57
|
-
Additional Text Styles
|
58
|
-
----------------------
|
50
|
+
ANSI code for bold gray (muted) foreground text, for emphasized secondary information.
|
59
51
|
TEXT_BOLD : str
|
60
|
-
|
52
|
+
ANSI code for bold text style.
|
61
53
|
TEXT_STYLE_UNDERLINE : str
|
62
|
-
|
54
|
+
ANSI code for underlined text style.
|
63
55
|
TEXT_RESET : str
|
64
|
-
|
56
|
+
ANSI code to reset text styles to default settings.
|
65
57
|
CYAN : str
|
66
|
-
|
58
|
+
ANSI code for cyan foreground text, for special emphasis.
|
67
59
|
DIM : str
|
68
|
-
|
60
|
+
ANSI code for dimmed foreground text, for subtle emphasis.
|
69
61
|
MAGENTA : str
|
70
|
-
|
62
|
+
ANSI code for magenta foreground text, for special emphasis.
|
71
63
|
ITALIC : str
|
72
|
-
|
64
|
+
ANSI code for italicized foreground text, for special emphasis.
|
65
|
+
|
66
|
+
Returns
|
67
|
+
-------
|
68
|
+
str
|
69
|
+
The ANSI escape code string corresponding to the selected color or style.
|
73
70
|
"""
|
74
71
|
|
75
72
|
DEFAULT = '\033[0m' # Reset all colors and styles
|
76
73
|
|
77
74
|
# Background Colors
|
78
|
-
BG_INFO = '\033[44m' # Blue background for
|
79
|
-
BG_ERROR = '\033[41m' # Red background for
|
80
|
-
BG_FAIL = '\033[48;5;166m' #
|
81
|
-
BG_WARNING = '\033[43m' # Yellow background for
|
82
|
-
BG_SUCCESS = '\033[42m' # Green background for
|
75
|
+
BG_INFO = '\033[44m' # Blue background for informational messages
|
76
|
+
BG_ERROR = '\033[41m' # Red background for error messages
|
77
|
+
BG_FAIL = '\033[48;5;166m' # Specific red background for failure messages
|
78
|
+
BG_WARNING = '\033[43m' # Yellow background for warning messages
|
79
|
+
BG_SUCCESS = '\033[42m' # Green background for success messages
|
83
80
|
|
84
81
|
# Foreground Text Colors
|
85
|
-
TEXT_INFO = '\033[34m' # Blue for informational messages
|
86
|
-
TEXT_ERROR = '\033[91m' # Bright red for errors
|
87
|
-
TEXT_WARNING = '\033[33m' # Yellow for warnings
|
88
|
-
TEXT_SUCCESS = '\033[32m' # Green for success
|
89
|
-
TEXT_WHITE = '\033[97m' # White text
|
90
|
-
TEXT_MUTED = '\033[90m' # Gray (muted) text
|
82
|
+
TEXT_INFO = '\033[34m' # Blue text for informational messages
|
83
|
+
TEXT_ERROR = '\033[91m' # Bright red text for errors
|
84
|
+
TEXT_WARNING = '\033[33m' # Yellow text for warnings
|
85
|
+
TEXT_SUCCESS = '\033[32m' # Green text for success messages
|
86
|
+
TEXT_WHITE = '\033[97m' # White text for high contrast
|
87
|
+
TEXT_MUTED = '\033[90m' # Gray (muted) text for secondary information
|
91
88
|
|
92
89
|
# Bold Foreground Text Colors
|
93
|
-
TEXT_BOLD_INFO = '\033[1;34m' # Bold blue for
|
94
|
-
TEXT_BOLD_ERROR = '\033[1;91m' # Bold red for
|
95
|
-
TEXT_BOLD_WARNING = '\033[1;33m' # Bold yellow for
|
96
|
-
TEXT_BOLD_SUCCESS = '\033[1;32m' # Bold green for
|
97
|
-
TEXT_BOLD_WHITE = '\033[1;97m' # Bold white text
|
98
|
-
TEXT_BOLD_MUTED = '\033[1;90m' # Bold gray (muted) text
|
90
|
+
TEXT_BOLD_INFO = '\033[1;34m' # Bold blue text for informational emphasis
|
91
|
+
TEXT_BOLD_ERROR = '\033[1;91m' # Bold red text for error emphasis
|
92
|
+
TEXT_BOLD_WARNING = '\033[1;33m' # Bold yellow text for warning emphasis
|
93
|
+
TEXT_BOLD_SUCCESS = '\033[1;32m' # Bold green text for success emphasis
|
94
|
+
TEXT_BOLD_WHITE = '\033[1;97m' # Bold white text for strong contrast
|
95
|
+
TEXT_BOLD_MUTED = '\033[1;90m' # Bold gray (muted) text for emphasized secondary info
|
99
96
|
|
100
97
|
# Additional Text Styles
|
101
|
-
TEXT_BOLD = "\033[1m" # Bold text
|
102
|
-
TEXT_STYLE_UNDERLINE = '\033[4m' #
|
103
|
-
TEXT_RESET = "\033[0m" # Reset styles
|
104
|
-
CYAN = "\033[36m" # Cyan text
|
105
|
-
DIM = "\033[2m" # Dim text
|
106
|
-
MAGENTA = "\033[35m" # Magenta text
|
107
|
-
ITALIC = "\033[3m" # Italic text
|
98
|
+
TEXT_BOLD = "\033[1m" # Bold text style
|
99
|
+
TEXT_STYLE_UNDERLINE = '\033[4m' # Underlined text style
|
100
|
+
TEXT_RESET = "\033[0m" # Reset all text styles to default
|
101
|
+
CYAN = "\033[36m" # Cyan text for special emphasis
|
102
|
+
DIM = "\033[2m" # Dim text for subtle emphasis
|
103
|
+
MAGENTA = "\033[35m" # Magenta text for special emphasis
|
104
|
+
ITALIC = "\033[3m" # Italic text for special emphasis
|
orionis/metadata/framework.py
CHANGED
@@ -49,9 +49,9 @@ orionis/console/entities/scheduler_resumed.py,sha256=A5eIuhqmQIUYEnfpCF8HHaoBOAG
|
|
49
49
|
orionis/console/entities/scheduler_shutdown.py,sha256=aXOhNgXFQT7vdUk05Ib7mjfd0-Y_A7jq66uok9v-nsM,1036
|
50
50
|
orionis/console/entities/scheduler_started.py,sha256=-ONkJSX3XhhT7JgqTb727St-tcowknI-GHocNrxf2AE,950
|
51
51
|
orionis/console/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
|
-
orionis/console/enums/actions.py,sha256=
|
53
|
-
orionis/console/enums/listener.py,sha256=
|
54
|
-
orionis/console/enums/styles.py,sha256=
|
52
|
+
orionis/console/enums/actions.py,sha256=1peNzH9R9RBf_uEXB1Q2__J5r-Rb7qm3pcRjbBkDc7g,1935
|
53
|
+
orionis/console/enums/listener.py,sha256=eIBWeWtg-FdTFbbPU43ChymAV3mXYZPj2H2FCyE10w8,2711
|
54
|
+
orionis/console/enums/styles.py,sha256=IItXN6uJ2tGmJZFZekn6ZrMHLDUVierU0koO625OD3c,5199
|
55
55
|
orionis/console/exceptions/__init__.py,sha256=0qlHNuHMVZO87M-rP8lThUUyljRM1jSFNikaxSCjSbw,366
|
56
56
|
orionis/console/exceptions/cli_exception.py,sha256=HsZ_vSeNiJWQ0gznVFNcIdhM0Bj_vkSRVBJs0wMjEKY,1141
|
57
57
|
orionis/console/exceptions/cli_orionis_value_error.py,sha256=RQP0HRwxDG8hxFOT1kUoZ1Ab1CZ1KLoSIl5yqlmgG4M,1147
|
@@ -227,7 +227,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=1do4B09bU_6xbFHHVYYTGM
|
|
227
227
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
228
228
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
229
229
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
230
|
-
orionis/metadata/framework.py,sha256=
|
230
|
+
orionis/metadata/framework.py,sha256=gmjxLsSQEGcDJIW7OHiWBI0Pr24R51WDOlKH3HzpvT8,4109
|
231
231
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
232
232
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
233
233
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -420,8 +420,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
|
|
420
420
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
421
421
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
422
422
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
423
|
-
orionis-0.
|
424
|
-
orionis-0.
|
425
|
-
orionis-0.
|
426
|
-
orionis-0.
|
427
|
-
orionis-0.
|
423
|
+
orionis-0.568.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
424
|
+
orionis-0.568.0.dist-info/METADATA,sha256=is4MlNnAm9fp31xL56hKtmG-XSoHD3zs4w0MkFAdXq0,4801
|
425
|
+
orionis-0.568.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
426
|
+
orionis-0.568.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
427
|
+
orionis-0.568.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|