Commit Graph

161 Commits

Author SHA1 Message Date
Jason Paryani
dceb437c44 Update tests with new which enum 2014-02-13 22:08:15 -08:00
Jason Paryani
68a45a194b Add test showing off using a dictionary in new_message 2014-01-15 10:37:25 -08:00
Jason Paryani
f89af26fc3 Fix tests for change in exception type 2014-01-14 09:44:21 -08:00
Jason Paryani
e7e95abeed Allow setting of fields with python dicts.
This change was a bit complicated because of a bug in cython fused
types. I had to flatten DynamicStruct.Builder to DynamicStruct_Builder
in order to get fused template specialization working.
2014-01-13 16:28:05 -08:00
Jason Paryani
60a9421b0e Add ez_rpc test 2014-01-08 14:29:24 -08:00
Jason Paryani
540ed4cdba Don't force utf8 encoding for unicode strings 2013-12-18 21:57:57 -08:00
Jason Paryani
20d7104111 Fix another typo in test 2013-12-18 13:10:33 -08:00
Jason Paryani
34e98881b1 Fix failing test 2013-12-18 13:06:52 -08:00
Jason Paryani
e9a8354676 Fix problems with null characters in Text/Data fields. Fixes #19 2013-12-18 12:39:56 -08:00
Jason Paryani
adf8e92003 Update docs for RPC 2013-12-12 00:02:44 -08:00
Jason Paryani
81388f82f6 Change rpc server example to use simple restore function 2013-12-11 22:48:59 -08:00
Jason Paryani
ebbd83a425 Fix as_pypromise not returning correctly 2013-12-11 13:50:50 -08:00
Jason Paryani
5811213321 Add test for returning tuple in server 2013-12-11 01:17:23 -08:00
Jason Paryani
e92f7b56c6 Various fixups to the RPC api.
* change how restorer works
* fix join_promises
* add incref's all around to make sure we aren't freeing objects early
* make it so we return PyPromises everywhere and make chains collapsible
2013-12-10 22:57:21 -08:00
Jason Paryani
0892a63b23 Change tests to use tempfile 2013-12-09 17:16:39 -08:00
Jason Paryani
3f7c3ae023 Change server instantion to be inherited 2013-12-09 17:13:43 -08:00
Jason Paryani
6432e768c3 Fix after API changes. Should now be ready for 0.4 RC 2013-12-06 13:19:30 -08:00
Jason Paryani
90bf090db1 Update for API changes and add tail_call functionality 2013-12-05 00:07:51 -08:00
Jason Paryani
e26452e4a7 Relabel capability_context tests 2013-12-04 12:20:20 -08:00
Jason Paryani
bb3121d3ae Fix API changes in EventLoop 2013-12-04 11:42:57 -08:00
Jason Paryani
cfc11e4a8a Fix bug in removing an EventLoop 2013-12-02 17:54:53 -08:00
Jason Paryani
888b906781 Remove all public references to EventLoop to match changes to async API 2013-12-02 17:38:32 -08:00
Jason Paryani
8e1895dd8f Simplify server interface 2013-11-14 23:06:14 -08:00
Jason Paryani
2e4efd040b Allow client requests to use positional args 2013-11-14 20:59:21 -08:00
Jason Paryani
0587f3e56e Update tests for new serialization methods 2013-11-14 00:23:15 -08:00
Jason Paryani
422266d0b8 Fix str output in test with updated format 2013-11-13 21:02:22 -08:00
Jason Paryani
c1952a62ae Fix exception propogation in Promises 2013-11-13 20:54:57 -08:00
Jason Paryani
11543b7abf Add ability to pass Restorer to RpcClient. Also various fixups
and added __dir__ reflection to DynamicCapabilityClient
2013-11-13 10:58:16 -08:00
Jason Paryani
5251cb5575 Add upcast/cast_as to DynamicCapability. Also changed EventLoop.
wait_remote -> wait
2013-11-12 20:28:23 -08:00
Jason Paryani
374f986fa7 Add FdAsyncIoStream. Also clean up RPC interface a bit 2013-11-12 19:38:34 -08:00
Jason Paryani
0329fd17ba Add forgotten files for RPC 2013-11-12 15:55:57 -08:00
Jason Paryani
1df115d359 Initial wrapping of rpc-twoparty functionality 2013-11-12 15:32:23 -08:00
Jason Paryani
d7abfae1ed Cleanup exception handling 2013-10-20 18:46:41 -07:00
Jason Paryani
5e00534842 Fixup exception handling for capabilities 2013-10-20 17:24:59 -07:00
Jason Paryani
a9ad0e6b85 Make test simpler 2013-10-19 22:40:55 -07:00
Jason Paryani
c3354e9069 Add ability to pipeline rpc requests 2013-10-19 22:38:10 -07:00
Jason Paryani
96bfc495d8 Pipelining almost completely wrapped
Waiting on some upstream changes in C++ libcapnp before I can finish
2013-10-17 22:42:14 -07:00
Jason Paryani
7f7b28f328 Fix memleak and simplify dynamic client api 2013-10-17 19:15:40 -07:00
Jason Paryani
a5d0abb49f First working version of capability interfaces 2013-10-15 22:36:14 -07:00
Jason Paryani
346f5791ec Fix up formatting issues with test_object.py 2013-09-18 21:07:10 -07:00
Jason Paryani
8c559cc8b1 Add handling of DynamicObject 2013-09-18 17:19:57 -07:00
Jason Paryani
0187d123c9 Fix from_dict for PyPy 2013-09-04 21:53:13 -07:00
Jason Paryani
effacb872f Fix problem with to_dict 2013-09-04 11:20:05 -07:00
Jason Paryani
e7da4859de Mark dictionary serialization test as failing on pypy 2013-09-03 22:50:58 -07:00
Jason Paryani
5e8745c365 Add packed roundtrip test 2013-09-03 22:16:13 -07:00
Jason Paryani
f80caf6c4c Add serialization round trip tests 2013-09-03 22:12:28 -07:00
Jason Paryani
83e30f5a30 Add from_dict 2013-09-03 01:00:52 -07:00
Jason Paryani
c900690b96 Fix bug in exception handling for which(). Also standardize exceptions
to always be ValueError. Add the beginnings of to_dict()
2013-09-03 00:25:32 -07:00
Jason Paryani
891f0d28e5 Change import hook to require modules to end in '_capnp' 2013-09-01 23:55:29 -07:00
Jason Paryani
98c9b959f7 Fix up bug with import hook on python3/pypy 2013-09-01 22:24:46 -07:00