nicescholia API Documentation
cmd
Command line entry point
ScholiaCmd
Bases: WebserverCmd
Command Line Interface
Source code in nscholia/cmd.py
13 14 15 16 17 18 19 20 | |
dashboard
Dashboard
UI for monitoring endpoints using ListOfDictsGrid.
Source code in nscholia/dashboard.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
check_all()
async
Run checks for all endpoints in the grid
Source code in nscholia/dashboard.py
24 25 26 27 28 29 30 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
setup_ui()
Render the dashboard
Source code in nscholia/dashboard.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
endpoints
created 2025-12-17 author wf
Endpoints
endpoints access
Source code in nscholia/endpoints.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 | |
get_endpoints()
list all endpoints
Source code in nscholia/endpoints.py
36 37 38 39 40 41 | |
runQuery(query)
Run a SPARQL query and return results as list of dicts
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
Query
|
Query object to execute |
required |
Returns:
| Type | Description |
|---|---|
Optional[List[Dict[str, Any]]]
|
List of dictionaries containing query results, or None if error |
Source code in nscholia/endpoints.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
update_state_query_for_endpoint(ep)
get the update state query for the given endpoint
Source code in nscholia/endpoints.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
UpdateState
dataclass
the update state of and endpoint
Source code in nscholia/endpoints.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
monitor
Availability monitoring logic
Monitor
Checks endpoint availability
Source code in nscholia/monitor.py
25 26 27 28 29 30 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 | |
check(url, timeout=5.0, user_agent=None)
async
staticmethod
Check if an endpoint is available.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
URL to check |
required |
timeout
|
float
|
Request timeout in seconds |
5.0
|
user_agent
|
str
|
Custom user agent string |
None
|
Source code in nscholia/monitor.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 | |
version
Version
dataclass
Version handling for nicescholia
Source code in nscholia/version.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
webserver
Webserver definition
ScholiaSolution
Bases: InputWebSolution
Handling specific page requests for a client session.
Source code in nscholia/webserver.py
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 | |
home()
async
The main page content
Source code in nscholia/webserver.py
60 61 62 63 64 65 66 67 68 69 70 | |
setup_menu(detailed=True)
Configure the navigation menu
Source code in nscholia/webserver.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
ScholiaWebserver
Bases: InputWebserver
The main webserver class
Source code in nscholia/webserver.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |