hive-nectar 0.0.3__py3-none-any.whl → 0.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hive-nectar might be problematic. Click here for more details.
- {hive_nectar-0.0.3.dist-info → hive_nectar-0.0.5.dist-info}/METADATA +1 -1
- {hive_nectar-0.0.3.dist-info → hive_nectar-0.0.5.dist-info}/RECORD +11 -11
- nectar/comment.py +16 -4
- nectar/version.py +1 -1
- nectarapi/node.py +3 -9
- nectarapi/version.py +1 -1
- nectarbase/version.py +1 -1
- nectargraphenebase/version.py +1 -1
- {hive_nectar-0.0.3.dist-info → hive_nectar-0.0.5.dist-info}/WHEEL +0 -0
- {hive_nectar-0.0.3.dist-info → hive_nectar-0.0.5.dist-info}/entry_points.txt +0 -0
- {hive_nectar-0.0.3.dist-info → hive_nectar-0.0.5.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hive-nectar
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Unofficial Python library for HIVE
|
|
5
5
|
Project-URL: Homepage, http://www.github.com/thecrazygm/hive-nectar
|
|
6
6
|
Project-URL: Download, https://github.com/thecrazygm/hive-nectar/tarball/0.00.01
|
|
@@ -9,7 +9,7 @@ nectar/blockchaininstance.py,sha256=mrHuhHsR7h-becNe_bE8WieFqMFyz49s-LecmC_k134,
|
|
|
9
9
|
nectar/blockchainobject.py,sha256=ZlWeOWGMoHyATgw20YfPV47OYlwuOpO75hmf0c9IC_4,7095
|
|
10
10
|
nectar/blurt.py,sha256=cZoUyAdr_HdUTm8K3N-PyaFYfpBL_WmomFWeWTHbeIA,23070
|
|
11
11
|
nectar/cli.py,sha256=jYi_EGZKeML7fvVX3g59uqWsUPL2e72NkxM4qFFrjLM,227475
|
|
12
|
-
nectar/comment.py,sha256=
|
|
12
|
+
nectar/comment.py,sha256=Hqj1TL9vKCWmDnBikVG8yCl7hgAwPBfqN_pkDsjtaxo,46791
|
|
13
13
|
nectar/community.py,sha256=XyxIfdpIWart70MM2ojlZTfbKcRYr6qxGcWtEQNHfuI,17990
|
|
14
14
|
nectar/constants.py,sha256=lrspBwCz9BE0YZY10DMS98oPwwxgmI0LzFdlQ7v53Ig,4974
|
|
15
15
|
nectar/conveyor.py,sha256=dpvaVLaR48Tn56fkCUl5MoDQDcR3eLcrIKYm6ctZkRM,11265
|
|
@@ -32,18 +32,18 @@ nectar/steem.py,sha256=JwfO-dp7HT3mVEZVunHNp87gFbdO8e1tcpXQs_MygJ8,23916
|
|
|
32
32
|
nectar/storage.py,sha256=yYsWc12fOUKEAkSn5wKGS-wSvsac3sMVn6uzLu_pn8c,1855
|
|
33
33
|
nectar/transactionbuilder.py,sha256=j5PD3Wm_w9gHnKJ1Ug3sxz3RWPclWt-MQIO5ox027X8,25443
|
|
34
34
|
nectar/utils.py,sha256=OGeLuO_nYDAvcX-onrm4xjn1L0binq8Glelgg6RdlSo,18882
|
|
35
|
-
nectar/version.py,sha256=
|
|
35
|
+
nectar/version.py,sha256=jO96tXyyVF3CBczqrDOywR6SvXRBy-ZjyQi9XlqyjQU,76
|
|
36
36
|
nectar/vote.py,sha256=sO_ukJMEcUO_WI-D2EwbAiiRLApRQ1fyiwyX7YSAiOk,20222
|
|
37
37
|
nectar/wallet.py,sha256=pgbiLJbwXKMiR7EOtuVFee6s3nAdpILHVQ5iPNy7zhs,16222
|
|
38
38
|
nectar/witness.py,sha256=88XYjhTRNhyu9hfIG0sm3Pg1hC9eooo3HhW5EhcaYps,23600
|
|
39
39
|
nectarapi/__init__.py,sha256=c0J2Z-lHOvkSch9bZS3LVQZjKku2XxnYMZToq7OAkfI,157
|
|
40
40
|
nectarapi/exceptions.py,sha256=FnS4-ywWDxEAtV65Hd-4XxAV7j1wRgtQRLIvIGxA0Xs,1824
|
|
41
41
|
nectarapi/graphenerpc.py,sha256=H3u8ybNqa4RgWD4PqbfnEPkdCXOj1Mn3IGAyuUe4KdY,23495
|
|
42
|
-
nectarapi/node.py,sha256=
|
|
42
|
+
nectarapi/node.py,sha256=mjK-fMFJ2icDaOUBoiUuDU-beo3aQK0HGwt0l0pC0YQ,5456
|
|
43
43
|
nectarapi/noderpc.py,sha256=FxJz1KbjU6FbNdyp7ovOSZ8TbmD_xqQclKjeBP42Jls,10093
|
|
44
44
|
nectarapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
nectarapi/rpcutils.py,sha256=0nKCrEeNHFSEU3AjaOGNh-2pjc8qw4mRA9lCrBkP1FQ,2910
|
|
46
|
-
nectarapi/version.py,sha256=
|
|
46
|
+
nectarapi/version.py,sha256=jO96tXyyVF3CBczqrDOywR6SvXRBy-ZjyQi9XlqyjQU,76
|
|
47
47
|
nectarbase/__init__.py,sha256=U18vyJDvtsto3gHN9Fp3DHlcPd954sG06duHc72pNjs,234
|
|
48
48
|
nectarbase/ledgertransactions.py,sha256=97WXhNhcjNDf_XjXDD08lBMzYmvHC63oZMLRQqVNvWY,2545
|
|
49
49
|
nectarbase/memo.py,sha256=_-y9bxGr1DyEaD2-twVJ5Y-1ttFD-VJLyVAYzlT2ijw,7570
|
|
@@ -54,7 +54,7 @@ nectarbase/operations.py,sha256=K-ypT0KMcRPjcoOuYyUhpRaRUv5FtAhfdc7kSqbFyCs,4762
|
|
|
54
54
|
nectarbase/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
nectarbase/signedtransactions.py,sha256=r-MRnEQDnx6U6XFPcM3hPXiDZvU6sQVx4Vv_0nZF7fs,1792
|
|
56
56
|
nectarbase/transactions.py,sha256=D7TK4Pkxr1N7p0Yh2bxvdXpOuEYpLl2tWK84Pj_93c0,319
|
|
57
|
-
nectarbase/version.py,sha256=
|
|
57
|
+
nectarbase/version.py,sha256=jO96tXyyVF3CBczqrDOywR6SvXRBy-ZjyQi9XlqyjQU,76
|
|
58
58
|
nectargrapheneapi/__init__.py,sha256=_Gxdt_qaQQwwYABHEFBuf4tMh93ItIa3HPBH9nk1PTw,151
|
|
59
59
|
nectargrapheneapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
60
|
nectargraphenebase/__init__.py,sha256=PzB_0qiWfqJku5vKQs0CpkVeipPmZ33Fpc1px4VCV-Q,570
|
|
@@ -76,7 +76,7 @@ nectargraphenebase/py23.py,sha256=aI1MAQ74DngxkjdpRlWEspmB1HNTQcpj3uHKo0b7rsM,78
|
|
|
76
76
|
nectargraphenebase/signedtransactions.py,sha256=y5tq9ijO_EXUpn77cHgqx55RcsY0Jr-lwj_r_0w7OHI,6947
|
|
77
77
|
nectargraphenebase/types.py,sha256=OZGVxgOoNPLiElNyDluUpmXNyREGzCEekZwq5uwPfGE,9771
|
|
78
78
|
nectargraphenebase/unsignedtransactions.py,sha256=HwhbWkWS1mYCJWKMsUI18PogEmZ5sVTWLPwolvM6ZR0,9522
|
|
79
|
-
nectargraphenebase/version.py,sha256=
|
|
79
|
+
nectargraphenebase/version.py,sha256=jO96tXyyVF3CBczqrDOywR6SvXRBy-ZjyQi9XlqyjQU,76
|
|
80
80
|
nectarstorage/__init__.py,sha256=AQXmR8clT9bO9SnIM8QEr5S8ZOpbKuG_BnBsDmGvec0,1347
|
|
81
81
|
nectarstorage/base.py,sha256=h7Oca1_RaJw39P1I_xXRKup016pS8zCLOs3e4IHKKdE,9734
|
|
82
82
|
nectarstorage/exceptions.py,sha256=0erk_d0Ejia9td_Ke7XFBl17H1BxbM42gFpkej8EbV0,421
|
|
@@ -85,8 +85,8 @@ nectarstorage/masterpassword.py,sha256=nyG90LeHeqEjXVbRT36gAWGe-MxyKGCfQ8SqvytK1
|
|
|
85
85
|
nectarstorage/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
nectarstorage/ram.py,sha256=Cy6JbMrlgcEG673_KqfyaofhAdJR-luRKTedj3qTZEE,1034
|
|
87
87
|
nectarstorage/sqlite.py,sha256=fkkDgi1lPv7lRo5wEAe4BzSVd2kDBGss3vCDYeNzDCs,10625
|
|
88
|
-
hive_nectar-0.0.
|
|
89
|
-
hive_nectar-0.0.
|
|
90
|
-
hive_nectar-0.0.
|
|
91
|
-
hive_nectar-0.0.
|
|
92
|
-
hive_nectar-0.0.
|
|
88
|
+
hive_nectar-0.0.5.dist-info/METADATA,sha256=kyu0ECk_98mpV64S6FGUe9Z6V_9428EPgVVHptGeklQ,6015
|
|
89
|
+
hive_nectar-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
90
|
+
hive_nectar-0.0.5.dist-info/entry_points.txt,sha256=DbqiJb5fFpQvGZ0ojvc2w3dXZitTg6FPz09CobKq4m8,47
|
|
91
|
+
hive_nectar-0.0.5.dist-info/licenses/LICENSE.txt,sha256=WjJRNR4r7FuLEO2BTBLGa05T7bBecGGgH47NgKsSY0E,1158
|
|
92
|
+
hive_nectar-0.0.5.dist-info/RECORD,,
|
nectar/comment.py
CHANGED
|
@@ -136,11 +136,10 @@ class Comment(BlockchainObject):
|
|
|
136
136
|
comment["json_metadata"] = {}
|
|
137
137
|
|
|
138
138
|
comment["tags"] = []
|
|
139
|
-
comment["community"] = ""
|
|
140
139
|
if isinstance(comment["json_metadata"], dict):
|
|
141
140
|
if "tags" in comment["json_metadata"]:
|
|
142
141
|
comment["tags"] = comment["json_metadata"]["tags"]
|
|
143
|
-
if "community" in comment["json_metadata"]:
|
|
142
|
+
if "community" in comment["json_metadata"] and not comment["community"]:
|
|
144
143
|
comment["community"] = comment["json_metadata"]["community"]
|
|
145
144
|
|
|
146
145
|
parse_int = [
|
|
@@ -232,8 +231,6 @@ class Comment(BlockchainObject):
|
|
|
232
231
|
output["json_metadata"] = json.dumps(output["json_metadata"], separators=[",", ":"])
|
|
233
232
|
if "tags" in output:
|
|
234
233
|
output.pop("tags")
|
|
235
|
-
if "community" in output:
|
|
236
|
-
output.pop("community")
|
|
237
234
|
parse_times = [
|
|
238
235
|
"active",
|
|
239
236
|
"cashout_time",
|
|
@@ -311,6 +308,21 @@ class Comment(BlockchainObject):
|
|
|
311
308
|
else:
|
|
312
309
|
return ""
|
|
313
310
|
|
|
311
|
+
@property
|
|
312
|
+
def community(self):
|
|
313
|
+
if "community" in self:
|
|
314
|
+
return self["community"]
|
|
315
|
+
else:
|
|
316
|
+
return ""
|
|
317
|
+
|
|
318
|
+
@property
|
|
319
|
+
def community_title(self):
|
|
320
|
+
"""The Community title property."""
|
|
321
|
+
if "community_title" in self:
|
|
322
|
+
return self["community_title"]
|
|
323
|
+
else:
|
|
324
|
+
return ""
|
|
325
|
+
|
|
314
326
|
@property
|
|
315
327
|
def parent_author(self):
|
|
316
328
|
if "parent_author" in self:
|
nectar/version.py
CHANGED
nectarapi/node.py
CHANGED
|
@@ -142,18 +142,13 @@ class Nodes(list):
|
|
|
142
142
|
if self.node is not None:
|
|
143
143
|
self.node.error_cnt = 0
|
|
144
144
|
|
|
145
|
-
def sleep_and_check_retries(
|
|
146
|
-
self, errorMsg=None, sleep=True, call_retry=False, showMsg=True
|
|
147
|
-
):
|
|
145
|
+
def sleep_and_check_retries(self, errorMsg=None, sleep=True, call_retry=False, showMsg=True):
|
|
148
146
|
"""Sleep and check if num_retries is reached"""
|
|
149
147
|
if errorMsg:
|
|
150
148
|
log.warning("Error: {}".format(errorMsg))
|
|
151
149
|
if call_retry:
|
|
152
150
|
cnt = self.error_cnt_call
|
|
153
|
-
if
|
|
154
|
-
self.num_retries_call >= 0
|
|
155
|
-
and self.error_cnt_call > self.num_retries_call
|
|
156
|
-
):
|
|
151
|
+
if self.num_retries_call >= 0 and self.error_cnt_call > self.num_retries_call:
|
|
157
152
|
raise CallRetriesReached()
|
|
158
153
|
else:
|
|
159
154
|
cnt = self.error_cnt
|
|
@@ -163,8 +158,7 @@ class Nodes(list):
|
|
|
163
158
|
if showMsg:
|
|
164
159
|
if call_retry:
|
|
165
160
|
log.warning(
|
|
166
|
-
"Retry RPC Call on node: %s (%d/%d)"
|
|
167
|
-
% (self.url, cnt, self.num_retries_call)
|
|
161
|
+
"Retry RPC Call on node: %s (%d/%d)" % (self.url, cnt, self.num_retries_call)
|
|
168
162
|
)
|
|
169
163
|
else:
|
|
170
164
|
log.warning(
|
nectarapi/version.py
CHANGED
nectarbase/version.py
CHANGED
nectargraphenebase/version.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|