MCPcopy Create free account
hub / github.com/pathwaycom/pathway / encode

Method encode

python/pathway/tests/test_io.py:2604–2605  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2602
2603 def run(self):
2604 def encode(obj):
2605 return json.dumps(obj).encode()
2606
2607 self._add(api.ref_scalar(1), b"foo", encode({"createdAt": 1701273920}))
2608 self._add(api.ref_scalar(2), b"bar", encode({"createdAt": 1701273912}))

Callers 15

__wrapped__Method · 0.80
truncate_contextMethod · 0.80
embed_singleMethod · 0.80
__wrapped__Method · 0.80
build_vector_storeFunction · 0.80
_test_vsFunction · 0.80

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected