yhat / yhat-client

Python client for ScienceOps
https://www.yhat.com/products/scienceops
29 stars 9 forks source link

Numpy json serializer #15

Closed glamp closed 8 years ago

glamp commented 8 years ago

Extension of simplejson that provides a Yhat json module that can serialize numpy specific objects (np.nan, np.array).

This will get put in the python kernel and will look something like this:

try:
    from yhat import yhat_json as __json
except ImportError as e:
    import json as __json
rosskipp commented 8 years ago

This looks good 👍 Just need to finalize the naming

glamp commented 8 years ago

Some options:

glamp commented 8 years ago

For reference, going with from yhat import simplejson. The reason being it is simplejson. We've just added a few enhancements to it which the "from yhat" part indicates that it’s yhat’s own simplejson.

rosskipp commented 8 years ago

Tests pass! Looks good 👍