pycapnp/test
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
..
addressbook with spaces.capnp Add ability to import modules with dashes or spaces 2014-06-12 16:37:06 -07:00
addressbook-with-dashes.capnp Add ability to import modules with dashes or spaces 2014-06-12 16:37:06 -07:00
addressbook.capnp Add init method to lists 2015-05-04 11:00:25 -07:00
all-types.binary Make sure to encode to utf-8, not the default encoding 2016-03-04 13:50:43 -08:00
all-types.packed Make sure to encode to utf-8, not the default encoding 2016-03-04 13:50:43 -08:00
all-types.txt Fixed or waved all pytest failures and errors 2019-09-27 01:12:54 -07:00
all_types.capnp Add Union on top level union messages 2021-05-31 16:33:10 +08:00
annotations.capnp Add native types under capnp.types for use with ListSchema 2014-11-20 10:24:10 -08:00
bar.capnp Add forgotten test files 2013-08-29 21:12:39 -07:00
foo.capnp Schema loading from the wire 2023-06-12 14:10:13 +02:00
test_capability.capnp Handle AnyPointers better as arguments to RPC functions 2015-06-08 14:59:21 -07:00
test_capability.py Fix formatting 2023-06-08 08:18:50 +02:00
test_capability_context.py Remove .capnp fixture from test_capability_context.py 2023-06-11 04:09:01 +02:00
test_examples.py Fix and improve a bunch of tests 2023-06-08 02:29:54 +02:00
test_large_read.capnp Test large reads 2016-06-17 13:50:26 -07:00
test_large_read.py Applying black formatting 2021-10-01 11:12:21 -07:00
test_load.py Schema loading from the wire 2023-06-12 14:10:13 +02:00
test_object.py Applying black formatting 2021-10-01 11:12:21 -07:00
test_regression.py Fix black formatting 2023-03-12 11:33:41 -07:00
test_response.capnp Fix response objects not referencing parents correctly 2016-06-17 13:50:42 -07:00
test_response.py Force server methods to be async and client calls to use await 2023-06-08 03:56:57 +02:00
test_rpc.py Fix formatting 2023-06-08 08:18:50 +02:00
test_rpc_calculator.py Fix formatting 2023-06-08 08:18:50 +02:00
test_schema.py Applying black formatting 2021-10-01 11:12:21 -07:00
test_serialization.py Fix and improve a bunch of tests 2023-06-08 02:29:54 +02:00
test_struct.py Fixed black issues 2022-04-06 13:32:52 +10:00