- Update bundled libcapnp to v0.5.2
- Add warnings for using old restorer methods. You should use
bootstrap
instead - Fix warning from PyEventPort
- Handle AnyPointers better as arguments to RPC functions
- Add support for using keyword arguments with a named struct in an RPC
- Add bootstrap method to TwoPartyServer
- Add
init
method to lists - Add support for unix sockets in RPC
- Fix a serious bug in TwoPartyServer that was preventing it from working when passed a string address.
- Fix bugs that were exposed by defining KJDEBUG (thanks @davidcarne for finding this)
- Update bundled C++ libcapnp to v0.5.1.2 security release
- Update bundled C++ libcapnp to v0.5.1.1 security release
- Add bootstrap RPC methods
- Fix possible segfault when importing multiple schemas
- Fix possible crash due to bad destructor ordering in MessageReader (by @JohnEmhoff)
- Default to no longer using cython
- Add read_multiple_bytes/read_multiple_bytes_packed methods
- Added Python 3.4 to the travis build matrix
- Bump version for bundled C++ libcapnp to v0.5.1
- Remove installation dependency on cython. We now have no dependencies since libcapnp will automatically build as well.
- Timer class
capnp.getTimer()
- pycapnp is now thread-safe and allows an event loop to be run in each thread
- You must destroy and re-create the event loop to get this functionality (see
test_threads.py
)
- You must destroy and re-create the event loop to get this functionality (see
- Inheritance now works correctly for interfaces (previously inherited methods were inaccessible from pycapnp)
- Add ability to import modules with dashes or spaces. Use underscores in place of them
from_bytes
with builder=True is no longer zero copy. It never worked correctly, and is much safer now- Add
num_first_segment_words
argument wherever message creation can occur - Allow restoring a null objectId by passing None to restore
- Support ordered dictionary in
to_dict
- Add ListSchema class and schemas for native types under
capnp.types
which completes all the Schemas needed to be wrapped. Seetest_schema.py
for examples using it - Add automatic build of C++ libcapnp if it's not detected on the system. Also add flags --force-bundled-libcapnp and --force-system-libcapnp respectively
- Fix build for new 0.21 release of Cython. 0.21 is now the minimum supported version of Cython.
- Fix
to_dict
not converting enums to strings
- Fix compilation problem with gcc 4.8
- Fix problem with uninitialized unions in _from_dict
- Add accesible version numbers for C++ libcapnp
- Remove onDrained since it was removed upstream
- Replace usage of strings as enum type with custom
_DynamicEnum
class. - Also change
Struct.which()
method to be a propertyStruct.which
and return an enum type (_DynamicEnumField
, which behaves much like_DynamicEnum
). - TwoPartyServer.run_forever() now will handle more than 1 simulataneous connection.
- Change exception wrapper to detect and raise AttributeError for field lookup exceptions (Fixes problem in Python3.x
__dir__
) - Allow setting of fields with python dicts.
- Remove python 3.2 from travis tests. Python 3.2 still should work fine, but it's more trouble than it's worth to write unicode tests that work in both it and Python2.
- Fix problems with null characters in Text/Data fields. Fixes #19
- Initial working version of RPC
- Add get_root_as_any to _MessageReader
- Add capnp.pxd for public declarations of cython classes
- Fix problems compiling with gcc4.7
- Change naming of ReaderOption parameters to be pep8 compliant
- Add ReaderOptions to read/read_packed/from_bytes
- Add defaults flag to capnp-json. Also remove 'which' field
- Add capnp-json serializer script. Also fix bugs in from_dict
- Fix build for clang/python3. Also remove -fpermissive
- Add
as_builder
method to Struct Reader - Add warning when writing the same message more than once
- First working version of capability interfaces
- Wrap InterfaceSchema
- Fix setting string fields to support all types of strings
- Fix changed API for DynamicObject/ObjectPointer
- Add not having installed the C++ libcapnp library to 'Common Problems'
- Add _short_str function for use in capnp_test_pycapnp.py
- Add test script for testing with https://github.com/kaos/capnp_test
- Add handling of DynamicObject
- Fix lists of lists or dicts for from_dict
- Fix problem with to_dict
- Add _DynamicStructBuilder.to_bytes() and .from_bytes()
- Change == on StructSchema to return cbool
- Add Builder and Reader ABCs for each struct type
- Fix handling of empty path '' in load_module
- Add from_dict
- Fix bug in exception handling for which(). Also standardize exceptions.
- Change import hook to require modules to end in '_capnp'
- Add import monkey patch function.
- Change naming for functions to conform to PEP 8. Also deprecate old read/write API
- Update preferred method for reading/writing messages from files
- Forgot to change project name in setup.py
- Change all references to old project name (change from capnpc-python-cpp to pycapnp)
- Change DynamicValue.Reader lists to be returned as _DynamicListReader
- Unify setters for DynamicList and DynamicStruct
- Add shortcuts for reading from / writing to files. In Python, it doesn't make much sense to force people to muck around with MessageReaders and MessageBuilders since everything is landing on the heap anyway. Instead, let's make it easy: MyType.read[Packed]From(file) reads a file and returns a MyType reader. MyType.newMessage() returns a MyType builder representing the root of a new message. You can call this builder's write[Packed]To(file) method to write it to a file.
- Store Builders by value rather than allocate them separately on the heap (matches treatment of Readers). v0.3 fixes the bug that made this not work.
- Wrap MessageBuilder::setRoot().
- Add tests based on TestAllTypes from the C++ test.capnp. Fix problems uncovered in capnp.pyx.
- Implement str and repr for struct and list builders. str uses prettyPrint while repr shows the type name and the low-whitespace stringification. Also implement repr for StructSchema, just because why not?
- Change load to use a global SchemaParser. Make structs settable as field
- Add docstrings for new functions and _DynamicResizableListBuilder
- Add initial tests
- Add _capnp for original Cython module. Meant for testing.
- Lowercase schema so it conforms to member naming conventions
- Expose _StructSchema's raw node
- Add some useful _StructSchema, reader, and builder methods
- Add full orphan functionality. Also, allow special orphan lists
- Finish up adding docstrings to all public classes/methods
- Add a ton of docstrings and add to official docs
- Add DynamicOrphan
- Add intersphinx for linking to python docs
- Add C++ library version check
- Add handling of constants in schemas
- Fix new error with DynamicValue.Builder no longer being copyable
- Fix Void namespace change
- Updated capnp schema to conform with new union rules
- Fix for the removal of DynamicUnion from the C++ API
- Add MANIFEST.in to include README
- Update docs with lines about upgrading setuptools
- Initial commit of docs
- Add querying unnamed enums to structs
- Fix enum interface change for benchmark
- Random formatting cleanup
- Allow import paths in the schema loader
- Add travis CI
- Initial working version