Configuration

The pypeerplays 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 peerplays import PeerPlays
peerplays = PeerPlays()
print(peerplays.config.items())

Keys can be added and changed like they are for regular dictionaries.

If you don’t want to load the peerplays.PeerPlays class, you can load the configuration directly by using:

from peerplays.storage import configStorage as config

API