diff --git a/beem/account.py b/beem/account.py index 7d9308c3ca9bb3269e83eafc29979327c66166db..7411ca3df56a1c641434668ca46ab949fc4f2dc8 100644 --- a/beem/account.py +++ b/beem/account.py @@ -170,6 +170,10 @@ class Account(BlockchainObject): return json.loads(str(json.dumps(output))) def getSimilarAccountNames(self, limit=5): + """Depriated, please use get_similar_account_names""" + return self.get_similar_account_names(limit=limit) + + def get_similar_account_names(self, limit=5): """ Returns limit similar accounts with name as list :param int limit: limits the number of accounts, which will be returned @@ -180,7 +184,7 @@ class Account(BlockchainObject): >>> from beem.account import Account >>> account = Account("test") - >>> account.getSimilarAccountNames(limit=5) + >>> print(account.get_similar_account_names(limit=5)) ['test', 'test-1', 'test-2', 'test-ico', 'test-ilionx-123'] """ diff --git a/beem/profile.py b/beem/profile.py index e11dacf10791005d730fc2a5d17246df8c481637..c44397ecf3d21b5b62bb42a7160358978e9cc1eb 100644 --- a/beem/profile.py +++ b/beem/profile.py @@ -13,6 +13,7 @@ class DotDict(dict): """ This class simplifies the use of "."-separated keys when defining a nested dictionary::: + >>> from beem.profile import Profile >>> keys = ['profile.url', 'profile.img'] >>> values = ["http:", "foobar"] >>> print(Profile(keys, values)) diff --git a/beem/steem.py b/beem/steem.py index 07ab5e136524831b55c5861c952b7d7f4b63361e..c01778002aafa8dbc3aa096047642469e4ab31fd 100644 --- a/beem/steem.py +++ b/beem/steem.py @@ -97,8 +97,8 @@ class Steem(object): >>> from beem import Steem >>> steem = Steem() - >>> steem.get_blockchain_version() - '0.19.2' + >>> print(steem.get_blockchain_version()) + 0.19.2 This class also deals with edits, votes and reading content. """ diff --git a/beem/utils.py b/beem/utils.py index 61642ac325d0969a8188d92e7d85d7d063a5c5ed..3648cdac2417b59e2b5a7f6a821e702ae8a65c34 100644 --- a/beem/utils.py +++ b/beem/utils.py @@ -138,10 +138,10 @@ def construct_authorperm(*args): .. code-block:: python >>> from beem.utils import construct_authorperm - >>> construct_authorperm('username', 'permlink') - '@username/permlink' - >>> construct_authorperm({'author': 'username', 'permlink': 'permlink'}) - '@username/permlink' + >>> print(construct_authorperm('username', 'permlink')) + @username/permlink + >>> print(construct_authorperm({'author': 'username', 'permlink': 'permlink'})) + @username/permlink """ username_prefix = '@' @@ -189,10 +189,10 @@ def construct_authorpermvoter(*args): .. code-block:: python >>> from beem.utils import construct_authorpermvoter - >>> construct_authorpermvoter('username', 'permlink', 'voter') - '@username/permlink|voter' - >>> construct_authorpermvoter({'author': 'username', 'permlink': 'permlink', 'voter': 'voter'}) - '@username/permlink|voter' + >>> print(construct_authorpermvoter('username', 'permlink', 'voter')) + @username/permlink|voter + >>> print(construct_authorpermvoter({'author': 'username', 'permlink': 'permlink', 'voter': 'voter'})) + @username/permlink|voter """ username_prefix = '@' diff --git a/docs/_static/beem-icon.png b/docs/_static/beem-icon.png index 75919ecf22506d87868c6b581585c02675ebc73c..d1d388644e29aad4d8cd024a735f429567c5fb49 100644 Binary files a/docs/_static/beem-icon.png and b/docs/_static/beem-icon.png differ diff --git a/docs/_static/beem-icon_bw.png b/docs/_static/beem-icon_bw.png new file mode 100644 index 0000000000000000000000000000000000000000..1d63db8f67cc77ac95794471c9f13be1ffa173c9 Binary files /dev/null and b/docs/_static/beem-icon_bw.png differ diff --git a/docs/conf.py b/docs/conf.py index 411a7b3ade4adc60dc2f3d4171181b5fd7e23494..df582ea79455dc0ac173194ce448ccc7717d2330 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -134,7 +134,7 @@ html_logo = '_static/beem-logo_2.svg' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -html_favicon = '_static/beem-icon.png' +html_favicon = '_static/beem-icon_bw.png' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,