MCPcopy Create free account
hub / github.com/alibaba/GraphScope / upload_file

Function upload_file

python/graphscope/gsctl/impl/utils.py:24–30  ·  view source on GitHub ↗
(location: str)

Source from the content-addressed store, hash-verified

22
23
24def upload_file(location: str) -> str:
25 context = get_current_context()
26 with graphscope.flex.rest.ApiClient(
27 graphscope.flex.rest.Configuration(context.coordinator_endpoint)
28 ) as api_client:
29 api_instance = graphscope.flex.rest.UtilsApi(api_client)
30 return api_instance.upload_file(location).file_path
31
32
33def switch_context(context: str, graph_name=None):

Callers 6

bind_datasource_in_batchFunction · 0.90
test_dataloadingMethod · 0.90
test_bulk_loadingMethod · 0.90
admin_actor.act.hFile · 0.50
upload_fileMethod · 0.50
upload_filesMethod · 0.50

Calls 3

get_current_contextFunction · 0.90
ConfigurationMethod · 0.45
upload_fileMethod · 0.45

Tested by 2

test_dataloadingMethod · 0.72
test_bulk_loadingMethod · 0.72