mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
![]() 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 |
||
---|---|---|
.. | ||
addressbook with spaces.capnp | ||
addressbook-with-dashes.capnp | ||
addressbook.capnp | ||
all-types.binary | ||
all-types.packed | ||
all-types.txt | ||
all_types.capnp | ||
annotations.capnp | ||
bar.capnp | ||
foo.capnp | ||
test_capability.capnp | ||
test_capability.py | ||
test_capability_context.py | ||
test_examples.py | ||
test_large_read.capnp | ||
test_large_read.py | ||
test_load.py | ||
test_object.py | ||
test_regression.py | ||
test_response.capnp | ||
test_response.py | ||
test_rpc.py | ||
test_rpc_calculator.py | ||
test_schema.py | ||
test_serialization.py | ||
test_struct.py |