capnpy
capnpy copied to clipboard
Would it be possible for 'loads' to allow objects that support the buffer interface? https://docs.python.org/2/library/functions.html#buffer
``` root@41ed389453bb:/code# PYTHONWARNINGS=default python Python 3.7.1 (default, Oct 24 2018, 22:38:59) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import capnpy /usr/local/lib/python3.7/importlib/_bootstrap.py:219: ImportWarning:...
Currently the `__extends__()` method for a Capnpy struct only supports simple classes with no inheritance. Attempting to use a class with inheritance results in a struct with only the methods...
Namedtuple has the method [`_asdict()`](https://docs.python.org/3.5/library/collections.html#collections.somenamedtuple._asdict) and pycapnp also has [`to_dict()`](https://jparyani.github.io/pycapnp/quickstart.html#dictionaries). I think we should also add something equivalent to capnpy, which promptly converts a struct into OrderedDict.
The current API assumes that schema is saved in a file, but in my case the capnp schema is fetched from some db as a str. Maybe an argument can...
I was wondering if packed encoding/decoding was something feasible to do with `capnpy`? (like `write_packed` / `read_packed` in pycapnp).
Following the "equality and hashing" guide: http://capnpy.readthedocs.io/en/latest/usage.html?highlight=new_#equality-and-hashing I'd like to compare Structs containing Union fields for equality. I annotate the Struct with $Py.key("*"). But at runtime, the _key() method tries...
At the moment the only way I can see to check if a capnpy object admits checking equality is to try and then catch the TypeError raised by `_key`. Is...
### test_strhash def test_strhash(): expected_hash_empty_string = 0 if IS_PYPY: expected_hash_empty_string = -2 # h = _hash.strhash > assert h('', 0, 0) == hash('') == expected_hash_empty_string E assert -1 == -2...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7. Release notes Sourced from actions/download-artifact's releases. v4.1.7 What's Changed Update @actions/artifact dependency by @bethanyj28 in actions/download-artifact#325 Full Changelog: https://github.com/actions/download-artifact/compare/v4.1.6...v4.1.7 v4.1.6 What's Changed updating @actions/artifact...