From 8074769f785090f48bca0a5a9917f9b6fac4b6a3 Mon Sep 17 00:00:00 2001 From: Donny Peeters Date: Tue, 9 Jul 2024 08:34:48 +0200 Subject: [PATCH] Fix README typos --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bd2af87..d10d14f 100644 --- a/README.md +++ b/README.md @@ -39,16 +39,16 @@ $ export XTDB_URI=http://localhost:3000/_xtdb The `XTDBClient` supports the full [HTTP API spec](https://docs.xtdb.com/clients/http/). ```python3 ->> > import os ->> > from xtdb.session import XTDBClient, Operation ->> > ->> > client = XTDBClient(os.environ["XTDB_URI"]) ->> > client.submit_tx([Operation.put({"xt/id": "123", "name": "fred"})]) ->> > ->> > client.query('{:query {:find [(pull ?e [*])] :where [[ ?e :name "fred" ]]}}') +>>> import os +>>> from xtdb.session import XTDBClient, Operation +>>> +>>> client = XTDBClient(os.environ["XTDB_URI"]) +>>> client.submit_tx([Operation.put({"xt/id": "123", "name": "fred"})]) +>>> +>>> client.query('{:query {:find [(pull ?e [*])] :where [[ ?e :name "fred" ]]}}') [[{'name': 'fred', 'xt/id': '123'}]] ->> > ->> > client.get_entity("123") +>>> +>>> client.get_entity("123") {'name': 'fred', 'xt/id': '123'} ```