hive-nectar 0.0.2__py3-none-any.whl → 0.0.3__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.2.dist-info → hive_nectar-0.0.3.dist-info}/METADATA +13 -11
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.3.dist-info}/RECORD +17 -11
- nectar/account.py +6 -6
- nectar/py.typed +0 -0
- nectar/version.py +2 -1
- nectarapi/node.py +11 -5
- nectarapi/py.typed +0 -0
- nectarapi/version.py +2 -1
- nectarbase/py.typed +0 -0
- nectarbase/version.py +2 -1
- nectargrapheneapi/py.typed +0 -0
- nectargraphenebase/py.typed +0 -0
- nectargraphenebase/version.py +2 -1
- nectarstorage/py.typed +0 -0
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.3.dist-info}/WHEEL +0 -0
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.3.dist-info}/entry_points.txt +0 -0
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.3.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hive-nectar
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Unofficial Python library for HIVE
|
|
5
|
-
Project-URL: Homepage, http://www.github.com/thecrazygm/nectar
|
|
6
|
-
Project-URL: Download, https://github.com/thecrazygm/nectar/tarball/0.00.01
|
|
7
|
-
Project-URL: Bug Tracker, https://github.com/thecrazygm/nectar/issues
|
|
5
|
+
Project-URL: Homepage, http://www.github.com/thecrazygm/hive-nectar
|
|
6
|
+
Project-URL: Download, https://github.com/thecrazygm/hive-nectar/tarball/0.00.01
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/thecrazygm/hive-nectar/issues
|
|
8
8
|
Author-email: Michael Garcia <thecrazygm@gmail.com>
|
|
9
9
|
Maintainer-email: Michael Garcia <thecrazygm@gmail.com>
|
|
10
10
|
License: The MIT License (MIT)
|
|
@@ -78,16 +78,17 @@ You may find help in the [nectar-discord-channel](). The discord channel can als
|
|
|
78
78
|
A complete library documentation is available at
|
|
79
79
|
[temporary]()
|
|
80
80
|
|
|
81
|
-
# About nectar
|
|
81
|
+
# About hive-nectar
|
|
82
82
|
|
|
83
|
+
- Highly opinionated fork of beem
|
|
83
84
|
- High unit test coverage
|
|
84
|
-
- Complete documentation of nectar
|
|
85
|
+
- Complete documentation of hive-nectar and all classes including all functions
|
|
85
86
|
- hivesigner integration
|
|
86
87
|
- Works on read-only systems
|
|
87
88
|
- Own BlockchainObject class with cache
|
|
88
89
|
- Contains all broadcast operations
|
|
89
90
|
- Estimation of virtual account operation index from date or block number
|
|
90
|
-
- the command line tool nectar
|
|
91
|
+
- the command line tool hive-nectar uses click and has more commands
|
|
91
92
|
- NodeRPC can be used to execute even not implemented RPC-Calls
|
|
92
93
|
- More complete implemention
|
|
93
94
|
|
|
@@ -103,7 +104,7 @@ For Debian and Ubuntu, please ensure that the following packages are installed:
|
|
|
103
104
|
sudo apt-get install build-essential libssl-dev python3-dev python3-pip python3-setuptools
|
|
104
105
|
```
|
|
105
106
|
|
|
106
|
-
The following package speeds up nectar
|
|
107
|
+
The following package speeds up hive-nectar:
|
|
107
108
|
|
|
108
109
|
> sudo apt-get install python3-gmpy2
|
|
109
110
|
|
|
@@ -142,16 +143,17 @@ pip3 install -U secp256k1prp
|
|
|
142
143
|
Install or update nectar by pip(you may need to replace pip3 by pip):
|
|
143
144
|
|
|
144
145
|
```bash
|
|
145
|
-
pip3 install -U nectar
|
|
146
|
+
pip3 install -U hive-nectar
|
|
146
147
|
```
|
|
147
148
|
|
|
148
149
|
You can install nectar from this repository if you want the latest but
|
|
149
150
|
possibly non-compiling version:
|
|
150
151
|
|
|
151
152
|
```bash
|
|
152
|
-
git clone https://github.com/thecrazygm/nectar.git
|
|
153
|
-
cd nectar
|
|
153
|
+
git clone https://github.com/thecrazygm/hive-nectar.git
|
|
154
|
+
cd hive-nectar
|
|
154
155
|
uv sync
|
|
156
|
+
uv sync --dev
|
|
155
157
|
```
|
|
156
158
|
|
|
157
159
|
Run tests after install:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nectar/__init__.py,sha256=YH9ietjJFhFxTPwQ3K9iw8VJZ__CNK5QTQeGcw1iKzk,503
|
|
2
|
-
nectar/account.py,sha256
|
|
2
|
+
nectar/account.py,sha256=ZstMVwgllIKoOSnTmSpL3o2okrkL3-qqTwmwZyJQxyI,172273
|
|
3
3
|
nectar/amount.py,sha256=Zpk-BAoRt1QjwO32CIBmXpCBIhyU1qHm_skYPjfboXg,18235
|
|
4
4
|
nectar/asciichart.py,sha256=DwPyZAqne6o9L_PPRtlw6Xj0QdOZ-aId1lpOnmbyc6Q,8828
|
|
5
5
|
nectar/asset.py,sha256=spGsJmlVQeZ6-oYhcwmQKsI3gpGmrpCzimYO1Qv4MtA,2725
|
|
@@ -25,23 +25,25 @@ nectar/message.py,sha256=lVGaydsxh8oMTS90khho3DtqxhzgIrt4NmjxwyP0X3k,13019
|
|
|
25
25
|
nectar/nodelist.py,sha256=3OPrfVVaI6Wza-yuqDfryoCgCA4dDUL64x6wwYqPSFA,15219
|
|
26
26
|
nectar/price.py,sha256=WV1ix2cuWHPIFq4cFJZD37ud-9BDBpvlv4BznI_cGTI,21270
|
|
27
27
|
nectar/profile.py,sha256=t-pqC2DZxzvTV2XLU6iZWT1NdHuk77A_iiisbA0QIOM,1921
|
|
28
|
+
nectar/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
29
|
nectar/rc.py,sha256=BAc88X1mObL2FQSm4ABhBsRfWDBHkee0SCigZ6QlA2c,12825
|
|
29
30
|
nectar/snapshot.py,sha256=_5hsrmJDpPoWTYtQGZ2grMMuuGBInOGS0ip9gv5-RJo,31696
|
|
30
31
|
nectar/steem.py,sha256=JwfO-dp7HT3mVEZVunHNp87gFbdO8e1tcpXQs_MygJ8,23916
|
|
31
32
|
nectar/storage.py,sha256=yYsWc12fOUKEAkSn5wKGS-wSvsac3sMVn6uzLu_pn8c,1855
|
|
32
33
|
nectar/transactionbuilder.py,sha256=j5PD3Wm_w9gHnKJ1Ug3sxz3RWPclWt-MQIO5ox027X8,25443
|
|
33
34
|
nectar/utils.py,sha256=OGeLuO_nYDAvcX-onrm4xjn1L0binq8Glelgg6RdlSo,18882
|
|
34
|
-
nectar/version.py,sha256=
|
|
35
|
+
nectar/version.py,sha256=KKZ62zc_OgyducdW9y3UUDs3DG3ODEChGcsVq7KU9OE,76
|
|
35
36
|
nectar/vote.py,sha256=sO_ukJMEcUO_WI-D2EwbAiiRLApRQ1fyiwyX7YSAiOk,20222
|
|
36
37
|
nectar/wallet.py,sha256=pgbiLJbwXKMiR7EOtuVFee6s3nAdpILHVQ5iPNy7zhs,16222
|
|
37
38
|
nectar/witness.py,sha256=88XYjhTRNhyu9hfIG0sm3Pg1hC9eooo3HhW5EhcaYps,23600
|
|
38
39
|
nectarapi/__init__.py,sha256=c0J2Z-lHOvkSch9bZS3LVQZjKku2XxnYMZToq7OAkfI,157
|
|
39
40
|
nectarapi/exceptions.py,sha256=FnS4-ywWDxEAtV65Hd-4XxAV7j1wRgtQRLIvIGxA0Xs,1824
|
|
40
41
|
nectarapi/graphenerpc.py,sha256=H3u8ybNqa4RgWD4PqbfnEPkdCXOj1Mn3IGAyuUe4KdY,23495
|
|
41
|
-
nectarapi/node.py,sha256=
|
|
42
|
+
nectarapi/node.py,sha256=ydaW5t9afF85h5m2QtCfDuzbeH5rR33dBLAJNWD7srA,5538
|
|
42
43
|
nectarapi/noderpc.py,sha256=FxJz1KbjU6FbNdyp7ovOSZ8TbmD_xqQclKjeBP42Jls,10093
|
|
44
|
+
nectarapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
45
|
nectarapi/rpcutils.py,sha256=0nKCrEeNHFSEU3AjaOGNh-2pjc8qw4mRA9lCrBkP1FQ,2910
|
|
44
|
-
nectarapi/version.py,sha256=
|
|
46
|
+
nectarapi/version.py,sha256=KKZ62zc_OgyducdW9y3UUDs3DG3ODEChGcsVq7KU9OE,76
|
|
45
47
|
nectarbase/__init__.py,sha256=U18vyJDvtsto3gHN9Fp3DHlcPd954sG06duHc72pNjs,234
|
|
46
48
|
nectarbase/ledgertransactions.py,sha256=97WXhNhcjNDf_XjXDD08lBMzYmvHC63oZMLRQqVNvWY,2545
|
|
47
49
|
nectarbase/memo.py,sha256=_-y9bxGr1DyEaD2-twVJ5Y-1ttFD-VJLyVAYzlT2ijw,7570
|
|
@@ -49,10 +51,12 @@ nectarbase/objects.py,sha256=ukBsUft2actWwlka2prwZkZtTKwLL0HgJfQtAvZfLIs,14894
|
|
|
49
51
|
nectarbase/objecttypes.py,sha256=zrKBFwoUJXvWDSn8RugWioKqf7TS7dY0EEXVAZv_-K0,690
|
|
50
52
|
nectarbase/operationids.py,sha256=wpKltPFlInpueyvLl3XCI2fjP9ziIs4MStoIj2mbPfQ,3645
|
|
51
53
|
nectarbase/operations.py,sha256=K-ypT0KMcRPjcoOuYyUhpRaRUv5FtAhfdc7kSqbFyCs,47628
|
|
54
|
+
nectarbase/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
55
|
nectarbase/signedtransactions.py,sha256=r-MRnEQDnx6U6XFPcM3hPXiDZvU6sQVx4Vv_0nZF7fs,1792
|
|
53
56
|
nectarbase/transactions.py,sha256=D7TK4Pkxr1N7p0Yh2bxvdXpOuEYpLl2tWK84Pj_93c0,319
|
|
54
|
-
nectarbase/version.py,sha256=
|
|
57
|
+
nectarbase/version.py,sha256=KKZ62zc_OgyducdW9y3UUDs3DG3ODEChGcsVq7KU9OE,76
|
|
55
58
|
nectargrapheneapi/__init__.py,sha256=_Gxdt_qaQQwwYABHEFBuf4tMh93ItIa3HPBH9nk1PTw,151
|
|
59
|
+
nectargrapheneapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
60
|
nectargraphenebase/__init__.py,sha256=PzB_0qiWfqJku5vKQs0CpkVeipPmZ33Fpc1px4VCV-Q,570
|
|
57
61
|
nectargraphenebase/account.py,sha256=pi3TFr6_CwGajdwDuAqlRGElmLhjBXlxC7mMOpc0vUU,29789
|
|
58
62
|
nectargraphenebase/aes.py,sha256=BywHJR8F7n2IBXhBmXqyc61DlVXcJ_QIE9qkubFdX2M,1578
|
|
@@ -67,20 +71,22 @@ nectargraphenebase/objecttypes.py,sha256=8YkRyxtd1hNZ06XvyHBRA5PatVeTd8XCFQmW_2p
|
|
|
67
71
|
nectargraphenebase/operationids.py,sha256=TLXB8FovmDwC39PNAR8OaW-NWyo1gFH0zE4ibShcMiI,65
|
|
68
72
|
nectargraphenebase/operations.py,sha256=fPTQ98sUtQRClAakBKPCGZjG0iIAAJqM5Y72Ip_HWWI,653
|
|
69
73
|
nectargraphenebase/prefix.py,sha256=tpX2_uz5lPveUoGbmXC4zsrG-5QsaVbIGIFPWJvYRbg,280
|
|
74
|
+
nectargraphenebase/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
70
75
|
nectargraphenebase/py23.py,sha256=aI1MAQ74DngxkjdpRlWEspmB1HNTQcpj3uHKo0b7rsM,784
|
|
71
76
|
nectargraphenebase/signedtransactions.py,sha256=y5tq9ijO_EXUpn77cHgqx55RcsY0Jr-lwj_r_0w7OHI,6947
|
|
72
77
|
nectargraphenebase/types.py,sha256=OZGVxgOoNPLiElNyDluUpmXNyREGzCEekZwq5uwPfGE,9771
|
|
73
78
|
nectargraphenebase/unsignedtransactions.py,sha256=HwhbWkWS1mYCJWKMsUI18PogEmZ5sVTWLPwolvM6ZR0,9522
|
|
74
|
-
nectargraphenebase/version.py,sha256=
|
|
79
|
+
nectargraphenebase/version.py,sha256=KKZ62zc_OgyducdW9y3UUDs3DG3ODEChGcsVq7KU9OE,76
|
|
75
80
|
nectarstorage/__init__.py,sha256=AQXmR8clT9bO9SnIM8QEr5S8ZOpbKuG_BnBsDmGvec0,1347
|
|
76
81
|
nectarstorage/base.py,sha256=h7Oca1_RaJw39P1I_xXRKup016pS8zCLOs3e4IHKKdE,9734
|
|
77
82
|
nectarstorage/exceptions.py,sha256=0erk_d0Ejia9td_Ke7XFBl17H1BxbM42gFpkej8EbV0,421
|
|
78
83
|
nectarstorage/interfaces.py,sha256=WK2YR2mKUk1Qts50ZYLd407gECywA02A8iWr_p0KfCw,6786
|
|
79
84
|
nectarstorage/masterpassword.py,sha256=nyG90LeHeqEjXVbRT36gAWGe-MxyKGCfQ8SqvytK1no,8696
|
|
85
|
+
nectarstorage/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
86
|
nectarstorage/ram.py,sha256=Cy6JbMrlgcEG673_KqfyaofhAdJR-luRKTedj3qTZEE,1034
|
|
81
87
|
nectarstorage/sqlite.py,sha256=fkkDgi1lPv7lRo5wEAe4BzSVd2kDBGss3vCDYeNzDCs,10625
|
|
82
|
-
hive_nectar-0.0.
|
|
83
|
-
hive_nectar-0.0.
|
|
84
|
-
hive_nectar-0.0.
|
|
85
|
-
hive_nectar-0.0.
|
|
86
|
-
hive_nectar-0.0.
|
|
88
|
+
hive_nectar-0.0.3.dist-info/METADATA,sha256=v3FJzQRpAnw536qyiu3BTgHHgUl6QDCIq_Jn3Y379zg,6015
|
|
89
|
+
hive_nectar-0.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
90
|
+
hive_nectar-0.0.3.dist-info/entry_points.txt,sha256=DbqiJb5fFpQvGZ0ojvc2w3dXZitTg6FPz09CobKq4m8,47
|
|
91
|
+
hive_nectar-0.0.3.dist-info/licenses/LICENSE.txt,sha256=WjJRNR4r7FuLEO2BTBLGa05T7bBecGGgH47NgKsSY0E,1158
|
|
92
|
+
hive_nectar-0.0.3.dist-info/RECORD,,
|
nectar/account.py
CHANGED
|
@@ -3060,12 +3060,12 @@ class Account(BlockchainObject):
|
|
|
3060
3060
|
.. code-block:: js
|
|
3061
3061
|
|
|
3062
3062
|
{
|
|
3063
|
-
'name': '
|
|
3064
|
-
'about': 'nectar Developer',
|
|
3065
|
-
'location': '
|
|
3066
|
-
'profile_image': 'https
|
|
3067
|
-
'cover_image': 'https
|
|
3068
|
-
'website': 'https://github.com/
|
|
3063
|
+
'name': 'TheCrazyGM',
|
|
3064
|
+
'about': 'hive-nectar Developer',
|
|
3065
|
+
'location': 'United States',
|
|
3066
|
+
'profile_image': 'https://.jpg',
|
|
3067
|
+
'cover_image': 'https://.jpg',
|
|
3068
|
+
'website': 'https://github.com/thecrazygm/hive-nectar'
|
|
3069
3069
|
}
|
|
3070
3070
|
|
|
3071
3071
|
.. code-block:: python
|
nectar/py.typed
ADDED
|
File without changes
|
nectar/version.py
CHANGED
nectarapi/node.py
CHANGED
|
@@ -142,13 +142,18 @@ 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(
|
|
145
|
+
def sleep_and_check_retries(
|
|
146
|
+
self, errorMsg=None, sleep=True, call_retry=False, showMsg=True
|
|
147
|
+
):
|
|
146
148
|
"""Sleep and check if num_retries is reached"""
|
|
147
149
|
if errorMsg:
|
|
148
150
|
log.warning("Error: {}".format(errorMsg))
|
|
149
151
|
if call_retry:
|
|
150
152
|
cnt = self.error_cnt_call
|
|
151
|
-
if
|
|
153
|
+
if (
|
|
154
|
+
self.num_retries_call >= 0
|
|
155
|
+
and self.error_cnt_call > self.num_retries_call
|
|
156
|
+
):
|
|
152
157
|
raise CallRetriesReached()
|
|
153
158
|
else:
|
|
154
159
|
cnt = self.error_cnt
|
|
@@ -158,11 +163,12 @@ class Nodes(list):
|
|
|
158
163
|
if showMsg:
|
|
159
164
|
if call_retry:
|
|
160
165
|
log.warning(
|
|
161
|
-
"Retry RPC Call on node: %s (%d/%d)
|
|
166
|
+
"Retry RPC Call on node: %s (%d/%d)"
|
|
167
|
+
% (self.url, cnt, self.num_retries_call)
|
|
162
168
|
)
|
|
163
169
|
else:
|
|
164
170
|
log.warning(
|
|
165
|
-
"Lost connection or internal error on node: %s (%d/%d)
|
|
171
|
+
"Lost connection or internal error on node: %s (%d/%d)"
|
|
166
172
|
% (self.url, cnt, self.num_retries)
|
|
167
173
|
)
|
|
168
174
|
if not sleep:
|
|
@@ -174,5 +180,5 @@ class Nodes(list):
|
|
|
174
180
|
else:
|
|
175
181
|
sleeptime = 10
|
|
176
182
|
if sleeptime:
|
|
177
|
-
log.warning("Retrying in %d seconds
|
|
183
|
+
log.warning("Retrying in %d seconds" % sleeptime)
|
|
178
184
|
time.sleep(sleeptime)
|
nectarapi/py.typed
ADDED
|
File without changes
|
nectarapi/version.py
CHANGED
nectarbase/py.typed
ADDED
|
File without changes
|
nectarbase/version.py
CHANGED
|
File without changes
|
|
File without changes
|
nectargraphenebase/version.py
CHANGED
nectarstorage/py.typed
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|