Skip to content

Commit b222747

Browse files
Merge pull request #30 from unniznd/fix_docs_func
fix: function docs on hovering
2 parents 1e77c8e + 01bd416 commit b222747

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lighthouseweb3/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def uploadBlob(self, source: io.BufferedReader, filename: str, tag: str = ''):
5555
def getBalance(self):
5656
"""
5757
Retrieve the balance information of a user from the Lighthouse.
58+
5859
:param publicKey: str, The public key of the user.
5960
:return: dict[str, any], A dictionary containing the data usage and data limit details.
6061
"""
@@ -66,6 +67,7 @@ def getBalance(self):
6667
def generateKey(self):
6768
"""
6869
Generate a new IPNS key for the authenticated user.
70+
6971
:return: dict, The generated IPNS key information.
7072
"""
7173
try:
@@ -76,6 +78,7 @@ def generateKey(self):
7678
def publishRecord(self, cid: str, keyName: str):
7779
"""
7880
Publish an IPNS record for a given CID and key name.
81+
7982
:param cid: str, Content Identifier to publish
8083
:param keyName: str, Name of the IPNS key to use
8184
:return: dict, The published IPNS record information
@@ -88,7 +91,8 @@ def publishRecord(self, cid: str, keyName: str):
8891
def getAllKeys(self):
8992
"""
9093
Retrieves all IPNS records associated with the current token.
91-
return: list A list of IPNS records retrieved using the provided token.
94+
95+
:return: list A list of IPNS records retrieved using the provided token.
9296
"""
9397

9498
try:
@@ -99,6 +103,7 @@ def getAllKeys(self):
99103
def removeKey(self, keyName: str):
100104
"""
101105
Remove IPNS record of the given keyName
106+
102107
:param keyName: str, Name of the IPNS key to use
103108
:return: dict, A dict of removed IPNS record.
104109
"""
@@ -112,6 +117,7 @@ def removeKey(self, keyName: str):
112117
def createWallet(password: str):
113118
"""
114119
Creates a new wallet using the provided password.
120+
115121
:param password: str, The password to secure the wallet.
116122
:return: dict, The wallet encrypted with the passowrd
117123
"""
@@ -180,8 +186,9 @@ def download(cid: str):
180186
def getFileInfo(cid: str):
181187
"""
182188
Retrieves information about a file using its CID (Content Identifier).
189+
183190
:param cid: str, Content Identifier for the data to be downloaded
184-
returns: dict, A dictionary containing file information.
191+
:return: dict, A dictionary containing file information.
185192
"""
186193

187194
try:
@@ -193,6 +200,7 @@ def getFileInfo(cid: str):
193200
def getApiKey(publicKey: str, signedMessage: str):
194201
"""
195202
Generates and returns an API key for the given public key and signed message.
203+
196204
:param publicKey: str, The public key associated with the user.
197205
:param signedMessage: str, The message signed by the user's private key.
198206
:return: dict, A dict with generated API key.

0 commit comments

Comments
 (0)