PKNMGJpreconvert_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.2" PK NnHHpreconvert_numpy/converters.pyimport numpy from preconvert import register @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.2.dist-info/entry_points.txt.(JM+K-*уҩEű\yI+$PK!HPO&preconvert_numpy-0.0.2.dist-info/WHEEL HM K-*ϳR03rOK-J,/RH,szd&Y)r$[)T&UrPK!Hϑ c)preconvert_numpy-0.0.2.dist-info/METADATASM0W =m%,TDծDEۭh !7f%z&ݦ[9ef<ς],R cXd.O&d”t(Ɉ: pk5` !L_<p qH9AqU&/!&A& cxUyj~ u]d,{saI'*q YY/ԌJr渧+LzfԘО?bV.(Uԉ U26r<[{+b"edq'2pu6Ī+ jxTp~iʳ> oW[L.NZƥޡOKի.{7ՀyO@? yPKNMGJpreconvert_numpy/__init__.pyPK NnHHpreconvert_numpy/converters.pyPK!H5!51xpreconvert_numpy-0.0.2.dist-info/entry_points.txtPK!HPO&preconvert_numpy-0.0.2.dist-info/WHEELPK!Hϑ c)|preconvert_numpy-0.0.2.dist-info/METADATAPK!H7'preconvert_numpy-0.0.2.dist-info/RECORDPKJ