ypy icon indicating copy to clipboard operation
ypy copied to clipboard

Python bindings to y-crdt

Results 31 ypy issues
Sort by recently updated
recently updated
newest added

I have looked a bit into how an upgrade to yrs 0.13+ could look like (mainly because I want `XMLFragement` support). Apparently transactions are now required in more places and...

When looking at https://pypi.org/project/y-py/#files (version 0.5.5 at the time), there is not wheel for py39 to be found for universal2. Is there any way to fix this?

I added the special chars `"` and `\` to the test string in PR #109 to show how JSON serialization is failing on these. It maybe worth it to pull...

Python 3.11 is out and already available on conda-forge, could we release y-py with wheels for it?

We are using ypy in a project and in some cases we are getting following error: ``` thread '' panicked at 'Defect: parent points to a block which is not...

When using the new move feature from a Yjs client, If there is a Ypy client connected, the first client (the Yjs client that moved an element) receives an event...

@Waidhoferj There is this code in your drawing example: https://github.com/y-crdt/ypy/blob/792dc96c8a55052b9123f1620856b977234188cf/examples/drawing/client.py#L28-L31 Why are empty updates emitted? This creates issues [here](https://github.com/y-crdt/ypy-websocket/issues/51#issuecomment-1327197976) and [there](https://github.com/y-crdt/ypy/issues/94).

The following example shows that calling `to_json()` actually generates an update: ```py import y_py as Y ydoc = Y.YDoc() a = ydoc.get_array("a") def cb(event): print("update:", event.get_update()) ydoc.observe_after_transaction(cb) print("a =", a.to_json())...

Is it possible with ypy to convert the ydoc contents to some readable format?

`y_py.pyi` defines `Event` https://github.com/y-crdt/ypy/blob/d3387a5b4717a50992d85119bc063ba23e541261/y_py.pyi#L21 so it shows up when tab completing in Jupyter or an editor. However trying to use it will raise `AttributeError: module 'y_py' has no attribute 'Event'`