MCPcopy Create free account
hub / github.com/pydata/numexpr / obj_to_b64

Function obj_to_b64

numexpr3/cpuinfo.py:223–228  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

221 return feature_bits
222
223def obj_to_b64(thing):
224 a = thing
225 b = pickle.dumps(a)
226 c = base64.b64encode(b)
227 d = c.decode('utf8')
228 return d
229
230def b64_to_obj(thing):
231 try:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…