MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / write_json_response

Function write_json_response

botasaurus_api/botasaurus_api/utils.py:40–43  ·  view source on GitHub ↗
(path, data,  indent=4)

Source from the content-addressed store, hash-verified

38
39
40def write_json_response(path, data, indent=4):
41 create_output_directory_if_not_exists()
42 with open(path, 'w', encoding="utf-8") as fp:
43 json.dump(data, fp, indent=indent)
44
45
46

Callers 3

_write_jsonMethod · 0.85
get_tasksMethod · 0.85
get_task_resultsMethod · 0.85

Tested by

no test coverage detected