capnpy icon indicating copy to clipboard operation
capnpy copied to clipboard

Results 20 capnpy issues
Sort by recently updated
recently updated
newest added

Just opening to track this... Any special changes needed for Python 3.12? Will try to build it myself soon.

The capnp documentation implies this is the correct behaviour and without this commit asserts would fail on structs encoded with the C++ encoder. However, at this moment, this commit is...

Before this patch the compiler generates a^b which is not valid Python for floats. A motivation for implementing this (apart from satisfying the capnp specs) are systems for optional values...

Previously raised `AttributeError: 'ModuleGenerator' object has no attribute 'filenames'`

One cool featured that would be nice to have would be if capnpy would automatically generate Python type annotations. Relevant links: - http://mypy-lang.org/ - https://www.python.org/dev/peps/pep-0484/ - https://www.python.org/dev/peps/pep-0561/

When I compile the schema file, cause the error in title. cmd: python -m capnpy compile MDBase.capnp platform: win10 py: 3.6

Currently capnpy is de facto unmaintained: I didn't do anything for the past year and I don't have enough time/resources/interest to continue its development. If anyone is interested to become...

A typical use case for `capnpy` is the following chains of requirements (`lib`, `app` are Python packages): ``` capnpy (from app) capnpy (from lib->app) ``` i.e. `lib` contains a `.capnproto`...

``` $ cat example.capnp @0xa6efb970dc0d109b; struct Foo { bar @0 :Text; } $ cat example.py # -*- coding: utf-8 -*- import capnpy example = capnpy.load_schema('example') foo = example.Foo(bar='£') repr(foo) $...

```capnpy.load(f, payload_type): load a message from a file-like object``` Should have a maximum message size parameter or internal check to avoid hanging in case a response message is unreasonably large.

enhancement
help wanted