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

Function s_to_attr

python/graphscope/framework/utils.py:300–302  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

298
299
300def s_to_attr(s: str) -> attr_value_pb2.AttrValue:
301 check_argument(isinstance(s, str))
302 return attr_value_pb2.AttrValue(s=s.encode("utf-8", errors="ignore"))
303
304
305def bytes_to_attr(s: bytes) -> attr_value_pb2.AttrValue:

Callers 1

cleanupMethod · 0.90

Calls 2

check_argumentFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected