orionis 0.566.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.
Files changed (38) hide show
  1. orionis/console/base/scheduler.py +4 -4
  2. orionis/console/contracts/base_scheduler.py +4 -4
  3. orionis/console/entities/command.py +9 -7
  4. orionis/console/entities/event.py +29 -22
  5. orionis/console/entities/event_job.py +58 -44
  6. orionis/console/entities/scheduler_error.py +19 -6
  7. orionis/console/entities/scheduler_event_data.py +7 -10
  8. orionis/console/entities/scheduler_paused.py +12 -4
  9. orionis/console/entities/scheduler_resumed.py +7 -7
  10. orionis/console/entities/scheduler_shutdown.py +15 -7
  11. orionis/console/entities/scheduler_started.py +15 -7
  12. orionis/console/enums/actions.py +35 -16
  13. orionis/console/enums/listener.py +31 -33
  14. orionis/console/enums/styles.py +61 -64
  15. orionis/console/stub/command.stub +35 -16
  16. orionis/console/stub/listener.stub +0 -18
  17. orionis/metadata/framework.py +1 -1
  18. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/METADATA +1 -1
  19. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/RECORD +22 -38
  20. orionis/console/entities/all_jobs_removed.py +0 -23
  21. orionis/console/entities/executor_added.py +0 -23
  22. orionis/console/entities/executor_removed.py +0 -25
  23. orionis/console/entities/job_added.py +0 -24
  24. orionis/console/entities/job_error.py +0 -35
  25. orionis/console/entities/job_event_data.py +0 -40
  26. orionis/console/entities/job_executed.py +0 -31
  27. orionis/console/entities/job_max_instances.py +0 -27
  28. orionis/console/entities/job_missed.py +0 -25
  29. orionis/console/entities/job_modified.py +0 -22
  30. orionis/console/entities/job_pause.py +0 -22
  31. orionis/console/entities/job_removed.py +0 -22
  32. orionis/console/entities/job_resume.py +0 -25
  33. orionis/console/entities/job_store_added.py +0 -24
  34. orionis/console/entities/job_store_removed.py +0 -25
  35. orionis/console/entities/job_submitted.py +0 -24
  36. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/WHEEL +0 -0
  37. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/licenses/LICENCE +0 -0
  38. {orionis-0.566.0.dist-info → orionis-0.568.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  from datetime import datetime
2
2
  from orionis.console.contracts.base_scheduler import IBaseScheduler
3
3
  from orionis.console.contracts.schedule import ISchedule
4
- from orionis.console.entities.job_error import JobError
4
+ from orionis.console.entities.scheduler_error import SchedulerError
5
5
  from orionis.console.entities.scheduler_paused import SchedulerPaused
6
6
  from orionis.console.entities.scheduler_resumed import SchedulerResumed
7
7
  from orionis.console.entities.scheduler_shutdown import SchedulerShutdown
@@ -163,17 +163,17 @@ class BaseScheduler(IBaseScheduler):
163
163
  """
164
164
  pass
165
165
 
166
- async def onError(self, event: JobError, schedule: ISchedule):
166
+ async def onError(self, event: SchedulerError, schedule: ISchedule):
167
167
  """
168
168
  Handles the event triggered when a job encounters an error during execution.
169
169
 
170
- This method is invoked when a job fails due to an exception. It processes the `JobError`
170
+ This method is invoked when a job fails due to an exception. It processes the `SchedulerError`
171
171
  event and performs any necessary actions, such as logging the error details or notifying
172
172
  relevant systems about the failure.
173
173
 
174
174
  Parameters
175
175
  ----------
176
- event : JobError
176
+ event : SchedulerError
177
177
  The event object containing details about the job error, including the job ID,
178
178
  the exception that occurred, and any relevant metadata.
179
179
  schedule : ISchedule
@@ -1,6 +1,6 @@
1
1
  from abc import ABC, abstractmethod
2
2
  from orionis.console.contracts.schedule import ISchedule
3
- from orionis.console.entities.job_error import JobError
3
+ from orionis.console.entities.scheduler_error import SchedulerError
4
4
  from orionis.console.entities.scheduler_paused import SchedulerPaused
5
5
  from orionis.console.entities.scheduler_resumed import SchedulerResumed
6
6
  from orionis.console.entities.scheduler_shutdown import SchedulerShutdown
@@ -157,17 +157,17 @@ class IBaseScheduler(ABC):
157
157
  pass
158
158
 
159
159
  @abstractmethod
160
- async def onError(self, event: JobError, schedule: ISchedule):
160
+ async def onError(self, event: SchedulerError, schedule: ISchedule):
161
161
  """
162
162
  Handles the event triggered when a job encounters an error during execution.
163
163
 
164
- This method is invoked when a job fails due to an exception. It processes the `JobError`
164
+ This method is invoked when a job fails due to an exception. It processes the `SchedulerError`
165
165
  event and performs any necessary actions, such as logging the error details or notifying
166
166
  relevant systems about the failure.
167
167
 
168
168
  Parameters
169
169
  ----------
170
- event : JobError
170
+ event : SchedulerError
171
171
  The event object containing details about the job error, including the job ID,
172
172
  the exception that occurred, and any relevant metadata.
173
173
  schedule : ISchedule
@@ -12,14 +12,16 @@ class Command(BaseEntity):
12
12
  ----------
13
13
  obj : Type
14
14
  The type or class associated with the command.
15
- timestamps : bool
16
- Whether timestamps are enabled for this command.
15
+ method : str, optional
16
+ The method name to be invoked on the object. Defaults to 'hanldle'.
17
+ timestamps : bool, optional
18
+ Whether timestamps are enabled for this command. Defaults to True.
17
19
  signature : str
18
20
  The signature string representing the command usage.
19
21
  description : str
20
22
  A brief description of what the command does.
21
23
  args : Optional[argparse.ArgumentParser], optional
22
- Optional argument parser for command-line arguments.
24
+ Optional argument parser for command-line arguments. Defaults to None.
23
25
 
24
26
  Returns
25
27
  -------
@@ -30,11 +32,11 @@ class Command(BaseEntity):
30
32
  # The type or class associated with the command
31
33
  obj: Type
32
34
 
33
- # The method name to be invoked on the object
35
+ # The method name to be invoked on the object (default: 'hanldle')
34
36
  method: str = 'hanldle'
35
37
 
36
- # Indicates if timestamps are enabled for this command
37
- timestamps: bool
38
+ # Indicates if timestamps are enabled for this command (default: True)
39
+ timestamps: bool = True
38
40
 
39
41
  # The command usage signature
40
42
  signature: str
@@ -42,5 +44,5 @@ class Command(BaseEntity):
42
44
  # Description of the command's purpose
43
45
  description: str
44
46
 
45
- # Optional argument parser for command-line arguments
47
+ # Optional argument parser for command-line arguments (default: None)
46
48
  args: Optional[argparse.ArgumentParser] = None
@@ -9,30 +9,37 @@ from orionis.console.contracts.schedule_event_listener import IScheduleEventList
9
9
  @dataclass(kw_only=True)
10
10
  class Event:
11
11
  """
12
- Represents an event with scheduling and execution details.
12
+ Represents a scheduled event with configuration for execution, timing, and event handling.
13
13
 
14
- Attributes
14
+ Parameters
15
15
  ----------
16
16
  signature : str
17
- The unique identifier or signature of the event, used to distinguish it from other events.
18
- args : Optional[List[str]]
19
- A list of arguments associated with the event. Defaults to an empty list if not provided.
20
- purpose : Optional[str]
21
- A brief description of the event's purpose or intent. Can be None if not specified.
22
- random_delay : Optional[int]
23
- An optional random delay (in seconds) to be applied before the event is triggered. Can be None.
24
- start_date : Optional[datetime]
25
- The start date and time for the event. If None, the event starts immediately or based on the trigger.
26
- end_date : Optional[datetime]
27
- The end date and time for the event. If None, the event does not have a defined end time.
28
- trigger : Optional[Union[CronTrigger, DateTrigger, IntervalTrigger]]
29
- The trigger mechanism for the event, which determines when and how the event is executed.
30
- Can be a CronTrigger, DateTrigger, or IntervalTrigger. Defaults to None.
31
- details : Optional[str]
32
- Additional details or metadata about the event. Can be None if not specified.
33
- listener : Optional[IScheduleEventListener]
34
- An optional listener object that implements the IScheduleEventListener interface.
35
- This listener can handle event-specific logic. Defaults to None.
17
+ Unique identifier or signature for the event.
18
+ args : Optional[List[str]], default: []
19
+ List of arguments to be passed to the event.
20
+ purpose : Optional[str], default: None
21
+ Short description of the event's purpose.
22
+ random_delay : Optional[int], default: None
23
+ Random delay in seconds before the event is triggered.
24
+ start_date : Optional[datetime], default: None
25
+ The date and time when the event becomes active.
26
+ end_date : Optional[datetime], default: None
27
+ The date and time when the event is no longer active.
28
+ trigger : Optional[Union[CronTrigger, DateTrigger, IntervalTrigger]], default: None
29
+ Trigger mechanism that determines when the event is executed.
30
+ details : Optional[str], default: None
31
+ Additional metadata or information about the event.
32
+ listener : Optional[IScheduleEventListener], default: None
33
+ Listener object implementing IScheduleEventListener for event-specific logic.
34
+ max_instances : int, default: 1
35
+ Maximum number of concurrent instances allowed for the event.
36
+ misfire_grace_time : Optional[int], default: None
37
+ Grace period in seconds for handling misfired events.
38
+
39
+ Returns
40
+ -------
41
+ Event
42
+ An instance of the Event class with the specified configuration.
36
43
  """
37
44
 
38
45
  # Unique identifier for the event
@@ -66,4 +73,4 @@ class Event:
66
73
  max_instances: int = 1
67
74
 
68
75
  # Grace time in seconds for misfired events
69
- misfire_grace_time : Optional[int] = None
76
+ misfire_grace_time: Optional[int] = None
@@ -5,56 +5,70 @@ from typing import Any, Callable, Optional, Tuple
5
5
  @dataclass(kw_only=True)
6
6
  class EventJob:
7
7
  """
8
- Represents the main properties of a job in APScheduler.
8
+ Represents the main properties and configuration of a scheduled job in APScheduler.
9
9
 
10
- Attributes
10
+ Parameters
11
11
  ----------
12
12
  id : str
13
13
  Unique identifier for the job.
14
- name : Optional[str]
15
- Human-readable name for the job. Can be None if not specified.
16
- func : Callable[..., Any]
17
- The function or coroutine to be executed by the job.
18
- args : Tuple[Any, ...]
19
- Positional arguments to be passed to the function.
20
- trigger : Any
21
- The trigger that determines the job's execution schedule
22
- (e.g., IntervalTrigger, CronTrigger, etc.).
23
- executor : str
24
- Alias of the executor that will run the job.
25
- jobstore : str
26
- Alias of the job store where the job is stored.
27
- misfire_grace_time : Optional[int]
28
- Grace period in seconds for handling missed executions.
29
- If None, no grace period is applied.
30
- max_instances : int
31
- Maximum number of concurrent instances of the job allowed.
32
- coalesce : bool
33
- Whether to merge pending executions into a single execution.
34
- next_run_time : Optional[datetime]
35
- The next scheduled execution time of the job. Can be None if the job is paused or unscheduled.
14
+ code : int, optional
15
+ Numeric code representing the job status or type. Defaults to 0.
16
+ name : Optional[str], optional
17
+ Human-readable name for the job. Defaults to None.
18
+ func : Callable[..., Any], optional
19
+ The function or coroutine to be executed by the job. Defaults to None.
20
+ args : Tuple[Any, ...], optional
21
+ Positional arguments to be passed to the function. Defaults to empty tuple.
22
+ trigger : Any, optional
23
+ The trigger that determines the job's execution schedule (e.g., IntervalTrigger, CronTrigger). Defaults to None.
24
+ executor : str, optional
25
+ Alias of the executor that will run the job. Defaults to 'default'.
26
+ jobstore : str, optional
27
+ Alias of the job store where the job is stored. Defaults to 'default'.
28
+ misfire_grace_time : Optional[int], optional
29
+ Grace period in seconds for handling missed executions. If None, no grace period is applied. Defaults to None.
30
+ max_instances : int, optional
31
+ Maximum number of concurrent instances of the job allowed. Defaults to 1.
32
+ coalesce : bool, optional
33
+ Whether to merge pending executions into a single execution. Defaults to False.
34
+ next_run_time : Optional[datetime], optional
35
+ The next scheduled execution time of the job. Can be None if the job is paused or unscheduled. Defaults to None.
36
+ exception : Optional[BaseException], optional
37
+ Exception raised during the last job execution, if any. Defaults to None.
38
+ traceback : Optional[str], optional
39
+ String representation of the traceback if an exception occurred. Defaults to None.
40
+ retval : Optional[Any], optional
41
+ Return value from the last job execution. Defaults to None.
42
+ purpose : Optional[str], optional
43
+ Description of the job's purpose. Defaults to None.
44
+ start_date : Optional[datetime], optional
45
+ The earliest possible run time for the job. Defaults to None.
46
+ end_date : Optional[datetime], optional
47
+ The latest possible run time for the job. Defaults to None.
48
+ details : Optional[str], optional
49
+ Additional details or metadata about the job. Defaults to None.
36
50
 
37
51
  Returns
38
52
  -------
39
53
  None
40
- This class is a data container and does not return any value.
54
+ This class is a data container and does not return any value upon instantiation.
41
55
  """
42
- id: str
43
- code: int = 0
44
- name: Optional[str] = None
45
- func: Callable[..., Any] = None
46
- args: Tuple[Any, ...] = ()
47
- trigger: Any = None
48
- executor: str = 'default'
49
- jobstore: str = 'default'
50
- misfire_grace_time: Optional[int] = None
51
- max_instances: int = 1
52
- coalesce: bool = False
53
- next_run_time: Optional[datetime] = None
54
- exception: Optional[BaseException] = None
55
- traceback: Optional[str] = None
56
- retval: Optional[Any] = None
57
- purpose: Optional[str] = None
58
- start_date: Optional[datetime] = None
59
- end_date: Optional[datetime] = None
60
- details: Optional[str] = None
56
+ id: str # Unique identifier for the job
57
+ code: int = 0 # Numeric code for job status/type
58
+ name: Optional[str] = None # Human-readable job name
59
+ func: Callable[..., Any] = None # Function or coroutine to execute
60
+ args: Tuple[Any, ...] = () # Positional arguments for the function
61
+ trigger: Any = None # Scheduling trigger (e.g., interval, cron)
62
+ executor: str = 'default' # Executor alias
63
+ jobstore: str = 'default' # Job store alias
64
+ misfire_grace_time: Optional[int] = None # Grace period for missed executions
65
+ max_instances: int = 1 # Max concurrent job instances
66
+ coalesce: bool = False # Merge pending executions if True
67
+ next_run_time: Optional[datetime] = None # Next scheduled execution time
68
+ exception: Optional[BaseException] = None # Exception from last execution
69
+ traceback: Optional[str] = None # Traceback string if exception occurred
70
+ retval: Optional[Any] = None # Return value from last execution
71
+ purpose: Optional[str] = None # Description of job's purpose
72
+ start_date: Optional[datetime] = None # Earliest run time
73
+ end_date: Optional[datetime] = None # Latest run time
74
+ details: Optional[str] = None # Additional job details or metadata
@@ -5,15 +5,28 @@ from orionis.console.entities.scheduler_event_data import SchedulerEventData
5
5
  @dataclass(kw_only=True)
6
6
  class SchedulerError(SchedulerEventData):
7
7
  """
8
- Represents an event triggered when the scheduler is paused.
8
+ Represents an error event triggered by the scheduler.
9
9
 
10
- This class is a data structure that inherits from `SchedulerEventData`
11
- and is used to encapsulate information related to the scheduler pause event.
10
+ This data class extends `SchedulerEventData` and is used to encapsulate
11
+ information related to errors that occur during scheduler operations.
12
+ It stores the exception that caused the error and the associated traceback
13
+ for debugging and logging purposes.
12
14
 
13
15
  Attributes
14
16
  ----------
15
- (Inherited from SchedulerEventData)
17
+ exception : Optional[BaseException]
18
+ The exception instance that caused the scheduler error, if any.
19
+ traceback : Optional[str]
20
+ The traceback string providing details about where the error occurred.
21
+
22
+ Returns
23
+ -------
24
+ SchedulerError
25
+ An instance containing details about the scheduler error event.
16
26
  """
17
27
 
18
- exception: Optional[BaseException] = None # Exception that caused the scheduler error
19
- traceback: Optional[str] = None # Traceback information related to the scheduler error
28
+ # Exception that caused the scheduler error, if present
29
+ exception: Optional[BaseException] = None
30
+
31
+ # Traceback information related to the scheduler error, if available
32
+ traceback: Optional[str] = None
@@ -3,24 +3,21 @@ from dataclasses import dataclass
3
3
  @dataclass(kw_only=True)
4
4
  class SchedulerEventData:
5
5
  """
6
- Represents the data associated with scheduler-related events.
6
+ Base data structure for scheduler-related events.
7
7
 
8
- This class serves as a base structure for encapsulating information about
9
- events occurring within the scheduler system. It includes a numeric event
10
- code to identify the type of event and an optional alias for additional
11
- context.
8
+ This class encapsulates information about events that occur within the scheduler system.
9
+ It provides a numeric event code to identify the event type and can be extended for
10
+ additional context as needed.
12
11
 
13
- Attributes
12
+ Parameters
14
13
  ----------
15
14
  code : int
16
- A numeric code that uniquely identifies the type of event within the
17
- scheduler system.
15
+ Numeric code that uniquely identifies the type of event within the scheduler system.
18
16
 
19
17
  Returns
20
18
  -------
21
19
  SchedulerEventData
22
- An instance of the `SchedulerEventData` class containing the event code
23
- and optional alias.
20
+ An instance of SchedulerEventData containing the event code.
24
21
  """
25
22
 
26
23
  # Numeric code representing the type of event
@@ -6,12 +6,20 @@ class SchedulerPaused(SchedulerEventData):
6
6
  """
7
7
  Represents an event triggered when the scheduler is paused.
8
8
 
9
- This class is a data structure that inherits from `SchedulerEventData`
10
- and is used to encapsulate information related to the scheduler pause event.
9
+ This data class extends `SchedulerEventData` and encapsulates information
10
+ related to the scheduler pause event, such as the time at which the pause occurred.
11
11
 
12
12
  Attributes
13
13
  ----------
14
- (Inherited from SchedulerEventData)
14
+ time : str
15
+ The time when the scheduler was paused, formatted as a string.
16
+ (Other attributes are inherited from SchedulerEventData.)
17
+
18
+ Returns
19
+ -------
20
+ SchedulerPaused
21
+ An instance of SchedulerPaused containing information about the pause event.
15
22
  """
16
23
 
17
- time: str # Time when the scheduler was paused
24
+ # The time when the scheduler was paused
25
+ time: str
@@ -6,19 +6,19 @@ class SchedulerResumed(SchedulerEventData):
6
6
  """
7
7
  Represents an event triggered when the scheduler is resumed.
8
8
 
9
- This class is a specialized data structure that inherits from
10
- `SchedulerEventData` and is used to encapsulate information
11
- about the resumption of the scheduler.
9
+ This data class extends `SchedulerEventData` and is used to encapsulate
10
+ information about the scheduler's resumption event.
12
11
 
13
12
  Attributes
14
13
  ----------
15
- (Inherited from SchedulerEventData)
14
+ time : str
15
+ The time when the scheduler was resumed.
16
16
 
17
17
  Returns
18
18
  -------
19
19
  SchedulerResumed
20
- An instance of the `SchedulerResumed` class representing
21
- the resumed scheduler event.
20
+ An instance containing information about the resumed scheduler event.
22
21
  """
23
22
 
24
- time: str # The time when the scheduler was resumed
23
+ # The time when the scheduler was resumed
24
+ time: str
@@ -6,18 +6,26 @@ class SchedulerShutdown(SchedulerEventData):
6
6
  """
7
7
  Represents an event triggered when the scheduler shuts down.
8
8
 
9
- This class is a specialized type of `SchedulerEventData` that is used to
10
- encapsulate information related to the shutdown of the scheduler.
9
+ This class extends `SchedulerEventData` and is used to encapsulate
10
+ information related to the shutdown of the scheduler, such as the
11
+ shutdown time and the list of tasks present at shutdown.
11
12
 
12
13
  Attributes
13
14
  ----------
14
- (No additional attributes are defined in this class. It inherits all attributes
15
- from `SchedulerEventData`.)
15
+ time : str
16
+ The time when the scheduler was shut down.
17
+ tasks : list
18
+ The list of tasks that were scheduled at the time of shutdown.
16
19
 
17
20
  Returns
18
21
  -------
19
22
  SchedulerShutdown
20
- An instance of the `SchedulerShutdown` class representing the shutdown event.
23
+ An instance representing the scheduler shutdown event, containing
24
+ the shutdown time and the list of scheduled tasks.
21
25
  """
22
- time: str = "" # The time when the scheduler started
23
- tasks: list = field(default_factory=list) # List of tasks scheduled at the time of start
26
+
27
+ # The time when the scheduler was shut down
28
+ time: str = ""
29
+
30
+ # List of tasks scheduled at the time of shutdown
31
+ tasks: list = field(default_factory=list)
@@ -4,19 +4,27 @@ from orionis.console.entities.scheduler_event_data import SchedulerEventData
4
4
  @dataclass(kw_only=True)
5
5
  class SchedulerStarted(SchedulerEventData):
6
6
  """
7
- Represents an event triggered when the scheduler starts running.
7
+ Represents the event data generated when the scheduler starts.
8
8
 
9
- This class is a data structure that inherits from `SchedulerEventData`
10
- and is used to encapsulate information about the scheduler's start event.
9
+ This data class extends `SchedulerEventData` and encapsulates information
10
+ about the scheduler's start event, such as the start time and the list of
11
+ tasks scheduled at that moment.
11
12
 
12
13
  Attributes
13
14
  ----------
14
- (No additional attributes are defined in this class; it inherits all attributes from `SchedulerEventData`.)
15
+ time : str
16
+ The time when the scheduler started.
17
+ tasks : list
18
+ The list of tasks that were scheduled at the time the scheduler started.
15
19
 
16
20
  Returns
17
21
  -------
18
22
  SchedulerStarted
19
- An instance of the `SchedulerStarted` class, representing the scheduler start event.
23
+ An instance containing the scheduler start event data.
20
24
  """
21
- time: str = "" # The time when the scheduler started
22
- tasks: list = field(default_factory=list) # List of tasks scheduled at the time of start
25
+
26
+ # The time when the scheduler started
27
+ time: str = ""
28
+
29
+ # List of tasks scheduled at the time of start
30
+ tasks: list = field(default_factory=list)
@@ -2,42 +2,61 @@ from enum import Enum
2
2
 
3
3
  class ArgumentAction(Enum):
4
4
  """
5
- Enumeration for valid argparse action types.
6
-
7
- This enum provides a comprehensive list of all standard action types
8
- that can be used with Python's argparse module when defining command
9
- line arguments. Each enum member corresponds to a specific behavior
10
- for how argument values should be processed and stored.
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
- # Store the argument value directly
37
+ # Stores the argument value directly
19
38
  STORE = "store"
20
39
 
21
- # Store a constant value when the argument is specified
40
+ # Stores a constant value when the argument is specified
22
41
  STORE_CONST = "store_const"
23
42
 
24
- # Store True when the argument is specified
43
+ # Stores True when the argument is specified
25
44
  STORE_TRUE = "store_true"
26
45
 
27
- # Store False when the argument is specified
46
+ # Stores False when the argument is specified
28
47
  STORE_FALSE = "store_false"
29
48
 
30
- # Append each argument value to a list
49
+ # Appends each argument value to a list
31
50
  APPEND = "append"
32
51
 
33
- # Append a constant value to a list when the argument is specified
52
+ # Appends a constant value to a list when the argument is specified
34
53
  APPEND_CONST = "append_const"
35
54
 
36
- # Count the number of times the argument is specified
55
+ # Counts the number of times the argument is specified
37
56
  COUNT = "count"
38
57
 
39
- # Display help message and exit
58
+ # Displays the help message and exits the program
40
59
  HELP = "help"
41
60
 
42
- # Display version information and exit
61
+ # Displays version information and exits the program
43
62
  VERSION = "version"