Runners
Results
Represents the results of running modules.
Source code in aoc/runners.py
16 17 18 19 20 21 22 23 24 25 |
|
results: Dict[Key, AnyResult]
instance-attribute
The results of running Solution
instances.
final_results: Dict[Key, AnyFinalResult]
instance-attribute
The results of running FinalSolution
instances.
Runner
Represents runners for python paths containing modules.
Source code in aoc/runners.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
run_path(path: Path, data_path: Path = DATA_PATH) -> Results
Runs the module from the path
and returns the results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
The path to the module. |
required |
data_path |
Path
|
The path to the data directory. |
DATA_PATH
|
Returns:
Type | Description |
---|---|
Results
|
The results of running the module. |
Raises:
Type | Description |
---|---|
AnyError
|
Any error that occurs while running. |
Source code in aoc/runners.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
run_path(path: Path, data_path: Path = DATA_PATH, runner_type: Type[Runner] = Runner) -> Results
Runs the module with the given name
and returns the results.
This is equivalent to:
runner_type().run_path(path, data_path)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
The path to the module. |
required |
data_path |
Path
|
The path to the data directory. |
DATA_PATH
|
runner_type |
Type[Runner]
|
The runner type to use. |
Runner
|
Returns:
Type | Description |
---|---|
Results
|
The results of running the module. |
Raises:
Type | Description |
---|---|
AnyError
|
Any error that occurs while running. |
Source code in aoc/runners.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|