Skip to content

Commit 02a080b

Browse files
committed
Fix a lot of typos
1 parent 9512d8b commit 02a080b

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

terminusdb_client/client/Client.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def connect(
328328
Extra configuration options.
329329
330330
Examples
331-
-------
331+
--------
332332
>>> client = Client("http://127.0.0.1:6363")
333333
>>> client.connect(key="root", team="admin", user="admin", db="example_db")
334334
"""
@@ -413,6 +413,7 @@ def log(self,
413413
list
414414
415415
List of the following commit objects:
416+
```
416417
{
417418
"@id":"InitialCommit/hpl18q42dbnab4vzq8me4bg1xn8p2a0",
418419
"@type":"InitialCommit",
@@ -422,6 +423,7 @@ def log(self,
422423
"schema":"layer_data:Layer_4234adfe377fa9563a17ad764ac37f5dcb14de13668ea725ef0748248229a91b",
423424
"timestamp":1660919664.9129035
424425
}
426+
```
425427
"""
426428
self._check_connection(check_db=(not team or not db))
427429
team = team if team else self.team
@@ -441,11 +443,14 @@ def log(self,
441443
def get_commit_history(self, max_history: int = 500) -> list:
442444
"""Get the whole commit history.
443445
Commit history - Commit id, author of the commit, commit message and the commit time, in the current branch from the current commit, ordered backwards in time, will be returned in a dictionary in the follow format:
444-
{"commit_id":
445-
{"author": "commit_author",
446-
"message": "commit_message",
447-
"timestamp: <datetime object of the timestamp>" }
446+
```
447+
{ "commit_id":
448+
{ "author": "commit_author",
449+
"message": "commit_message",
450+
"timestamp: <datetime object of the timestamp>"
451+
}
448452
}
453+
```
449454
450455
Parameters
451456
----------
@@ -730,7 +735,7 @@ def delete_database(
730735
if the client does not connect to a server.
731736
732737
Examples
733-
-------
738+
--------
734739
>>> client = Client("http://127.0.0.1:6363/")
735740
>>> client.delete_database("<database>", "<team>")
736741
"""
@@ -1553,7 +1558,7 @@ def query(
15531558
if the client does not connect to a database
15541559
15551560
Examples
1556-
-------
1561+
--------
15571562
>>> Client(server="http://localhost:6363").query(woql, "updating graph")
15581563
15591564
Returns
@@ -1755,7 +1760,7 @@ def push(
17551760
if the client does not connect to a database
17561761
17571762
Examples
1758-
-------
1763+
--------
17591764
>>> Client(server="http://localhost:6363").push(remote="origin", remote_branch = "main", author = "admin", message = "commit message"})
17601765
17611766
Returns
@@ -2541,7 +2546,7 @@ def add_role(self, role: dict) -> Optional[dict]:
25412546
dict or None if failed
25422547
25432548
Examples
2544-
-------
2549+
--------
25452550
>>> client = Client("http://127.0.0.1:6363")
25462551
>>> client.connect(key="root", team="admin", user="admin", db="example_db")
25472552
>>> role = {
@@ -2597,7 +2602,7 @@ def change_role(self, role: dict) -> Optional[dict]:
25972602
dict or None if failed
25982603
25992604
Examples
2600-
-------
2605+
--------
26012606
>>> client = Client("http://127.0.0.1:6363")
26022607
>>> client.connect(key="root", team="admin", user="admin", db="example_db")
26032608
>>> role = {

terminusdb_client/woqldataframe/woqlDataframe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77

88
def result_to_df(all_records, keepid=False, max_embed_dep=0, client=None):
9-
"""Turn result documents into pandas DataFrame, all documents should eb the same type. If max_embed_dep > 0, a client need to be provide to get objects to embed in DataFrame."""
9+
"""Turn result documents into pandas DataFrame, all documents should be the same type.
10+
If max_embed_dep > 0, a client needs to be provided to get objects to embed in DataFrame."""
1011
try:
1112
pd = import_module("pandas")
1213
except ImportError:

0 commit comments

Comments
 (0)