config v0.4.12

Config data.

Config

class Config(configparser.ConfigParser)

Class to manage the squid-py configuration.

__init__

 | def __init__(filename=None, options_dict=None, **kwargs)

Initialize Config class.

Options available:

[eth-network] network = http://localhost:8545 # ocean-contracts url.

[resources] aquarius.url = http://localhost:5000

Arguments:

  • filename: Path of the config file, str.
  • options_dict: Python dict with the config, dict.
  • kwargs: Additional args. If you pass text, you have to pass the plain text configuration.

network_url

 | @property
 | def network_url()

URL of the evm network. (e.g.): http://localnetwork:8545.

operator_service_url

 | @property
 | def operator_service_url()

URL of the operator service component. (e.g.): http://myoperatorservice:8050.

storage_path

 | @property
 | def storage_path()

Path to local storage (database file).