hive-nectar 0.0.6__py3-none-any.whl → 0.0.9__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 (56) hide show
  1. {hive_nectar-0.0.6.dist-info → hive_nectar-0.0.9.dist-info}/METADATA +5 -3
  2. hive_nectar-0.0.9.dist-info/RECORD +91 -0
  3. nectar/__init__.py +1 -0
  4. nectar/account.py +44 -48
  5. nectar/amount.py +6 -11
  6. nectar/block.py +8 -9
  7. nectar/blockchain.py +4 -5
  8. nectar/blockchaininstance.py +4 -4
  9. nectar/blockchainobject.py +5 -6
  10. nectar/blurt.py +3 -4
  11. nectar/cli.py +14 -14
  12. nectar/comment.py +10 -11
  13. nectar/community.py +527 -181
  14. nectar/conveyor.py +3 -4
  15. nectar/exceptions.py +30 -24
  16. nectar/hive.py +3 -4
  17. nectar/hivesigner.py +2 -2
  18. nectar/imageuploader.py +2 -3
  19. nectar/nodelist.py +83 -7
  20. nectar/price.py +6 -13
  21. nectar/rc.py +1 -2
  22. nectar/steem.py +3 -4
  23. nectar/storage.py +3 -4
  24. nectar/transactionbuilder.py +12 -3
  25. nectar/version.py +1 -1
  26. nectar/vote.py +8 -9
  27. nectar/wallet.py +1 -1
  28. nectarapi/__init__.py +1 -0
  29. nectarapi/exceptions.py +20 -14
  30. nectarapi/version.py +1 -1
  31. nectarbase/__init__.py +1 -0
  32. nectarbase/ledgertransactions.py +2 -3
  33. nectarbase/memo.py +9 -10
  34. nectarbase/objects.py +4 -5
  35. nectarbase/operations.py +3 -7
  36. nectarbase/version.py +1 -1
  37. nectargraphenebase/__init__.py +1 -1
  38. nectargraphenebase/account.py +16 -37
  39. nectargraphenebase/base58.py +5 -8
  40. nectargraphenebase/bip32.py +5 -11
  41. nectargraphenebase/bip38.py +6 -7
  42. nectargraphenebase/ecdsasig.py +32 -37
  43. nectargraphenebase/objects.py +6 -7
  44. nectargraphenebase/operations.py +2 -0
  45. nectargraphenebase/signedtransactions.py +10 -9
  46. nectargraphenebase/types.py +9 -19
  47. nectargraphenebase/unsignedtransactions.py +21 -28
  48. nectargraphenebase/version.py +1 -1
  49. nectarstorage/__init__.py +21 -1
  50. nectarstorage/masterpassword.py +2 -3
  51. nectarstorage/sqlite.py +1 -1
  52. hive_nectar-0.0.6.dist-info/RECORD +0 -92
  53. nectargraphenebase/py23.py +0 -38
  54. {hive_nectar-0.0.6.dist-info → hive_nectar-0.0.9.dist-info}/WHEEL +0 -0
  55. {hive_nectar-0.0.6.dist-info → hive_nectar-0.0.9.dist-info}/entry_points.txt +0 -0
  56. {hive_nectar-0.0.6.dist-info → hive_nectar-0.0.9.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1,38 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import sys
3
-
4
- PY2 = sys.version_info[0] == 2
5
- PY3 = sys.version_info[0] == 3
6
-
7
-
8
- if PY3:
9
- bytes_types = (bytes,)
10
- string_types = (str,)
11
- integer_types = (int,)
12
- text_type = str
13
- binary_type = bytes
14
- else:
15
- bytes_types = (bytes,)
16
- string_types = (basestring,) # noqa: F821
17
- integer_types = (int, long) # noqa: F821
18
- text_type = unicode # noqa: F821
19
- binary_type = str
20
-
21
-
22
- def py23_bytes(item=None, encoding=None):
23
- if item is None:
24
- return b""
25
- if hasattr(item, "__bytes__"):
26
- return item.__bytes__()
27
- else:
28
- if encoding:
29
- return bytes(item, encoding)
30
- else:
31
- return bytes(item)
32
-
33
-
34
- def py23_chr(item):
35
- if PY2:
36
- return chr(item)
37
- else:
38
- return bytes([item])