MCPcopy Index your code
hub / github.com/apache/fory / serialize_data

Function serialize_data

python/pyfory/tests/test_thread_safe.py:159–166  ·  view source on GitHub ↗
(thread_id)

Source from the content-addressed store, hash-verified

157 errors = []
158
159 def serialize_data(thread_id):
160 try:
161 person = Person(name=f"User{thread_id}", age=25)
162 data = fory.serialize(person)
163 result = fory.deserialize(data)
164 results.append(result)
165 except Exception as e:
166 errors.append((thread_id, e))
167
168 threads = []
169 for i in range(5):

Callers

nothing calls this directly

Calls 4

PersonClass · 0.70
serializeMethod · 0.65
deserializeMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected