Python how to convert capnproto to json?

810 views Asked by At

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 ?

1

There are 1 answers

0
Ryabchenko Alexander On BEST ANSWER

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.