Configuration¶
The pysteem library comes with its own local configuration database that stores information like
- API node URL
- default account name
- the encrypted master password
and potentially more.
You can access those variables like a regular dictionary by using
from beem import Steem
steem = Steem()
print(steem.config.items())
Keys can be added and changed like they are for regular dictionaries.
If you don’t want to load the steem.Steem
class, you
can load the configuration directly by using:
from beem.storage import configStorage as config
API¶
-
class
beem.storage.
Configuration
¶ This is the configuration storage that stores key/value pairs in the config table of the SQLite3 database.
-
checkBackup
()¶ Backup the SQL database every 7 days
-
create_table
()¶ Create the new table in the SQLite database
-
delete
(key)¶ Delete a key from the configuration store
-
exists_table
()¶ Check if the database table exists
-
get
(key, default=None)¶ Return the key if exists or a default value
-
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']¶ Default configuration
-