pythonjsoncapnproto

Python how to convert capnproto to json?


I have some legacy with capnp binary data in Postgress database, i want to convert it to jsonb

Are there any ready solutions in python to convert data from capnp to json ?


Solution

  • There are pycapnp library.

    First i need to load from binary to python object (with use of capnp chema). Then I can call .to_dict() on my capnp object.