threefoldtecharchive / jumpscaleX_archived

Apache License 2.0
1 stars 6 forks source link

Create a client for 0-stor daemon #680

Closed zaibon closed 5 years ago

zaibon commented 5 years ago

In order to finish https://github.com/threefoldtech/home/issues/343 We need to integrate the 0-stor daemon python client into JSx.

The python client is available at: https://github.com/threefoldtech/0-stor/tree/master/daemon/client/py-client

despiegk commented 5 years ago

needs to be proper JSX client

muhamadazmy commented 5 years ago

Duplicate of #577

ranatrk commented 5 years ago

Accessible through j.clients.zstor and takes the following params:

Pishoy commented 5 years ago

verified

root@3bot:/# /root/go/bin/zstor -D --config aConfigFile.yaml daemon --listen 127.0.0.1:8000 
DEBU[0000] Debug logging enabled                        
INFO[0000] Version: 1.1.0-beta-3                        
INFO[0000] Daemon Server interface: grpc

JSX> x = zdb.write_file('/sandbox/code/test.py')

JSX> zdb.read(x)
b'just for test flis\n'

- js version 

3BOTDEVEL:3bot:jumpscaleX: git log -1 commit 9f1a4a8d397fdc8e4472bce86580a1739e38cfa6 (HEAD -> development_jumpscale, origin/development_jumpscale) Author: kristof de spiegeleer <> Date: Thu Aug 22 10:00:06 2019 +0200

BCDB fix (I think) for parent_id issue