jaqs.util package¶
Submodules¶
jaqs.util.dtutil module¶
jaqs.util.fileio module¶
-
create_dir
(filename)¶ Create dir if directory of filename does not exist.
参数: filename (str) –
-
join_relative_path
(*paths)¶ Get absolute path using paths that are relative to project root.
-
read_json
(fp)¶ Read JSON file to dict. Return None if file not found.
参数: fp (str) – Path of the JSON file. 返回: 返回类型: dict or None
-
save_json
(serializable, file_name)¶ Save an serializable object to JSON file.
参数: - serializable (object) –
- file_name (str) –