Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Postgress 数据库中有一些带有 capnp 二进制数据的遗留物,我想将其转换为 jsonb
python 中有没有现成的解决方案可以将数据从 capnp 转换为 json ?
有pycapnp 图书馆。
pycapnp
首先,我需要从二进制加载到 python 对象(使用 capnp chema)。然后我可以调用.to_dict()我的 capnp 对象。
.to_dict()