From f166f7fc857c0270f4a684d655a9386c65e49274 Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holger@nahrstaedt.de> Date: Wed, 21 Feb 2018 21:01:30 +0100 Subject: [PATCH] Rename library from steempy to beem --- MANIFEST.in | 6 ++-- Makefile | 2 +- README.rst | 34 +++++++++---------- {steempy => beem}/__init__.py | 0 {steempy => beem}/account.py | 8 ++--- {steempy => beem}/aes.py | 0 {steempy => beem}/amount.py | 6 ++-- {steempy => beem}/asset.py | 6 ++-- {steempy => beem}/block.py | 8 ++--- {steempy => beem}/blockchain.py | 10 +++--- {steempy => beem}/blockchainobject.py | 2 +- {steempy => beem}/comment.py | 0 {steempy => beem}/discussions.py | 0 {steempy => beem}/exceptions.py | 0 {steempy => beem}/instance.py | 2 +- {steempy => beem}/market.py | 4 +-- {steempy => beem}/memo.py | 16 ++++----- {steempy => beem}/message.py | 6 ++-- {steempy => beem}/notify.py | 16 ++++----- {steempy => beem}/price.py | 18 +++++----- {steempy => beem}/steem.py | 24 ++++++------- {steempy => beem}/storage.py | 6 ++-- {steempy => beem}/transactionbuilder.py | 10 +++--- {steempy => beem}/utils.py | 0 {steempy => beem}/vote.py | 0 {steempy => beem}/wallet.py | 0 {steempy => beem}/witness.py | 0 {steempyapi => beemapi}/__init__.py | 0 {steempyapi => beemapi}/exceptions.py | 0 {steempyapi => beemapi}/steemnoderpc.py | 2 +- {steempyapi => beemapi}/websocket.py | 0 {steempybase => beembase}/__init__.py | 0 {steempybase => beembase}/account.py | 0 {steempybase => beembase}/bip38.py | 0 {steempybase => beembase}/chains.py | 0 {steempybase => beembase}/memo.py | 0 {steempybase => beembase}/objects.py | 2 +- {steempybase => beembase}/objecttypes.py | 0 {steempybase => beembase}/operationids.py | 0 {steempybase => beembase}/operations.py | 0 .../signedtransactions.py | 0 {steempybase => beembase}/transactions.py | 0 docs/account.rst | 6 ++-- docs/amount.rst | 6 ++-- docs/asset.rst | 2 +- docs/block.rst | 4 +-- docs/blockchain.rst | 4 +-- docs/comment.rst | 6 ++-- docs/conf.py | 14 ++++---- docs/configuration.rst | 6 ++-- docs/contribute.rst | 2 +- docs/exceptions.rst | 4 +-- docs/index.rst | 18 +++++----- docs/installation.rst | 8 ++--- docs/instances.rst | 6 ++-- docs/market.rst | 2 +- docs/memo.rst | 10 +++--- docs/notify.rst | 2 +- docs/price.rst | 2 +- docs/steem.rst | 2 +- docs/transactionbuilder.rst | 6 ++-- docs/transactions.rst | 2 +- docs/tutorials.rst | 20 +++++------ docs/utils.rst | 2 +- docs/vote.rst | 4 +-- docs/wallet.rst | 8 ++--- docs/websocket.rst | 8 ++--- docs/websocketrpc.rst | 2 +- docs/witness.rst | 14 ++++---- setup.py | 18 +++++----- tests/test_account.py | 12 +++---- tests/test_aes.py | 2 +- tests/test_amount.py | 8 ++--- tests/test_asset.py | 8 ++--- tests/test_base_objects.py | 8 ++--- tests/test_bip38.py | 4 +-- tests/test_memo.py | 4 +-- tests/test_message.py | 12 +++---- tests/test_objectcache.py | 6 ++-- tests/test_price.py | 10 +++--- tests/test_proposals.py | 6 ++-- tests/test_steem.py | 10 +++--- tests/test_transactions.py | 14 ++++---- tests/test_txbuffers.py | 6 ++-- tests/test_utils.py | 2 +- tests/test_wallet.py | 14 ++++---- tox.ini | 2 +- 87 files changed, 251 insertions(+), 253 deletions(-) rename {steempy => beem}/__init__.py (100%) rename {steempy => beem}/account.py (97%) rename {steempy => beem}/aes.py (100%) rename {steempy => beem}/amount.py (98%) rename {steempy => beem}/asset.py (94%) rename {steempy => beem}/block.py (92%) rename {steempy => beem}/blockchain.py (97%) rename {steempy => beem}/blockchainobject.py (98%) rename {steempy => beem}/comment.py (100%) rename {steempy => beem}/discussions.py (100%) rename {steempy => beem}/exceptions.py (100%) rename {steempy => beem}/instance.py (97%) rename {steempy => beem}/market.py (99%) rename {steempy => beem}/memo.py (89%) rename {steempy => beem}/message.py (96%) rename {steempy => beem}/notify.py (82%) rename {steempy => beem}/price.py (97%) rename {steempy => beem}/steem.py (97%) rename {steempy => beem}/storage.py (99%) rename {steempy => beem}/transactionbuilder.py (97%) rename {steempy => beem}/utils.py (100%) rename {steempy => beem}/vote.py (100%) rename {steempy => beem}/wallet.py (100%) rename {steempy => beem}/witness.py (100%) rename {steempyapi => beemapi}/__init__.py (100%) rename {steempyapi => beemapi}/exceptions.py (100%) rename {steempyapi => beemapi}/steemnoderpc.py (98%) rename {steempyapi => beemapi}/websocket.py (100%) rename {steempybase => beembase}/__init__.py (100%) rename {steempybase => beembase}/account.py (100%) rename {steempybase => beembase}/bip38.py (100%) rename {steempybase => beembase}/chains.py (100%) rename {steempybase => beembase}/memo.py (100%) rename {steempybase => beembase}/objects.py (99%) rename {steempybase => beembase}/objecttypes.py (100%) rename {steempybase => beembase}/operationids.py (100%) rename {steempybase => beembase}/operations.py (100%) rename {steempybase => beembase}/signedtransactions.py (100%) rename {steempybase => beembase}/transactions.py (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 67d24008..28ec6dc9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,9 +5,9 @@ include *.txt include MANIFEST.in # All source files -recursive-include steempy * -recursive-include steempybase * -recursive-include steempyapi * +recursive-include beem * +recursive-include beembase * +recursive-include beemapi * # All documentation recursive-include docs * # recursive-include demo * diff --git a/Makefile b/Makefile index a3a8ac03..f71bacf3 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ clean-pyc: find . -name '*~' -exec rm -f {} + lint: - flake8 steempyapi/ steempybase/ steempy/ + flake8 beemapi/ beembase/ beem/ test: python3 setup.py test diff --git a/README.rst b/README.rst index 253cbdb9..bce7a7ce 100644 --- a/README.rst +++ b/README.rst @@ -1,24 +1,24 @@ -steempy - Unofficial Python 3 Library for Steem +beem - Unofficial Python 3 Library for Steem =============================================== !!!Alpha-State, be carefull!!! steemi is an unofficial python 3 library for steem, which is created new from scratch from https://github.com/xeroc/python-bitshares. -.. image:: https://travis-ci.org/holgern/steempy.svg?branch=master - :target: https://travis-ci.org/holgern/steempy +.. image:: https://travis-ci.org/holgern/beem.svg?branch=master + :target: https://travis-ci.org/holgern/beem .. image:: https://ci.appveyor.com/api/projects/status/lnk5385dv0c2j28l?svg=true - :target: https://ci.appveyor.com/project/holger80/steempy + :target: https://ci.appveyor.com/project/holger80/beem -.. image:: https://circleci.com/gh/holgern/steempy.svg?style=svg - :target: https://circleci.com/gh/holgern/steempy +.. image:: https://circleci.com/gh/holgern/beem.svg?style=svg + :target: https://circleci.com/gh/holgern/beem -.. image:: https://codecov.io/gh/holgern/steempy/branch/master/graph/badge.svg - :target: https://codecov.io/gh/holgern/steempy +.. image:: https://codecov.io/gh/holgern/beem/branch/master/graph/badge.svg + :target: https://codecov.io/gh/holgern/beem -.. image:: https://readthedocs.org/projects/steempy/badge/?version=latest - :target: http://steempy.readthedocs.org/en/latest/?badge=latest +.. image:: https://readthedocs.org/projects/beem/badge/?version=latest + :target: http://beem.readthedocs.org/en/latest/?badge=latest Installation ============ @@ -40,15 +40,15 @@ For OSX, please do the following:: export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS" -Install steempy by pip:: +Install beem by pip:: - pip install -U steempy + pip install -U beem -You can install steempy from this repository if you want the latest +You can install beem from this repository if you want the latest but possibly non-compiling version:: - git clone https://github.com/holgern/steempy.git - cd steempy + git clone https://github.com/holgern/beem.git + cd beem python setup.py build python setup.py install --user @@ -59,7 +59,7 @@ Run tests after install:: Documentation ============= -Documentation is available at http://steempy.readthedocs.io/en/latest/ +Documentation is available at http://beem.readthedocs.io/en/latest/ Changelog ========= @@ -83,7 +83,7 @@ Changelog * Replaced all BitShares by Steem * Flake8 fixed * Unit tests are working -* renamed to steempy +* renamed to beem * Docs fixed * Signing fixed * pysteem: Account, Amount, Asset, Block, Blockchain, Instance, Memo, Message, Notify, Price, Steem, Transactionbuilder, Vote, Witness are working diff --git a/steempy/__init__.py b/beem/__init__.py similarity index 100% rename from steempy/__init__.py rename to beem/__init__.py diff --git a/steempy/account.py b/beem/account.py similarity index 97% rename from steempy/account.py rename to beem/account.py index 8001df1a..ef8241a0 100644 --- a/steempy/account.py +++ b/beem/account.py @@ -1,4 +1,4 @@ -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance from .exceptions import AccountDoesNotExistsException from .blockchainobject import BlockchainObject from .utils import formatTimeString @@ -18,7 +18,7 @@ class Account(BlockchainObject): etc. :returns: Account data :rtype: dictionary - :raises steempy.exceptions.AccountDoesNotExistsException: if account + :raises beem.exceptions.AccountDoesNotExistsException: if account does not exist Instances of this class are dictionaries that come with additional @@ -27,7 +27,7 @@ class Account(BlockchainObject): .. code-block:: python - from steempy.account import Account + from beem.account import Account account = Account("test") print(account) @@ -257,7 +257,7 @@ class Account(BlockchainObject): class AccountUpdate(dict): """ This purpose of this class is to keep track of account updates - as they are pushed through by :class:`steempy.notify.Notify`. + as they are pushed through by :class:`beem.notify.Notify`. Instances of this class are dictionaries and take the following form: diff --git a/steempy/aes.py b/beem/aes.py similarity index 100% rename from steempy/aes.py rename to beem/aes.py diff --git a/steempy/amount.py b/beem/amount.py similarity index 98% rename from steempy/amount.py rename to beem/amount.py index c370cc59..43a22728 100644 --- a/steempy/amount.py +++ b/beem/amount.py @@ -1,4 +1,4 @@ -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance from .asset import Asset @@ -21,14 +21,14 @@ class Amount(dict): * ``args`` can be a dictionary containing ``amount`` and ``asset_id`` * ``args`` can be a dictionary containing ``amount`` and ``asset`` * ``args`` can be a list of a ``float`` and ``str`` (symbol) - * ``args`` can be a list of a ``float`` and a :class:`steempy.asset.Asset` + * ``args`` can be a list of a ``float`` and a :class:`beem.asset.Asset` * ``amount`` and ``asset`` are defined manually An instance is a dictionary and comes with the following keys: * ``amount`` (float) * ``symbol`` (str) - * ``asset`` (instance of :class:`steempy.asset.Asset`) + * ``asset`` (instance of :class:`beem.asset.Asset`) Instances of this class can be used in regular mathematical expressions (``+-*/%``) such as: diff --git a/steempy/asset.py b/beem/asset.py similarity index 94% rename from steempy/asset.py rename to beem/asset.py index 33b45f54..b1f37ec5 100644 --- a/steempy/asset.py +++ b/beem/asset.py @@ -1,6 +1,6 @@ import json -from steempy.account import Account -from steempybase import operations +from beem.account import Account +from beembase import operations from .exceptions import AssetDoesNotExistsException from .blockchainobject import BlockchainObject @@ -12,7 +12,7 @@ class Asset(BlockchainObject): :param str Asset: Symbol name or object id of an asset :param bool lazy: Lazy loading :param bool full: Also obtain bitasset-data and dynamic asset dat - :param steempy.steem.Steem steem_instance: Steem + :param beem.steem.Steem steem_instance: Steem instance :returns: All data of an asset :rtype: dict diff --git a/steempy/block.py b/beem/block.py similarity index 92% rename from steempy/block.py rename to beem/block.py index 1b76eba0..c1d873dc 100644 --- a/steempy/block.py +++ b/beem/block.py @@ -7,7 +7,7 @@ class Block(BlockchainObject): """ Read a single block from the chain :param int block: block number - :param steempy.steem.Steem steem_instance: Steem + :param beem.steem.Steem steem_instance: Steem instance :param bool lazy: Use lazy loading @@ -17,7 +17,7 @@ class Block(BlockchainObject): .. code-block:: python - from steempy.block import Block + from beem.block import Block block = Block(1) print(block) @@ -51,8 +51,8 @@ class Block(BlockchainObject): def ops_statistics(self, add_to_ops_stat=None): if add_to_ops_stat is None: - import steempybase.operationids - ops_stat = steempybase.operationids.operations.copy() + import beembase.operationids + ops_stat = beembase.operationids.operations.copy() for key in ops_stat: ops_stat[key] = 0 else: diff --git a/steempy/blockchain.py b/beem/blockchain.py similarity index 97% rename from steempy/blockchain.py rename to beem/blockchain.py index e624a089..fd73725b 100644 --- a/steempy/blockchain.py +++ b/beem/blockchain.py @@ -1,14 +1,14 @@ import time from .block import Block -from steempy.instance import shared_steem_instance -from steempybase.operationids import getOperationNameForId +from beem.instance import shared_steem_instance +from beembase.operationids import getOperationNameForId class Blockchain(object): """ This class allows to access the blockchain and read data from it - :param steempy.steem.Steem steem_instance: Steem + :param beem.steem.Steem steem_instance: Steem instance :param str mode: (default) Irreversible block (``irreversible``) or actual head block (``head``) @@ -201,8 +201,8 @@ class Blockchain(object): This call returns a dict with all possible operations and their occurence. """ if add_to_ops_stat is None: - import steempybase.operationids - ops_stat = steempybase.operationids.operations.copy() + import beembase.operationids + ops_stat = beembase.operationids.operations.copy() for key in ops_stat: ops_stat[key] = 0 else: diff --git a/steempy/blockchainobject.py b/beem/blockchainobject.py similarity index 98% rename from steempy/blockchainobject.py rename to beem/blockchainobject.py index 9b6df825..c5f432c5 100644 --- a/steempy/blockchainobject.py +++ b/beem/blockchainobject.py @@ -1,4 +1,4 @@ -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance from datetime import datetime, timedelta import json diff --git a/steempy/comment.py b/beem/comment.py similarity index 100% rename from steempy/comment.py rename to beem/comment.py diff --git a/steempy/discussions.py b/beem/discussions.py similarity index 100% rename from steempy/discussions.py rename to beem/discussions.py diff --git a/steempy/exceptions.py b/beem/exceptions.py similarity index 100% rename from steempy/exceptions.py rename to beem/exceptions.py diff --git a/steempy/instance.py b/beem/instance.py similarity index 97% rename from steempy/instance.py rename to beem/instance.py index cc4eefb9..b50b4fcd 100644 --- a/steempy/instance.py +++ b/beem/instance.py @@ -1,4 +1,4 @@ -import steempy as stm +import beem as stm class SharedInstance(): diff --git a/steempy/market.py b/beem/market.py similarity index 99% rename from steempy/market.py rename to beem/market.py index c2f973e7..7b2b82ce 100644 --- a/steempy/market.py +++ b/beem/market.py @@ -1,4 +1,4 @@ -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance from datetime import datetime, timedelta from .utils import ( formatTimeFromNow, formatTime, formatTimeString, assets_from_string) @@ -6,7 +6,7 @@ from .asset import Asset from .amount import Amount from .price import Price, Order, FilledOrder from .account import Account -from steempybase import operations +from beembase import operations class Market(dict): diff --git a/steempy/memo.py b/beem/memo.py similarity index 89% rename from steempy/memo.py rename to beem/memo.py index c3d81831..58523903 100644 --- a/steempy/memo.py +++ b/beem/memo.py @@ -1,7 +1,7 @@ -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance import random -from steempybase import memo as BtsMemo -from steempybase.account import PrivateKey, PublicKey +from beembase import memo as BtsMemo +from beembase.account import PrivateKey, PublicKey from .account import Account from .exceptions import MissingKeyError, KeyNotFound @@ -9,9 +9,9 @@ from .exceptions import MissingKeyError, KeyNotFound class Memo(object): """ Deals with Memos that are attached to a transfer - :param steempy.account.Account from_account: Account that has sent the memo - :param steempy.account.Account to_account: Account that has received the memo - :param steempy.steem.Steem steem_instance: Steem instance + :param beem.account.Account from_account: Account that has sent the memo + :param beem.account.Account to_account: Account that has received the memo + :param beem.steem.Steem steem_instance: Steem instance A memo is encrypted with a shared secret derived from a private key of the sender and a public key of the receiver. Due to the underlying @@ -21,7 +21,7 @@ class Memo(object): .. code-block:: python - from steempy.memo import Memo + from beem.memo import Memo m = Memo("steemeu", "wallet.xeroc") m.steem.wallet.unlock("secret") enc = (m.encrypt("foobar")) @@ -34,7 +34,7 @@ class Memo(object): .. code-block:: python - from steempy.memo import Memo + from beem.memo import Memo m = Memo() m.steem.wallet.unlock("secret") print(memo.decrypt(op_data["memo"])) diff --git a/steempy/message.py b/beem/message.py similarity index 96% rename from steempy/message.py rename to beem/message.py index 9256167d..c3c43376 100644 --- a/steempy/message.py +++ b/beem/message.py @@ -2,9 +2,9 @@ import re import logging from binascii import hexlify, unhexlify from graphenebase.ecdsa import verify_message, sign_message -from steempybase.account import PublicKey -from steempy.instance import shared_steem_instance -from steempy.account import Account +from beembase.account import PublicKey +from beem.instance import shared_steem_instance +from beem.account import Account from .exceptions import InvalidMessageSignature from .storage import configStorage as config diff --git a/steempy/notify.py b/beem/notify.py similarity index 82% rename from steempy/notify.py rename to beem/notify.py index 523d0b2e..60823177 100644 --- a/steempy/notify.py +++ b/beem/notify.py @@ -1,10 +1,10 @@ import logging from events import Events -from steempyapi.websocket import SteemWebsocket -from steempy.instance import shared_steem_instance -from steempy.blockchain import Blockchain -from steempy.price import Order, FilledOrder, UpdateCallOrder -from steempy.account import AccountUpdate +from beemapi.websocket import SteemWebsocket +from beem.instance import shared_steem_instance +from beem.blockchain import Blockchain +from beem.price import Order, FilledOrder, UpdateCallOrder +from beem.account import AccountUpdate log = logging.getLogger(__name__) # logging.basicConfig(level=logging.DEBUG) @@ -16,14 +16,14 @@ class Notify(Events): :param fnt on_tx: Callback that will be called for each transaction received :param fnt on_block: Callback that will be called for each block received :param fnt on_account: Callback that will be called for changes of the listed accounts - :param steempy.steem.Steem steem_instance: Steem instance + :param beem.steem.Steem steem_instance: Steem instance **Example** .. code-block:: python from pprint import pprint - from steempy.notify import Notify + from beem.notify import Notify notify = Notify( accounts=["test"], @@ -67,7 +67,7 @@ class Notify(Events): def process_account(self, message): """ This is used for processing of account Updates. It will - return instances of :class:steempy.account.AccountUpdate` + return instances of :class:beem.account.AccountUpdate` """ self.on_account(AccountUpdate( message, diff --git a/steempy/price.py b/beem/price.py similarity index 97% rename from steempy/price.py rename to beem/price.py index bddd22cc..1dac290f 100644 --- a/steempy/price.py +++ b/beem/price.py @@ -1,5 +1,5 @@ from fractions import Fraction -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance from .exceptions import InvalidAssetException from .account import Account from .amount import Amount @@ -14,7 +14,7 @@ class Price(dict): (quote, base) - each being an instance of :class:`steempy.amount.Amount`. The + each being an instance of :class:`beem.amount.Amount`. The amount themselves define the price. .. note:: @@ -22,23 +22,23 @@ class Price(dict): The price (floating) is derived as ``base/quote`` :param list args: Allows to deal with different representations of a price - :param steempy.asset.Asset base: Base asset - :param steempy.asset.Asset quote: Quote asset - :param steempy.steem.Steem steem_instance: Steem instance + :param beem.asset.Asset base: Base asset + :param beem.asset.Asset quote: Quote asset + :param beem.steem.Steem steem_instance: Steem instance :returns: All data required to represent a price :rtype: dict Way to obtain a proper instance: * ``args`` is a str with a price and two assets - * ``args`` can be a floating number and ``base`` and ``quote`` being instances of :class:`steempy.asset.Asset` + * ``args`` can be a floating number and ``base`` and ``quote`` being instances of :class:`beem.asset.Asset` * ``args`` can be a floating number and ``base`` and ``quote`` being instances of ``str`` * ``args`` can be dict with keys ``price``, ``base``, and ``quote`` (*graphene balances*) * ``args`` can be dict with keys ``base`` and ``quote`` * ``args`` can be dict with key ``receives`` (filled orders) - * ``args`` being a list of ``[quote, base]`` both being instances of :class:`steempy.amount.Amount` + * ``args`` being a list of ``[quote, base]`` both being instances of :class:`beem.amount.Amount` * ``args`` being a list of ``[quote, base]`` both being instances of ``str`` (``amount symbol``) - * ``base`` and ``quote`` being instances of :class:`steempy.asset.Amount` + * ``base`` and ``quote`` being instances of :class:`beem.asset.Amount` This allows instanciations like: @@ -56,7 +56,7 @@ class Price(dict): .. code-block:: python - >>> from steempy.price import Price + >>> from beem.price import Price >>> Price("0.3314 SBD/STEEM") * 2 0.662600000 SBD/STEEM diff --git a/steempy/steem.py b/beem/steem.py similarity index 97% rename from steempy/steem.py rename to beem/steem.py index a7443860..c5c6ea03 100644 --- a/steempy/steem.py +++ b/beem/steem.py @@ -2,10 +2,10 @@ import json import logging from datetime import datetime, timedelta -from steempyapi.steemnoderpc import SteemNodeRPC -from steempyapi.exceptions import NoAccessApi -from steempybase.account import PrivateKey, PublicKey -from steempybase import transactions, operations +from beemapi.steemnoderpc import SteemNodeRPC +from beemapi.exceptions import NoAccessApi +from beembase.account import PrivateKey, PublicKey +from beembase import transactions, operations from .asset import Asset from .account import Account from .amount import Amount @@ -83,7 +83,7 @@ class Steem(object): .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() print(steem.info()) @@ -179,7 +179,7 @@ class Steem(object): @property def chain_params(self): if self.offline: - from steempybase.chains import known_chains + from beembase.chains import known_chains return known_chains["STEEM"] else: return self.rpc.chain_params @@ -221,8 +221,8 @@ class Steem(object): posting permission. Neither can you use different accounts for different operations! - ... note:: This uses ``steempy.txbuffer`` as instance of - :class:`steempy.transactionbuilder.TransactionBuilder`. + ... note:: This uses ``beem.txbuffer`` as instance of + :class:`beem.transactionbuilder.TransactionBuilder`. You may want to use your own txbuffer """ if "append_to" in kwargs and kwargs["append_to"]: @@ -295,10 +295,10 @@ class Steem(object): # ------------------------------------------------------------------------- def newWallet(self, pwd): """ Create a new wallet. This method is basically only calls - :func:`steempy.wallet.create`. + :func:`beem.wallet.create`. :param str pwd: Password to use for the new wallet - :raises steempy.exceptions.WalletExists: if there is already a + :raises beem.exceptions.WalletExists: if there is already a wallet created """ return self.wallet.create(pwd) @@ -404,7 +404,7 @@ class Steem(object): """ Create new account on Steem The brainkey/password can be used to recover all generated keys - (see `steempybase.account` for more details. + (see `beembase.account` for more details. By default, this call will use ``default_account`` to register a new name ``account_name`` with all keys being @@ -465,7 +465,7 @@ class Steem(object): # creator = Account(creator, steem_instance=self) " Generate new keys from password" - from steempybase.account import PasswordKey, PublicKey + from beembase.account import PasswordKey, PublicKey if password: active_key = PasswordKey(account_name, password, role="active") owner_key = PasswordKey(account_name, password, role="owner") diff --git a/steempy/storage.py b/beem/storage.py similarity index 99% rename from steempy/storage.py rename to beem/storage.py index 730a1281..3686a229 100644 --- a/steempy/storage.py +++ b/beem/storage.py @@ -37,9 +37,9 @@ class DataDir(object): Furthermore, it offers an interface to generated backups in the `backups/` directory every now and then. """ - appname = "steempy" - appauthor = "steempy" - storageDatabase = "steempy.sqlite" + appname = "beem" + appauthor = "beem" + storageDatabase = "beem.sqlite" data_dir = user_data_dir(appname, appauthor) sqlDataBaseFile = os.path.join(data_dir, storageDatabase) diff --git a/steempy/transactionbuilder.py b/beem/transactionbuilder.py similarity index 97% rename from steempy/transactionbuilder.py rename to beem/transactionbuilder.py index d7505ade..7a8e1e14 100644 --- a/steempy/transactionbuilder.py +++ b/beem/transactionbuilder.py @@ -1,15 +1,15 @@ from .account import Account -from steempybase.objects import Operation -from steempybase.account import PrivateKey, PublicKey -from steempybase.signedtransactions import Signed_Transaction -from steempybase import transactions, operations +from beembase.objects import Operation +from beembase.account import PrivateKey, PublicKey +from beembase.signedtransactions import Signed_Transaction +from beembase import transactions, operations from .exceptions import ( InsufficientAuthorityError, MissingKeyError, InvalidWifError, WalletLocked ) -from steempy.instance import shared_steem_instance +from beem.instance import shared_steem_instance import logging log = logging.getLogger(__name__) diff --git a/steempy/utils.py b/beem/utils.py similarity index 100% rename from steempy/utils.py rename to beem/utils.py diff --git a/steempy/vote.py b/beem/vote.py similarity index 100% rename from steempy/vote.py rename to beem/vote.py diff --git a/steempy/wallet.py b/beem/wallet.py similarity index 100% rename from steempy/wallet.py rename to beem/wallet.py diff --git a/steempy/witness.py b/beem/witness.py similarity index 100% rename from steempy/witness.py rename to beem/witness.py diff --git a/steempyapi/__init__.py b/beemapi/__init__.py similarity index 100% rename from steempyapi/__init__.py rename to beemapi/__init__.py diff --git a/steempyapi/exceptions.py b/beemapi/exceptions.py similarity index 100% rename from steempyapi/exceptions.py rename to beemapi/exceptions.py diff --git a/steempyapi/steemnoderpc.py b/beemapi/steemnoderpc.py similarity index 98% rename from steempyapi/steemnoderpc.py rename to beemapi/steemnoderpc.py index 79bc81a6..3da3a00b 100644 --- a/steempyapi/steemnoderpc.py +++ b/beemapi/steemnoderpc.py @@ -7,7 +7,7 @@ import json import time from itertools import cycle from grapheneapi.graphenewsrpc import GrapheneWebsocketRPC -from steempybase.chains import known_chains +from beembase.chains import known_chains from . import exceptions import logging log = logging.getLogger(__name__) diff --git a/steempyapi/websocket.py b/beemapi/websocket.py similarity index 100% rename from steempyapi/websocket.py rename to beemapi/websocket.py diff --git a/steempybase/__init__.py b/beembase/__init__.py similarity index 100% rename from steempybase/__init__.py rename to beembase/__init__.py diff --git a/steempybase/account.py b/beembase/account.py similarity index 100% rename from steempybase/account.py rename to beembase/account.py diff --git a/steempybase/bip38.py b/beembase/bip38.py similarity index 100% rename from steempybase/bip38.py rename to beembase/bip38.py diff --git a/steempybase/chains.py b/beembase/chains.py similarity index 100% rename from steempybase/chains.py rename to beembase/chains.py diff --git a/steempybase/memo.py b/beembase/memo.py similarity index 100% rename from steempybase/memo.py rename to beembase/memo.py diff --git a/steempybase/objects.py b/beembase/objects.py similarity index 99% rename from steempybase/objects.py rename to beembase/objects.py index 10238b62..2f525706 100644 --- a/steempybase/objects.py +++ b/beembase/objects.py @@ -81,7 +81,7 @@ class Operation(GPHOperation): super(Operation, self).__init__(*args, **kwargs) def _getklass(self, name): - module = __import__("steempybase.operations", fromlist=["operations"]) + module = __import__("beembase.operations", fromlist=["operations"]) class_ = getattr(module, name) return class_ diff --git a/steempybase/objecttypes.py b/beembase/objecttypes.py similarity index 100% rename from steempybase/objecttypes.py rename to beembase/objecttypes.py diff --git a/steempybase/operationids.py b/beembase/operationids.py similarity index 100% rename from steempybase/operationids.py rename to beembase/operationids.py diff --git a/steempybase/operations.py b/beembase/operations.py similarity index 100% rename from steempybase/operations.py rename to beembase/operations.py diff --git a/steempybase/signedtransactions.py b/beembase/signedtransactions.py similarity index 100% rename from steempybase/signedtransactions.py rename to beembase/signedtransactions.py diff --git a/steempybase/transactions.py b/beembase/transactions.py similarity index 100% rename from steempybase/transactions.py rename to beembase/transactions.py diff --git a/docs/account.rst b/docs/account.rst index 20826dbe..aa7c9cd5 100644 --- a/docs/account.rst +++ b/docs/account.rst @@ -5,13 +5,13 @@ Obtaining data of an account. .. code-block:: python - from steempy.account import Account + from beem.account import Account account = Account("test") print(account) print(account.balances) -.. autoclass:: steempy.account.Account +.. autoclass:: beem.account.Account :members: -.. autoclass:: steempy.account.AccountUpdate +.. autoclass:: beem.account.AccountUpdate :members: diff --git a/docs/amount.rst b/docs/amount.rst index 2412943d..a982990a 100644 --- a/docs/amount.rst +++ b/docs/amount.rst @@ -5,8 +5,8 @@ For the sake of easier handling of Assets on the blockchain .. code-block:: python - from steempy.amount import Amount - from steempy.asset import Asset + from beem.amount import Amount + from beem.asset import Asset a = Amount("1 USD") b = Amount(1, "USD") c = Amount("20", Asset("USD")) @@ -15,5 +15,5 @@ For the sake of easier handling of Assets on the blockchain a += b a /= 2.0 -.. autoclass:: steempy.amount.Amount +.. autoclass:: beem.amount.Amount :members: diff --git a/docs/asset.rst b/docs/asset.rst index f4b28880..b9e1b0d4 100644 --- a/docs/asset.rst +++ b/docs/asset.rst @@ -1,5 +1,5 @@ Asset ~~~~~~ -.. autoclass:: steempy.asset.Asset +.. autoclass:: beem.asset.Asset :members: diff --git a/docs/block.rst b/docs/block.rst index 1819eadb..ccc63c9b 100644 --- a/docs/block.rst +++ b/docs/block.rst @@ -5,9 +5,9 @@ Easily read data in a Block .. code-block:: python - from steempy.block import Block + from beem.block import Block from pprint import pprint pprint(Block(1)) -.. autoclass:: steempy.block.Block +.. autoclass:: beem.block.Block :members: diff --git a/docs/blockchain.rst b/docs/blockchain.rst index 56f986bf..4ee75051 100644 --- a/docs/blockchain.rst +++ b/docs/blockchain.rst @@ -5,7 +5,7 @@ Read blockchain related data- .. code-block:: python - from steempy.blockchain import Blockchain + from beem.blockchain import Blockchain chain = Blockchain() Read current block and blockchain info @@ -29,5 +29,5 @@ Monitor for new blocks .. for operations in chain.ops(): print(operations) -.. autoclass:: steempy.blockchain.Blockchain +.. autoclass:: beem.blockchain.Blockchain :members: diff --git a/docs/comment.rst b/docs/comment.rst index c68ec253..c320d9a1 100644 --- a/docs/comment.rst +++ b/docs/comment.rst @@ -5,13 +5,13 @@ Read data about a Comment/Post .. code-block:: python - from steempy.comment import Comment + from beem.comment import Comment Witness("gtg") -.. autoclass:: steempy.comment.Comment +.. autoclass:: beem.comment.Comment :members: -.. autoclass:: steempy.comment.Comments +.. autoclass:: beem.comment.Comments :members: diff --git a/docs/conf.py b/docs/conf.py index cf0d95bc..d185a839 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# steempy documentation build configuration file, created by +# beem documentation build configuration file, created by # sphinx-quickstart on Fri Jun 5 14:06:38 2015. # # This file is execfile()d with the current directory set to its @@ -48,7 +48,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = 'steempy' +project = 'beem' copyright = '2017, ChainSquad GmbH, 2018, Holger Nahrstaedt' author = 'Holger Nahrstaedt' @@ -202,7 +202,7 @@ html_static_path = ['_static'] #html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = 'steempydoc' +htmlhelp_basename = 'beemdoc' # -- Options for LaTeX output --------------------------------------------- @@ -224,7 +224,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'steempy.tex', 'steempy Documentation', + (master_doc, 'beem.tex', 'beem Documentation', author, 'manual'), ] @@ -254,7 +254,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'steempy', 'steempy Documentation', + (master_doc, 'beem', 'beem Documentation', [author], 1) ] @@ -268,8 +268,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'steempy', 'steempy Documentation', - author, 'steempy', 'One line description of project.', + (master_doc, 'beem', 'beem Documentation', + author, 'beem', 'One line description of project.', 'Miscellaneous'), ] diff --git a/docs/configuration.rst b/docs/configuration.rst index ea9e1240..db9d6b8a 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -15,7 +15,7 @@ You can access those variables like a regular dictionary by using .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() print(steem.config.items()) @@ -26,9 +26,9 @@ can load the configuration directly by using: .. code-block:: python - from steempy.storage import configStorage as config + from beem.storage import configStorage as config API --- -.. autoclass:: steempy.storage.Configuration +.. autoclass:: beem.storage.Configuration :members: diff --git a/docs/contribute.rst b/docs/contribute.rst index db735144..6342ee31 100644 --- a/docs/contribute.rst +++ b/docs/contribute.rst @@ -8,7 +8,7 @@ Repository The *main* repository of python-steem is currently located at: - https://github.com/holgern/steempy + https://github.com/holgern/beem Flow ---- diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 67d0496a..36b2e1f5 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -1,8 +1,8 @@ Exceptions ~~~~~~~~~~ -.. autoclass:: steempy.exceptions +.. autoclass:: beem.exceptions :members: -.. autoclass:: steempyapi.exceptions +.. autoclass:: beemapi.exceptions :members: diff --git a/docs/index.rst b/docs/index.rst index c358cba8..83f62cfe 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,7 +9,7 @@ http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html http://rest-sphinx-memo.readthedocs.org/en/latest/ReST.html -Welcome to steempy's documentation! +Welcome to beem's documentation! =============================================== Steem is a blockchain-based rewards platform for publishers to monetize @@ -23,7 +23,7 @@ content. About this Library ------------------ -The purpose of *steempy* is to simplify development of products and +The purpose of *beem* is to simplify development of products and services that use the Steem blockchain. It comes with * it's own (bip32-encrypted) wallet @@ -51,26 +51,26 @@ Quickstart .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() steem.wallet.unlock("wallet-passphrase") steem.transfer("<to>", "<amount>", "<asset>", "<memo>", account="<from>") .. code-block:: python - from steempy.blockchain import Blockchain + from beem.blockchain import Blockchain blockchain = Blockchain() for op in Blockchain.ops(): print(op) .. code-block:: python - from steempy.block import Block + from beem.block import Block print(Block(1)) .. code-block:: python - from steempy.account import Account + from beem.account import Account account = Account("test") print(account.balances) for h in account.history(): @@ -78,7 +78,7 @@ Quickstart .. code-block:: python - from steempy.market import Market + from beem.market import Market # Not working at the moment # market = Market("STEEM:SBD") # print(market.ticker()) @@ -87,7 +87,7 @@ Quickstart .. code-block:: python - from steempy.dex import Dex + from beem.dex import Dex # not working at the moment # dex = Dex() # dex.steem.wallet.unlock("wallet-passphrase") @@ -105,7 +105,7 @@ General contribute support -steempy Libraries +beem Libraries -------------------------- .. toctree:: diff --git a/docs/installation.rst b/docs/installation.rst index 833b109f..dae3b2e4 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -10,20 +10,20 @@ Install with `pip3`: :: $ sudo apt-get install libffi-dev libssl-dev python-dev - $ pip3 install steempy + $ pip3 install beem or the with `pip`: :: - $ pip install -U steempy + $ pip install -U beem Manual installation: :: - $ git clone https://github.com/holgern/steempy/ - $ cd steempy + $ git clone https://github.com/holgern/beem/ + $ cd beem $ python setup.py build $ python setup.py install --user diff --git a/docs/instances.rst b/docs/instances.rst index 9b0ef55a..571bd5fa 100644 --- a/docs/instances.rst +++ b/docs/instances.rst @@ -6,11 +6,11 @@ the Objects! .. code-block:: python - from steempy.instance import shared_steem_instance + from beem.instance import shared_steem_instance account = Account("test") # is equivalent with account = Account("test", steem_instance=shared_steem_instance()) -.. automethod:: steempy.instance.shared_steem_instance -.. automethod:: steempy.instance.set_shared_steem_instance +.. automethod:: beem.instance.shared_steem_instance +.. automethod:: beem.instance.set_shared_steem_instance diff --git a/docs/market.rst b/docs/market.rst index 722fe7b5..3a0ec86b 100644 --- a/docs/market.rst +++ b/docs/market.rst @@ -1,5 +1,5 @@ Market ~~~~~~~ -.. autoclass:: steempy.market.Market +.. autoclass:: beem.market.Market :members: diff --git a/docs/memo.rst b/docs/memo.rst index d39e1f05..6a287ce6 100644 --- a/docs/memo.rst +++ b/docs/memo.rst @@ -58,8 +58,8 @@ for the corresponding accounts. .. code-block:: python - from steempy.memo import Memo - from steempy.account import Account + from beem.memo import Memo + from beem.account import Account memoObj = Memo( from_account=Account(from_account), @@ -73,8 +73,8 @@ Decoding of a received memo .. code-block:: python from getpass import getpass - from steempy.block import Block - from steempy.memo import Memo + from beem.block import Block + from beem.memo import Memo # Obtain a transfer from the blockchain block = Block(23755086) # block @@ -96,5 +96,5 @@ Decoding of a received memo API ### -.. automodule:: steempybase.memo +.. automodule:: beembase.memo :members: diff --git a/docs/notify.rst b/docs/notify.rst index f7601959..cc6945c9 100644 --- a/docs/notify.rst +++ b/docs/notify.rst @@ -4,5 +4,5 @@ Notify This modules allows yout to be notified of events taking place on the blockchain. -.. autoclass:: steempy.notify.Notify +.. autoclass:: beem.notify.Notify :members: diff --git a/docs/price.rst b/docs/price.rst index baafefd0..b10a1b59 100644 --- a/docs/price.rst +++ b/docs/price.rst @@ -1,5 +1,5 @@ Price ~~~~~~ -.. autoclass:: steempy.price.Price +.. autoclass:: beem.price.Price :members: diff --git a/docs/steem.rst b/docs/steem.rst index b7e8cf60..7db40e7c 100644 --- a/docs/steem.rst +++ b/docs/steem.rst @@ -7,5 +7,5 @@ the related blockchain technology and cryptography. This library can be used to do anything that is allowed according to the Steem blockchain protocol. -.. autoclass:: steempy.steem.Steem +.. autoclass:: beem.steem.Steem :members: diff --git a/docs/transactionbuilder.rst b/docs/transactionbuilder.rst index 146e34f9..4f20f427 100644 --- a/docs/transactionbuilder.rst +++ b/docs/transactionbuilder.rst @@ -5,8 +5,8 @@ To build your own transactions and sign them .. code-block:: python - from steempy.transactionbuilder import TransactionBuilder - from steempybase.operations import Transfer + from beem.transactionbuilder import TransactionBuilder + from beembase.operations import Transfer tx = TransactionBuilder() tx.appendOps(Transfer(**{ "from": "test", @@ -18,5 +18,5 @@ To build your own transactions and sign them tx.sign() tx.broadcast() -.. autoclass:: steempy.transactionbuilder.TransactionBuilder +.. autoclass:: beem.transactionbuilder.TransactionBuilder :members: diff --git a/docs/transactions.rst b/docs/transactions.rst index a124e7c9..f838aa85 100644 --- a/docs/transactions.rst +++ b/docs/transactions.rst @@ -16,7 +16,7 @@ We load the class for manual transaction construction via: .. code-block:: python - from steempybase import transactions, operations + from beembase import transactions, operations Construction ############ diff --git a/docs/tutorials.rst b/docs/tutorials.rst index 3559569d..db41326f 100644 --- a/docs/tutorials.rst +++ b/docs/tutorials.rst @@ -14,7 +14,7 @@ executed in the same order as they are added to the transaction. .. code-block:: python from pprint import pprint - from steempy import Steem + from beem import Steem testnet = Steem( "wss://testnet.steem.vc", @@ -43,7 +43,7 @@ attribute: .. code-block:: python from pprint import pprint - from steempy import Steem + from beem import Steem testnet = Steem( "wss://testnet.steem.vc", @@ -57,10 +57,10 @@ Simple Sell Script .. code-block:: python - from steempy import Steem - from steempy.market import Market - from steempy.price import Price - from steempy.amount import Amount + from beem import Steem + from beem.market import Market + from beem.price import Price + from beem.amount import Amount # # Instanciate Steem (pick network via API node) @@ -100,10 +100,10 @@ Sell at a timely rate .. code-block:: python import threading - from steempy import Steem - from steempy.market import Market - from steempy.price import Price - from steempy.amount import Amount + from beem import Steem + from beem.market import Market + from beem.price import Price + from beem.amount import Amount def sell(): diff --git a/docs/utils.rst b/docs/utils.rst index 190a5d33..f2962844 100644 --- a/docs/utils.rst +++ b/docs/utils.rst @@ -1,5 +1,5 @@ Utilities ~~~~~~~~~~~~~~~~~~~ -.. autoclass:: steempy.utils +.. autoclass:: beem.utils :members: diff --git a/docs/vote.rst b/docs/vote.rst index 08e50875..e1fbf2f0 100644 --- a/docs/vote.rst +++ b/docs/vote.rst @@ -5,10 +5,10 @@ Read data about a vote .. code-block:: python - from steempy.vote import Vote + from beem.vote import Vote Witness("gtg") -.. autoclass:: steempy.vote.Vote +.. autoclass:: beem.vote.Vote :members: diff --git a/docs/wallet.rst b/docs/wallet.rst index 208a7ff8..f6092fae 100644 --- a/docs/wallet.rst +++ b/docs/wallet.rst @@ -8,7 +8,7 @@ A new wallet can be created by using: .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() steem.wallet.create("supersecret-passphrase") @@ -21,7 +21,7 @@ The wallet can be unlocked for signing using .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() steem.wallet.unlock("supersecret-passphrase") @@ -34,7 +34,7 @@ A private key can be added by using the .. code-block:: python - from steempy import Steem + from beem import Steem steem = Steem() steem.wallet.unlock("supersecret-passphrase") steem.wallet.addPrivateKey("5xxxxxxxxxxxxxxxxxxxx") @@ -45,5 +45,5 @@ A private key can be added by using the API --- -.. autoclass:: steempy.wallet.Wallet +.. autoclass:: beem.wallet.Wallet :members: diff --git a/docs/websocket.rst b/docs/websocket.rst index 5d44fc67..f13e69af 100644 --- a/docs/websocket.rst +++ b/docs/websocket.rst @@ -8,21 +8,19 @@ node. .. code-block:: python from pprint import pprint - from steempyapi.websocket import SteemWebsocket + from beemapi.websocket import SteemWebsocket ws = SteemWebsocket( "wss://gtg.steem.house:8090", accounts=["test"], - # on_market=pprint, - # on_block=print, - on_account=print, + on_block=print, ) ws.run_forever() Defintion ========= -.. autoclass:: steempyapi.websocket.SteemWebsocket +.. autoclass:: beemapi.websocket.SteemWebsocket :members: :undoc-members: :private-members: diff --git a/docs/websocketrpc.rst b/docs/websocketrpc.rst index af242b11..ce6b0aa1 100644 --- a/docs/websocketrpc.rst +++ b/docs/websocketrpc.rst @@ -7,5 +7,5 @@ websockets. Defintion ========= -.. autoclass:: steempyapi.steemnoderpc.SteemNodeRPC +.. autoclass:: beemapi.steemnoderpc.SteemNodeRPC :members: rpcexec, __getattr__ diff --git a/docs/witness.rst b/docs/witness.rst index f3260776..55458502 100644 --- a/docs/witness.rst +++ b/docs/witness.rst @@ -5,24 +5,24 @@ Read data about a witness .. code-block:: python - from steempy.witness import Witness + from beem.witness import Witness Witness("gtg") -.. autoclass:: steempy.witness.Witness +.. autoclass:: beem.witness.Witness :members: -.. autoclass:: steempy.witness.Witnesses +.. autoclass:: beem.witness.Witnesses :members: -.. autoclass:: steempy.witness.WitnessesVotedByAccount +.. autoclass:: beem.witness.WitnessesVotedByAccount :members: -.. autoclass:: steempy.witness.WitnessesRankedByVote +.. autoclass:: beem.witness.WitnessesRankedByVote :members: -.. autoclass:: steempy.witness.WitnessesByIds +.. autoclass:: beem.witness.WitnessesByIds :members: -.. autoclass:: steempy.witness.LookupWitnesses +.. autoclass:: beem.witness.LookupWitnesses :members: diff --git a/setup.py b/setup.py index d51e992b..7607fd4a 100755 --- a/setup.py +++ b/setup.py @@ -29,26 +29,26 @@ version = '%(version)s' if __name__ == '__main__': # Rewrite the version file everytime - write_version_py('steempy/version.py') - write_version_py('steempybase/version.py') - write_version_py('steempyapi/version.py') + write_version_py('beem/version.py') + write_version_py('beembase/version.py') + write_version_py('beemapi/version.py') setup( - name='steempy', + name='beem', version=VERSION, description='Unofficial Python library for STEEM', long_description=open('README.rst').read(), - download_url='https://github.com/holgern/steempy/tarball/' + VERSION, + download_url='https://github.com/holgern/beem/tarball/' + VERSION, author='Holger Nahrstaedt', author_email='holger@nahrstaedt.de', maintainer='Holger Nahrstaedt', maintainer_email='holger@nahrstaedt.de', - url='http://www.github.com/holgern/steempy', + url='http://www.github.com/holgern/beem', keywords=['steem', 'library', 'api', 'rpc'], packages=[ - "steempy", - "steempyapi", - "steempybase" + "beem", + "beemapi", + "beembase" ], classifiers=[ 'License :: OSI Approved :: MIT License', diff --git a/tests/test_account.py b/tests/test_account.py index 71b9397b..34eead44 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -1,12 +1,12 @@ import unittest import mock from pprint import pprint -from steempy import Steem, exceptions -from steempy.account import Account -from steempy.amount import Amount -from steempy.asset import Asset -from steempy.instance import set_shared_steem_instance -from steempybase.operationids import getOperationNameForId +from beem import Steem, exceptions +from beem.account import Account +from beem.amount import Amount +from beem.asset import Asset +from beem.instance import set_shared_steem_instance +from beembase.operationids import getOperationNameForId wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", diff --git a/tests/test_aes.py b/tests/test_aes.py index 6f04fcba..fc770a6c 100644 --- a/tests/test_aes.py +++ b/tests/test_aes.py @@ -3,7 +3,7 @@ import random import unittest import base64 from pprint import pprint -from steempy.aes import AESCipher +from beem.aes import AESCipher class Testcases(unittest.TestCase): diff --git a/tests/test_amount.py b/tests/test_amount.py index be447fdc..06b6d8ec 100644 --- a/tests/test_amount.py +++ b/tests/test_amount.py @@ -1,8 +1,8 @@ import unittest -from steempy import Steem -from steempy.amount import Amount -from steempy.asset import Asset -from steempy.instance import set_shared_steem_instance, SharedInstance +from beem import Steem +from beem.amount import Amount +from beem.asset import Asset +from beem.instance import set_shared_steem_instance, SharedInstance nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://steemd.minnowsupportproject.org"] diff --git a/tests/test_asset.py b/tests/test_asset.py index 8bc3b916..7f7e2054 100644 --- a/tests/test_asset.py +++ b/tests/test_asset.py @@ -1,8 +1,8 @@ import unittest -from steempy import Steem -from steempy.asset import Asset -from steempy.instance import set_shared_steem_instance -from steempy.exceptions import AssetDoesNotExistsException +from beem import Steem +from beem.asset import Asset +from beem.instance import set_shared_steem_instance +from beem.exceptions import AssetDoesNotExistsException nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://steemd.minnowsupportproject.org"] diff --git a/tests/test_base_objects.py b/tests/test_base_objects.py index 67871657..349aeb55 100644 --- a/tests/test_base_objects.py +++ b/tests/test_base_objects.py @@ -1,8 +1,8 @@ import unittest -from steempy import Steem, exceptions -from steempy.instance import set_shared_steem_instance -from steempy.account import Account -from steempy.witness import Witness +from beem import Steem, exceptions +from beem.instance import set_shared_steem_instance +from beem.account import Account +from beem.witness import Witness nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://steemd.minnowsupportproject.org"] diff --git a/tests/test_bip38.py b/tests/test_bip38.py index ccd39c67..13f1948e 100644 --- a/tests/test_bip38.py +++ b/tests/test_bip38.py @@ -1,7 +1,7 @@ import unittest -from steempybase.account import PrivateKey -from steempybase.bip38 import encrypt, decrypt +from beembase.account import PrivateKey +from beembase.bip38 import encrypt, decrypt class Testcases(unittest.TestCase): diff --git a/tests/test_memo.py b/tests/test_memo.py index 4ed409e3..4a58dc87 100644 --- a/tests/test_memo.py +++ b/tests/test_memo.py @@ -1,8 +1,8 @@ import unittest import os from pprint import pprint -from steempybase.account import BrainKey, Address, PublicKey, PrivateKey -from steempybase.memo import ( +from beembase.account import BrainKey, Address, PublicKey, PrivateKey +from beembase.memo import ( get_shared_secret, _pad, _unpad, diff --git a/tests/test_message.py b/tests/test_message.py index 5e577c72..09465d58 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -1,9 +1,9 @@ import unittest import mock -from steempy import Steem -from steempy.message import Message -from steempy.account import Account -from steempy.instance import set_shared_steem_instance +from beem import Steem +from beem.message import Message +from beem.account import Account +from beem.instance import set_shared_steem_instance wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" core_unit = "STM" @@ -35,7 +35,7 @@ class Testcases(unittest.TestCase): }) with mock.patch( - "steempy.account.Account.refresh", + "beem.account.Account.refresh", new=new_refresh ): account = Account("test") @@ -54,7 +54,7 @@ class Testcases(unittest.TestCase): }) with mock.patch( - "steempy.account.Account.refresh", + "beem.account.Account.refresh", new=new_refresh ): Message( diff --git a/tests/test_objectcache.py b/tests/test_objectcache.py index a2254987..b0c77001 100644 --- a/tests/test_objectcache.py +++ b/tests/test_objectcache.py @@ -1,8 +1,8 @@ import time import unittest -from steempy import Steem, exceptions -from steempy.instance import set_shared_steem_instance -from steempy.blockchainobject import ObjectCache +from beem import Steem, exceptions +from beem.instance import set_shared_steem_instance +from beem.blockchainobject import ObjectCache nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://steemd.minnowsupportproject.org"] diff --git a/tests/test_price.py b/tests/test_price.py index 0e57d8f1..4c59f944 100644 --- a/tests/test_price.py +++ b/tests/test_price.py @@ -1,8 +1,8 @@ -from steempy import Steem -from steempy.instance import set_shared_steem_instance -from steempy.amount import Amount -from steempy.price import Price -from steempy.asset import Asset +from beem import Steem +from beem.instance import set_shared_steem_instance +from beem.amount import Amount +from beem.price import Price +from beem.asset import Asset import unittest nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", diff --git a/tests/test_proposals.py b/tests/test_proposals.py index c063b5e2..90d634c4 100644 --- a/tests/test_proposals.py +++ b/tests/test_proposals.py @@ -1,8 +1,8 @@ import unittest from pprint import pprint -from steempy import Steem -from steempybase.operationids import getOperationNameForId -from steempy.instance import set_shared_steem_instance +from beem import Steem +from beembase.operationids import getOperationNameForId +from beem.instance import set_shared_steem_instance wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", diff --git a/tests/test_steem.py b/tests/test_steem.py index 0efd5ca5..a7d5f28f 100644 --- a/tests/test_steem.py +++ b/tests/test_steem.py @@ -3,11 +3,11 @@ import string import unittest import random from pprint import pprint -from steempy import Steem -from steempybase.operationids import getOperationNameForId -from steempy.amount import Amount -from steempybase.account import PrivateKey -from steempy.instance import set_shared_steem_instance +from beem import Steem +from beembase.operationids import getOperationNameForId +from beem.amount import Amount +from beembase.account import PrivateKey +from beem.instance import set_shared_steem_instance wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" core_unit = "STM" diff --git a/tests/test_transactions.py b/tests/test_transactions.py index ac5708ca..8f0864e0 100644 --- a/tests/test_transactions.py +++ b/tests/test_transactions.py @@ -1,4 +1,4 @@ -from steempybase import ( +from beembase import ( transactions, memo, account, @@ -6,12 +6,12 @@ from steempybase import ( objects ) from collections import OrderedDict -from steempybase.objects import Operation -from steempybase.signedtransactions import Signed_Transaction -from steempybase.account import PrivateKey -from steempybase.operationids import getOperationNameForId -from steempy.amount import Amount -from steempy.asset import Asset +from beembase.objects import Operation +from beembase.signedtransactions import Signed_Transaction +from beembase.account import PrivateKey +from beembase.operationids import getOperationNameForId +from beem.amount import Amount +from beem.asset import Asset import random import unittest from pprint import pprint diff --git a/tests/test_txbuffers.py b/tests/test_txbuffers.py index f92b2465..072d28da 100644 --- a/tests/test_txbuffers.py +++ b/tests/test_txbuffers.py @@ -1,7 +1,7 @@ import unittest -from steempy import Steem -from steempybase import operations -from steempy.instance import set_shared_steem_instance +from beem import Steem +from beembase import operations +from beem.instance import set_shared_steem_instance wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", diff --git a/tests/test_utils.py b/tests/test_utils.py index 9137b12d..03940750 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,5 +1,5 @@ import unittest -from steempy.utils import ( +from beem.utils import ( assets_from_string, resolve_authorperm, resolve_authorpermvoter, diff --git a/tests/test_wallet.py b/tests/test_wallet.py index 781f59a1..f558e292 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -1,13 +1,13 @@ import unittest import mock from pprint import pprint -from steempy import Steem -from steempy.account import Account -from steempy.amount import Amount -from steempy.asset import Asset -from steempy.wallet import Wallet -from steempy.instance import set_shared_steem_instance -from steempybase.operationids import getOperationNameForId +from beem import Steem +from beem.account import Account +from beem.amount import Amount +from beem.asset import Asset +from beem.wallet import Wallet +from beem.instance import set_shared_steem_instance +from beembase.operationids import getOperationNameForId wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", diff --git a/tox.ini b/tox.ini index 4d80aba3..cd2589fc 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ commands= deps= flake8 commands= - flake8 --ignore=E501,F401 steempyapi steempybase examples + flake8 --ignore=E501,F401 beemapi beembase examples [testenv:docs] basepython= -- GitLab