Jason Paryani
3a0eaacc9d
Fix to_dict
not converting enums to strings
...
Fixes #28
2014-06-26 00:53:16 -07:00
Jason Paryani
db63fd1880
Add ability to import modules with dashes or spaces
...
Any module with underscores in it will now attempt to look for 3 files,
first the original, then with dashes, then with spaces, ie:
import addressbook_v_2_capnp
will search for 'addressbook_v_2.capnp', 'addressbook-v-2.capnp', and
'addressbook v 2.capnp'.
2014-06-12 16:37:06 -07:00
Jason Paryani
03faa0e18b
Get inheritance working for simple version capabilities
2014-04-18 18:18:54 -07:00
Jason Paryani
c57034e631
Add pickling test
2014-04-17 21:21:06 -07:00
Jason Paryani
56d68325ff
Add check that method exists in Capability.__getattr__.
...
This makes it play nice with hasattr
2014-04-17 20:53:52 -07:00
Jason Paryani
430890f8d6
Add args checking to Void and RemotePromises then
and check for double
...
send in Requests.
2014-04-13 18:35:53 -07:00
Jason Paryani
cfb60cddf0
Add arguments checking to then
callback
2014-04-13 18:26:01 -07:00
Jason Paryani
c2b9d14268
Fix up cancel and timer a bit
2014-04-13 18:15:36 -07:00
Jason Paryani
f58f5d4846
Add timer functionality
2014-04-10 19:08:24 -07:00
Jason Paryani
cba4378d1f
Add num_first_segment_words argument wherever message creation can occur
2014-04-07 11:15:48 -07:00
Jason Paryani
1c4b8d0135
Skip failing test if LIBCAPNP_VERSION < v0.5.0
2014-02-18 17:48:43 -08:00
Jason Paryani
307fcbf4e7
Fix problem with uninitialized unions in _from_dict
2014-02-18 17:34:34 -08:00
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