PKMNHpreconvert_numpy/__init__.py"""Preconverts common numpy types to their serializable (jsonifiable, msgpackable, etc...) form. A plugin for the preconvert Python library. """ import converters __version__ = "0.0.1" PKrNf##preconvert_numpy/converters.pyimport numpy @register.converter(numpy.ndarray) def numpy_listable(item): return item.tolist() @register.converter(str, numpy.unicode_) def numpy_stringable(item): return str(item) @register.converter(numpy.bytes_) def numpy_byte_decodeable(item): return item.decode() @register.converter(numpy.bool_) def numpy_boolable(item): return bool(item) @register.converter(numpy.integer) def numpy_integerable(item): return int(item) @register.converter(float, numpy.floating) def numpy_floatable(item): return float(item) PK!H5!51preconvert_numpy-0.0.1.dist-info/entry_points.txt.(JM+K-*уҩEű\yI+$PK!HPO&preconvert_numpy-0.0.1.dist-info/WHEEL HM K-*ϳR03rOK-J,/RH,szd&Y)r$[)T&UrPK!H c)preconvert_numpy-0.0.1.dist-info/METADATASM0W =m%]q *jWVaLS%zMSf EWt^-Ba af]+ek>R),^2ѰoP[ -J#%Oo +&qλ1Nq(L(hm֧^!öZs:2a[gSeimΆUªi\U:QCЖTB)켥Pt<}_tEM 3'm uHVQ#r٨HL",U.Qgi cai,)~m׉:Vgա|ֲppB) ]T$e7ǿ3Xl³pxE21?k'=L^菲"}eSM*; Ŝ:kJzצ^*[bt)0Ri'sjWɖ*$b`np1qQ/&k"/o*Wsizn7{:xCeUHHtzϭ!ʽIj_PK!H=9'preconvert_numpy-0.0.1.dist-info/RECORD;s@>P0xP"ȣ!q'E$)v&]8"׊S0!B{