TH¶
-
orion_notebook.th.
execute_sql_query
(query: str) → dict¶ Executes the SQL query provided with the TH library, timing the execution and logging it
- Parameters
query (str) – SQL query to execute
- Returns
The result of the query provided
- Return type
dict
-
orion_notebook.th.
get_file_info_by_md5
(md5: str) → object¶ Gets the file information from a provided md5 hash
- Parameters
md5 (str) – md5 hash of the file to retrieve the information from
- Returns
The file information of the file with the md5 provided or None if not found
- Return type
object
-
orion_notebook.th.
get_muid_info
(muid: str) → dict¶ Creates a Muid info object containing the provided muid and its corresponding machine name
- Parameters
muid (str) – muid to get the machine name from and include in the result dict
- Returns
dict with an entry for the provided muid and its machine name (if found and have permission)
- Return type
dict
-
orion_notebook.th.
get_node_info
(muid: str, md5: str, datetime: str) → dict¶ Gets the information from the muid and md5 hash in the datetime provided
- Parameters
muid (str) – muid to get the information from
md5 (str) – md5 hash to get the information from
datetime (str) – datetime to get the information from
- Returns
dict containing muid and file info (from md5 hash) and if the query has been successful
- Return type
dict