Skip to content

Commit 64b3bcf

Browse files
authored
Fix python documentation (#228)
1 parent ae4f787 commit 64b3bcf

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

sdk/ahnlich-client-py/README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ channel = Channel(host="127.0.0.1", port=1369)
103103
```py
104104

105105
from grpclib.client import Channel
106-
from ahnlich_client_py.grpc.services import DbServiceStub
106+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
107107
from ahnlich_client_py.grpc.db import query as db_query
108108

109109
# Initialize client
@@ -127,7 +127,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
127127

128128
```py
129129
from grpclib.client import Channel
130-
from ahnlich_client_py.grpc.services import DbServiceStub
130+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
131131
from ahnlich_client_py.grpc.db import query as db_query
132132

133133
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -142,7 +142,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
142142

143143
```py
144144
from grpclib.client import Channel
145-
from ahnlich_client_py.grpc.services import DbServiceStub
145+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
146146
from ahnlich_client_py.grpc.db import query as db_query
147147

148148
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -155,7 +155,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
155155

156156
```py
157157
from grpclib.client import Channel
158-
from ahnlich_client_py.grpc.services import DbServiceStub
158+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
159159
from ahnlich_client_py.grpc.db import query as db_query
160160

161161
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -172,7 +172,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
172172

173173
```py
174174
from grpclib.client import Channel
175-
from ahnlich_client_py.grpc.services import DbServiceStub
175+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
176176
from ahnlich_client_py.grpc.db import query as db_query
177177

178178
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -199,7 +199,7 @@ Store dimensions is a one dimensional array of length N
199199
### Set
200200
```py
201201
from grpclib.client import Channel
202-
from ahnlich_client_py.grpc.services import DbServiceStub
202+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
203203
from ahnlich_client_py.grpc import keyval, metadata
204204
from ahnlich_client_py.grpc.db import query as db_query
205205

@@ -224,7 +224,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
224224
### Drop store
225225
```py
226226
from grpclib.client import Channel
227-
from ahnlich_client_py.grpc.services import DbServiceStub
227+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
228228
from ahnlich_client_py.grpc.db import query as db_query
229229

230230
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -245,7 +245,7 @@ Returns an array of tuple of (store_key, store_value) of Maximum specified N
245245

246246
```py
247247
from grpclib.client import Channel
248-
from ahnlich_client_py.grpc.services import DbServiceStub
248+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
249249
from ahnlich_client_py.grpc.db import query as db_query
250250
from ahnlich_client_py.grpc.shared.algorithm import Algorithm
251251

@@ -273,7 +273,7 @@ Returns an array of tuple of (store_key, store_value)
273273

274274
```py
275275
from grpclib.client import Channel
276-
from ahnlich_client_py.grpc.services import DbServiceStub
276+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
277277
from ahnlich_client_py.grpc.db import query as db_query
278278

279279
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -296,7 +296,7 @@ Same as Get_key but returns results based defined conditions
296296

297297
```py
298298
from grpclib.client import Channel
299-
from ahnlich_client_py.grpc.services import DbServiceStub
299+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
300300
from ahnlich_client_py.grpc.db import query as db_query
301301
from ahnlich_client_py.grpc import predicates, metadata
302302

@@ -324,7 +324,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
324324
### Create Predicate Index
325325
```py
326326
from grpclib.client import Channel
327-
from ahnlich_client_py.grpc.services import DbServiceStub
327+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
328328
from ahnlich_client_py.grpc.db import query as db_query
329329

330330
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -342,7 +342,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
342342
### Drop Predicate Index
343343
```py
344344
from grpclib.client import Channel
345-
from ahnlich_client_py.grpc.services import DbServiceStub
345+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
346346
from ahnlich_client_py.grpc.db import query as db_query
347347

348348
async with Channel(host="127.0.0.1", port=1369) as channel:
@@ -361,7 +361,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
361361
### Create Non Linear Algorithm Index
362362
```py
363363
from grpclib.client import Channel
364-
from ahnlich_client_py.grpc.services import DbServiceStub
364+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
365365
from ahnlich_client_py.grpc.db import query as db_query
366366
from ahnlich_client_py.grpc.algorithm.algorithms import NonLinearAlgorithm
367367

@@ -380,7 +380,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
380380
### Drop Non Linear Algorithm Index
381381
```py
382382
from grpclib.client import Channel
383-
from ahnlich_client_py.grpc.services import DbServiceStub
383+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
384384
from ahnlich_client_py.grpc.db import query as db_query
385385
from ahnlich_client_py.grpc.algorithm.algorithms import NonLinearAlgorithm
386386

@@ -401,7 +401,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
401401
### Delete Key
402402
```py
403403
from grpclib.client import Channel
404-
from ahnlich_client_py.grpc.services import DbServiceStub
404+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
405405
from ahnlich_client_py.grpc.db import query as db_query
406406
from ahnlich_client_py.grpc import keyval
407407

@@ -422,7 +422,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
422422
### Delete Predicate
423423
```py
424424
from grpclib.client import Channel
425-
from ahnlich_client_py.grpc.services import DbServiceStub
425+
from ahnlich_client_py.grpc.services.db_service import DbServiceStub
426426
from ahnlich_client_py.grpc.db import query as db_query
427427
from ahnlich_client_py.grpc import predicates, metadata
428428

@@ -455,7 +455,7 @@ async with Channel(host="127.0.0.1", port=1369) as channel:
455455

456456
```py
457457
from grpclib.client import Channel
458-
from ahnlich_client_py.grpc.services import AiServiceStub
458+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
459459
from ahnlich_client_py.grpc.ai import query as ai_query
460460

461461
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -467,7 +467,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
467467

468468
```py
469469
from grpclib.client import Channel
470-
from ahnlich_client_py.grpc.services import AiServiceStub
470+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
471471
from ahnlich_client_py.grpc.ai import query as ai_query
472472

473473
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -479,7 +479,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
479479

480480
```py
481481
from grpclib.client import Channel
482-
from ahnlich_client_py.grpc.services import AiServiceStub
482+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
483483
from ahnlich_client_py.grpc.ai import query as ai_query
484484

485485
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -493,7 +493,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
493493
```py
494494

495495
from grpclib.client import Channel
496-
from ahnlich_client_py.grpc.services import AiServiceStub
496+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
497497
from ahnlich_client_py.grpc.ai import query as ai_query
498498
from ahnlich_client_py.grpc.ai.models import AiModel
499499

@@ -520,7 +520,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
520520
```py
521521

522522
from grpclib.client import Channel
523-
from ahnlich_client_py.grpc.services import AiServiceStub
523+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
524524
from ahnlich_client_py.grpc.ai import query as ai_query
525525
from ahnlich_client_py.grpc import keyval, metadata
526526
from ahnlich_client_py.grpc.ai import preprocess
@@ -553,7 +553,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
553553
### Drop store
554554
```py
555555
from grpclib.client import Channel
556-
from ahnlich_client_py.grpc.services import AiServiceStub
556+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
557557
from ahnlich_client_py.grpc.ai import query as ai_query
558558

559559
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -574,7 +574,7 @@ Returns an array of tuple of (store_key, store_value) of Maximum specified N
574574

575575
```py
576576
from grpclib.client import Channel
577-
from ahnlich_client_py.grpc.services import AiServiceStub
577+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
578578
from ahnlich_client_py.grpc.ai import query as ai_query
579579
from ahnlich_client_py.grpc import keyval, algorithms
580580

@@ -606,7 +606,7 @@ Same as Get_key but returns results based defined conditions
606606

607607
```py
608608
from grpclib.client import Channel
609-
from ahnlich_client_py.grpc.services import AiServiceStub
609+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
610610
from ahnlich_client_py.grpc.ai import query as ai_query
611611
from ahnlich_client_py.grpc import predicates, metadata
612612

@@ -631,7 +631,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
631631
### Create Predicate Index
632632
```py
633633
from grpclib.client import Channel
634-
from ahnlich_client_py.grpc.services import AiServiceStub
634+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
635635
from ahnlich_client_py.grpc.ai import query as ai_query
636636

637637
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -647,7 +647,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
647647
### Drop Predicate Index
648648
```py
649649
from grpclib.client import Channel
650-
from ahnlich_client_py.grpc.services import AiServiceStub
650+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
651651
from ahnlich_client_py.grpc.ai import query as ai_query
652652

653653
async with Channel(host="127.0.0.1", port=1370) as channel:
@@ -664,7 +664,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
664664
### Create Non Linear Algorithm Index
665665
```py
666666
from grpclib.client import Channel
667-
from ahnlich_client_py.grpc.services import AiServiceStub
667+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
668668
from ahnlich_client_py.grpc.ai import query as ai_query
669669
from ahnlich_client_py.grpc.algorithm.nonlinear import NonLinearAlgorithm
670670

@@ -682,7 +682,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
682682
### Drop Non Linear Algorithm Index
683683
```py
684684
from grpclib.client import Channel
685-
from ahnlich_client_py.grpc.services import AiServiceStub
685+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
686686
from ahnlich_client_py.grpc.ai import query as ai_query
687687
from ahnlich_client_py.grpc.algorithm.nonlinear import NonLinearAlgorithm
688688

@@ -703,7 +703,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
703703
```py
704704

705705
from grpclib.client import Channel
706-
from ahnlich_client_py.grpc.services import AiServiceStub
706+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
707707
from ahnlich_client_py.grpc.ai import query as ai_query
708708
from ahnlich_client_py.grpc import keyval
709709

@@ -722,7 +722,7 @@ async with Channel(host="127.0.0.1", port=1370) as channel:
722722

723723
```py
724724
from grpclib.client import Channel
725-
from ahnlich_client_py.grpc.services import AiServiceStub
725+
from ahnlich_client_py.grpc.services.ai_service import AiServiceStub
726726
from ahnlich_client_py.grpc.ai import query as ai_query
727727

728728
async with Channel(host="127.0.0.1", port=1370) as channel:

0 commit comments

Comments
 (0)