Commit graph

206 commits

Author SHA1 Message Date
Jason Paryani
f98a68a0ed Add test script for testing with https://github.com/kaos/capnp_test 2013-09-19 14:43:36 -07:00
Jason Paryani
7285a3bf5a Remove debugging print statements from to_dict 2013-09-19 14:43:21 -07:00
Jason Paryani
de1014c5ea Fix up formatting issues with test_object.py 2013-09-18 21:09:17 -07:00
Jason Paryani
da160960af Add handling of DynamicObject 2013-09-18 21:09:17 -07:00
Jason Paryani
fa5fe5a92c Fix bug in to_dict not handling which fields properly. Also add
exception for fields of type Object, since they're currently unhandled
2013-09-05 16:43:54 -07:00
Jason Paryani
a3f4cf3726 Fix lists of lists or dicts for from_dict 2013-09-04 22:00:42 -07:00
Jason Paryani
6516b7b178 Fix nested lists of structs for from_dict 2013-09-04 21:57:52 -07:00
Jason Paryani
0187d123c9 Fix from_dict for PyPy 2013-09-04 21:53:13 -07:00
Jason Paryani
a57a99f7fc Update docs 2013-09-04 21:53:05 -07:00
Jason Paryani
a4eec2ef08 Fix even more typos in docs 2013-09-04 12:01:28 -07:00
Jason Paryani
2dc67e6f73 Fix typo in docs 2013-09-04 11:57:58 -07:00
Jason Paryani
eaf88aaa3a Merge branch 'release/0.3.14' into develop 2013-09-04 11:21:11 -07:00
Jason Paryani
6733b84b07 Bump version for v0.3.14 2013-09-04 11:20:48 -07:00
Jason Paryani
effacb872f Fix problem with to_dict 2013-09-04 11:20:05 -07:00
Jason Paryani
3e4311fe12 Merge branch 'release/0.3.13' into develop 2013-09-04 10:39:54 -07:00
Jason Paryani
6c65eddbc1 Bump version for v0.3.13 2013-09-04 10:39:38 -07:00
Jason Paryani
f51c34361d Update docs for v0.3.0 release of C++ api 2013-09-04 10:38:00 -07:00
Jason Paryani
e7da4859de Mark dictionary serialization test as failing on pypy 2013-09-03 22:50:58 -07:00
Jason Paryani
9131ca2751 Update benchmarks 2013-09-03 22:50:52 -07:00
Jason Paryani
777f6b3bce Fix to_bytes for python3 2013-09-03 22:25:12 -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
e80e002a6c Fix some docs 2013-09-03 22:10:37 -07:00
Jason Paryani
76a354f647 Fix problems from merge 2013-09-03 14:35:34 -07:00
Jason Paryani
5411486d56 Merge branch 'develop' of git://github.com/amluto/capnpc-python-cpp into amluto-develop
Conflicts:
	capnp/capnp.pyx
2013-09-03 14:34:43 -07:00
Andy Lutomirski
cd0fe97710 Add _DynamicStructBuilder.to_bytes() and <struct module>.read_from_memory
to_bytes is not very efficient (it makes one necessary copy and one
unnecessary copy), but it will simplify a lot of use cases.

read_from_memory should be maximally efficient for most input types
(including mmap).
2013-09-03 14:01:07 -07:00
Jason Paryani
dbad76f4ce Fix new typo... 2013-09-03 11:56:05 -07:00
Jason Paryani
9a410d54ab Fix typo in read 2013-09-03 11:55:16 -07:00
Jason Paryani
74e27f940f Change == on StructSchema to return cbool 2013-09-03 11:54:58 -07:00
Jason Paryani
1e88e18828 Merge pull request #8 from amluto/develop
Add Builder and Reader ABCs for each struct type
2013-09-03 11:38:14 -07:00
Andy Lutomirski
b3264a7292 Add Builder and Reader ABCs for each struct type
This has zero overhead if not used.  I decided that it was simpler
to use ABCs instead of real classes, given that using real classes
offers little benefit.

This also implements == and != for StructSchema objects.
2013-09-03 11:01:12 -07:00
Jason Paryani
47ee1a87a3 Merge branch 'release/0.3.12' into develop 2013-09-03 01:25:31 -07:00
Jason Paryani
e8bf10519d Bump version for v0.3.12 2013-09-03 01:24:52 -07:00
Jason Paryani
eec8cbe05c Add dictionary methods to docs 2013-09-03 01:24:16 -07:00
Jason Paryani
38cef54ddc Update docs with new import method 2013-09-03 01:16:48 -07:00
Jason Paryani
80d2e59c08 Fix handling of empty path '' in load_module 2013-09-03 01:03:29 -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
26579d307d Enable import hook by default 2013-09-03 00:21:28 -07:00
Jason Paryani
4e0db3d16a Fix up minor things with import hook 2013-09-03 00:21:15 -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
Jason Paryani
5600f9939a Add import monkey patch function 2013-09-01 21:31:39 -07:00
Jason Paryani
1317527893 Change naming for functions to conform to PEP 8. Also deprecate old
read/write api.
2013-09-01 20:10:57 -07:00
Jason Paryani
6fcdf841e4 Update preferred method for reading/writing messages from files 2013-09-01 02:13:19 -07:00
Jason Paryani
eb9e7511d0 Fix two missed renames 2013-09-01 01:24:59 -07:00
Jason Paryani
1ebcaafd47 Merge branch 'release/0.3.11' into develop 2013-09-01 01:21:24 -07:00
Jason Paryani
a1eca22686 Bump version for v0.3.11 2013-09-01 01:20:27 -07:00
Jason Paryani
8c0c557b9d Forgot to change project name in setup.py 2013-09-01 01:20:10 -07:00
Jason Paryani
f1a382ef4d Merge branch 'release/0.3.10' into develop 2013-09-01 01:19:28 -07:00