pycapnp/capnp
Rowan Reeve a5c29a74d2 Schema loading from the wire
Cap'n Proto provides a schema loader, which can be used to dynamically
load schemas during runtime. To port this functionality to pycapnp,
a new class is provided `C_SchemaLoader`, which exposes the Cap'n
Proto C++ interface, and `SchemaLoader`, which is part of the pycapnp
library.

The specific use case for this is when a capnp message contains
a Node.Reader: The schema for a yet unseen message can be loaded
dynamically, allowing the future message to be properly processed.

If the message is a struct containing other structs, all the schemas for
every struct must be loaded to correctly parse the message. See
https://github.com/DaneSlattery/capnp_generic_poc for a
proof-of-concept.

Add docs and cleanup

Add more docs

Reduce changes

Fix flake8 formatting

Fix get datatype
2023-06-12 14:10:13 +02:00
..
helpers Schema loading from the wire 2023-06-12 14:10:13 +02:00
includes Schema loading from the wire 2023-06-12 14:10:13 +02:00
lib Schema loading from the wire 2023-06-12 14:10:13 +02:00
templates bool → cbool (probably just a typo) 2021-04-25 21:51:12 +02:00
__init__.pxd Refactor layout of pxd files 2013-12-08 17:27:59 -08:00
__init__.py Get rid of VoidPromise and (almost) Promise 2023-06-08 08:02:07 +02:00
_gen.py Applying black formatting 2021-10-01 11:12:21 -07:00