hive-nectar 0.0.2__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.

Files changed (86) hide show
  1. hive_nectar-0.0.2.dist-info/METADATA +182 -0
  2. hive_nectar-0.0.2.dist-info/RECORD +86 -0
  3. hive_nectar-0.0.2.dist-info/WHEEL +4 -0
  4. hive_nectar-0.0.2.dist-info/entry_points.txt +2 -0
  5. hive_nectar-0.0.2.dist-info/licenses/LICENSE.txt +23 -0
  6. nectar/__init__.py +32 -0
  7. nectar/account.py +4371 -0
  8. nectar/amount.py +475 -0
  9. nectar/asciichart.py +270 -0
  10. nectar/asset.py +82 -0
  11. nectar/block.py +446 -0
  12. nectar/blockchain.py +1178 -0
  13. nectar/blockchaininstance.py +2284 -0
  14. nectar/blockchainobject.py +221 -0
  15. nectar/blurt.py +563 -0
  16. nectar/cli.py +6285 -0
  17. nectar/comment.py +1217 -0
  18. nectar/community.py +513 -0
  19. nectar/constants.py +111 -0
  20. nectar/conveyor.py +309 -0
  21. nectar/discussions.py +1709 -0
  22. nectar/exceptions.py +149 -0
  23. nectar/hive.py +546 -0
  24. nectar/hivesigner.py +420 -0
  25. nectar/imageuploader.py +72 -0
  26. nectar/instance.py +129 -0
  27. nectar/market.py +1013 -0
  28. nectar/memo.py +449 -0
  29. nectar/message.py +357 -0
  30. nectar/nodelist.py +444 -0
  31. nectar/price.py +557 -0
  32. nectar/profile.py +65 -0
  33. nectar/rc.py +308 -0
  34. nectar/snapshot.py +726 -0
  35. nectar/steem.py +582 -0
  36. nectar/storage.py +53 -0
  37. nectar/transactionbuilder.py +622 -0
  38. nectar/utils.py +545 -0
  39. nectar/version.py +2 -0
  40. nectar/vote.py +557 -0
  41. nectar/wallet.py +472 -0
  42. nectar/witness.py +617 -0
  43. nectarapi/__init__.py +11 -0
  44. nectarapi/exceptions.py +123 -0
  45. nectarapi/graphenerpc.py +589 -0
  46. nectarapi/node.py +178 -0
  47. nectarapi/noderpc.py +229 -0
  48. nectarapi/rpcutils.py +97 -0
  49. nectarapi/version.py +2 -0
  50. nectarbase/__init__.py +14 -0
  51. nectarbase/ledgertransactions.py +75 -0
  52. nectarbase/memo.py +243 -0
  53. nectarbase/objects.py +429 -0
  54. nectarbase/objecttypes.py +22 -0
  55. nectarbase/operationids.py +102 -0
  56. nectarbase/operations.py +1297 -0
  57. nectarbase/signedtransactions.py +48 -0
  58. nectarbase/transactions.py +11 -0
  59. nectarbase/version.py +2 -0
  60. nectargrapheneapi/__init__.py +6 -0
  61. nectargraphenebase/__init__.py +27 -0
  62. nectargraphenebase/account.py +846 -0
  63. nectargraphenebase/aes.py +52 -0
  64. nectargraphenebase/base58.py +192 -0
  65. nectargraphenebase/bip32.py +494 -0
  66. nectargraphenebase/bip38.py +134 -0
  67. nectargraphenebase/chains.py +149 -0
  68. nectargraphenebase/dictionary.py +3 -0
  69. nectargraphenebase/ecdsasig.py +326 -0
  70. nectargraphenebase/objects.py +123 -0
  71. nectargraphenebase/objecttypes.py +6 -0
  72. nectargraphenebase/operationids.py +3 -0
  73. nectargraphenebase/operations.py +23 -0
  74. nectargraphenebase/prefix.py +11 -0
  75. nectargraphenebase/py23.py +38 -0
  76. nectargraphenebase/signedtransactions.py +201 -0
  77. nectargraphenebase/types.py +419 -0
  78. nectargraphenebase/unsignedtransactions.py +283 -0
  79. nectargraphenebase/version.py +2 -0
  80. nectarstorage/__init__.py +38 -0
  81. nectarstorage/base.py +306 -0
  82. nectarstorage/exceptions.py +16 -0
  83. nectarstorage/interfaces.py +237 -0
  84. nectarstorage/masterpassword.py +239 -0
  85. nectarstorage/ram.py +30 -0
  86. nectarstorage/sqlite.py +334 -0
@@ -0,0 +1,123 @@
1
+ from __future__ import absolute_import, division, print_function, unicode_literals
2
+
3
+ import re
4
+ from builtins import str
5
+
6
+
7
+ def decodeRPCErrorMsg(e):
8
+ """Helper function to decode the raised Exception and give it a
9
+ python Exception class
10
+ """
11
+ found = re.search(
12
+ ("(10 assert_exception: Assert Exception\n|3030000 tx_missing_posting_auth).*: (.*)\n"),
13
+ str(e),
14
+ flags=re.M,
15
+ )
16
+ if found:
17
+ return found.group(2).strip()
18
+ else:
19
+ return str(e)
20
+
21
+
22
+ class UnauthorizedError(Exception):
23
+ """UnauthorizedError Exception."""
24
+
25
+ pass
26
+
27
+
28
+ class RPCConnection(Exception):
29
+ """RPCConnection Exception."""
30
+
31
+ pass
32
+
33
+
34
+ class RPCError(Exception):
35
+ """RPCError Exception."""
36
+
37
+ pass
38
+
39
+
40
+ class RPCErrorDoRetry(Exception):
41
+ """RPCErrorDoRetry Exception."""
42
+
43
+ pass
44
+
45
+
46
+ class NumRetriesReached(Exception):
47
+ """NumRetriesReached Exception."""
48
+
49
+ pass
50
+
51
+
52
+ class CallRetriesReached(Exception):
53
+ """CallRetriesReached Exception. Only for internal use"""
54
+
55
+ pass
56
+
57
+
58
+ class MissingRequiredActiveAuthority(RPCError):
59
+ pass
60
+
61
+
62
+ class UnknownKey(RPCError):
63
+ pass
64
+
65
+
66
+ class NoMethodWithName(RPCError):
67
+ pass
68
+
69
+
70
+ class NoApiWithName(RPCError):
71
+ pass
72
+
73
+
74
+ class FollowApiNotEnabled(RPCError):
75
+ pass
76
+
77
+
78
+ class ApiNotSupported(RPCError):
79
+ pass
80
+
81
+
82
+ class UnhandledRPCError(RPCError):
83
+ pass
84
+
85
+
86
+ class NoAccessApi(RPCError):
87
+ pass
88
+
89
+
90
+ class FilteredItemNotFound(RPCError):
91
+ pass
92
+
93
+
94
+ class InvalidEndpointUrl(Exception):
95
+ pass
96
+
97
+
98
+ class InvalidParameters(Exception):
99
+ pass
100
+
101
+
102
+ class SupportedByHivemind(Exception):
103
+ pass
104
+
105
+
106
+ class UnnecessarySignatureDetected(Exception):
107
+ pass
108
+
109
+
110
+ class WorkingNodeMissing(Exception):
111
+ pass
112
+
113
+
114
+ class TimeoutException(Exception):
115
+ pass
116
+
117
+
118
+ class VotedBeforeWaitTimeReached(Exception):
119
+ pass
120
+
121
+
122
+ class UnknownTransaction(Exception):
123
+ pass