hive-nectar 0.0.2__py3-none-any.whl → 0.0.4__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.4.dist-info}/METADATA +13 -11
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.4.dist-info}/RECORD +18 -12
- nectar/account.py +6 -6
- nectar/comment.py +8 -2
- nectar/py.typed +0 -0
- nectar/version.py +2 -1
- nectarapi/node.py +3 -3
- 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.4.dist-info}/WHEEL +0 -0
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.4.dist-info}/entry_points.txt +0 -0
- {hive_nectar-0.0.2.dist-info → hive_nectar-0.0.4.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.4
|
|
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
|
|
@@ -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=bg-0TFHCudLX44YhQdCyAswFZfZzGJY4A4nTFbCATdA,46654
|
|
13
13
|
nectar/community.py,sha256=XyxIfdpIWart70MM2ojlZTfbKcRYr6qxGcWtEQNHfuI,17990
|
|
14
14
|
nectar/constants.py,sha256=lrspBwCz9BE0YZY10DMS98oPwwxgmI0LzFdlQ7v53Ig,4974
|
|
15
15
|
nectar/conveyor.py,sha256=dpvaVLaR48Tn56fkCUl5MoDQDcR3eLcrIKYm6ctZkRM,11265
|
|
@@ -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=zDwHc53iG1aFz89YrYBMzTav_0YNKmKgekD_4NBZhsE,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=mjK-fMFJ2icDaOUBoiUuDU-beo3aQK0HGwt0l0pC0YQ,5456
|
|
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=zDwHc53iG1aFz89YrYBMzTav_0YNKmKgekD_4NBZhsE,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=zDwHc53iG1aFz89YrYBMzTav_0YNKmKgekD_4NBZhsE,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=zDwHc53iG1aFz89YrYBMzTav_0YNKmKgekD_4NBZhsE,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.4.dist-info/METADATA,sha256=MD7UOEbMfErZE67n8BfBTgYmxSLfi0bpUFveBzHE_ng,6015
|
|
89
|
+
hive_nectar-0.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
90
|
+
hive_nectar-0.0.4.dist-info/entry_points.txt,sha256=DbqiJb5fFpQvGZ0ojvc2w3dXZitTg6FPz09CobKq4m8,47
|
|
91
|
+
hive_nectar-0.0.4.dist-info/licenses/LICENSE.txt,sha256=WjJRNR4r7FuLEO2BTBLGa05T7bBecGGgH47NgKsSY0E,1158
|
|
92
|
+
hive_nectar-0.0.4.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/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 = [
|
|
@@ -311,6 +310,13 @@ class Comment(BlockchainObject):
|
|
|
311
310
|
else:
|
|
312
311
|
return ""
|
|
313
312
|
|
|
313
|
+
@property
|
|
314
|
+
def community(self):
|
|
315
|
+
if "community" in self:
|
|
316
|
+
return self["community"]
|
|
317
|
+
else:
|
|
318
|
+
return ""
|
|
319
|
+
|
|
314
320
|
@property
|
|
315
321
|
def parent_author(self):
|
|
316
322
|
if "parent_author" in self:
|
nectar/py.typed
ADDED
|
File without changes
|
nectar/version.py
CHANGED
nectarapi/node.py
CHANGED
|
@@ -158,11 +158,11 @@ class Nodes(list):
|
|
|
158
158
|
if showMsg:
|
|
159
159
|
if call_retry:
|
|
160
160
|
log.warning(
|
|
161
|
-
"Retry RPC Call on node: %s (%d/%d)
|
|
161
|
+
"Retry RPC Call on node: %s (%d/%d)" % (self.url, cnt, self.num_retries_call)
|
|
162
162
|
)
|
|
163
163
|
else:
|
|
164
164
|
log.warning(
|
|
165
|
-
"Lost connection or internal error on node: %s (%d/%d)
|
|
165
|
+
"Lost connection or internal error on node: %s (%d/%d)"
|
|
166
166
|
% (self.url, cnt, self.num_retries)
|
|
167
167
|
)
|
|
168
168
|
if not sleep:
|
|
@@ -174,5 +174,5 @@ class Nodes(list):
|
|
|
174
174
|
else:
|
|
175
175
|
sleeptime = 10
|
|
176
176
|
if sleeptime:
|
|
177
|
-
log.warning("Retrying in %d seconds
|
|
177
|
+
log.warning("Retrying in %d seconds" % sleeptime)
|
|
178
178
|
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
|