Skip to content Skip to sidebar Skip to footer

How Can I Marshal A Pickled Object Through An Api ( Preferably Using Flask-restplus )?

I have an API fully documented and finished, built in python 3.5/flask using flask-restplus. I'd like to add one chunk of functionality - returning a pickled object as part of one

Solution 1:

Final answer:

In the end, we moved away from using pickles, to avoid version control problems when we updated our classes then tried to unpickle form old versions.

We ultimately used the suggestion in this SO answer, which was to use the jsonpickle library to serialise the arbitrary class object and spit it out of the API.

Post a Comment for "How Can I Marshal A Pickled Object Through An Api ( Preferably Using Flask-restplus )?"