python-client icon indicating copy to clipboard operation
python-client copied to clipboard

Implementation Examples

Open JavaScriptDude opened this issue 4 years ago • 4 comments

I have been scouring the internet for implementation samples for this python-client API with no luck. Do you have sample implementations for this API?

I look forward to playing with this indradb using Python.

JavaScriptDude avatar Feb 01 '21 02:02 JavaScriptDude

There aren't any examples at the moment, since the python client was recently rewritten. The wikipedia example used to demonstrate the python client, but it's been rewritten to rust for better performance. The unit tests should give some idea of how to use it though.

ysimonson avatar Feb 01 '21 03:02 ysimonson

I found the old version of the wikipedia example. Do you think it would be difficult for someone strong in Python to port this to use the your new Python API?

JavaScriptDude avatar Feb 01 '21 18:02 JavaScriptDude

It would be pretty straight-forward, as the interfaces are almost all the same. The only difference would be to avoid the capnp library, since we’re now gRPC-based.

ysimonson avatar Feb 01 '21 18:02 ysimonson

Thanks. When I get a window, I will take a stab at it.

JavaScriptDude avatar Feb 01 '21 18:02 JavaScriptDude