MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / create_meta

Function create_meta

tools/metadata_loader/main.py:95–104  ·  view source on GitHub ↗
(accountName: str, containerName: str, filepath: str, document: str)

Source from the content-addressed store, hash-verified

93
94
95def create_meta(accountName: str, containerName: str, filepath: str, document: str):
96 config = get_config()
97
98 quoted_filepath = quote(filepath, safe="")
99 url = (
100 f'{config["API_URL_BASE"]}/api/datasources/{accountName}'
101 f"/{containerName}/{quoted_filepath}/meta"
102 )
103 resp = call_create_meta_api(url, payload=document)
104 return resp.status_code
105
106
107def initial_load_meta(args):

Callers 2

test_create_metadataMethod · 0.90
initial_load_metaFunction · 0.70

Calls 2

call_create_meta_apiFunction · 0.85
get_configFunction · 0.70

Tested by 1

test_create_metadataMethod · 0.72