arbiter.__main__

Module Contents

arbiter.__main__.logger[source]
arbiter.__main__.choose_backend(backend)[source]
Resolves arbiter name string to implementation
Parameters

backend (str) – Name of the backend to load, either one of the predefined implementations or the name of a module to load (module:ClassName syntax or default of module:Arbiter)

Returns

Arbiter class of the selected implementation

Return type

(Class)

Raises

(Exception) – If backend is not found

arbiter.__main__.main(log, client_log, polyswarmd_addr, keyfile, password, api_key, backend, testing, insecure_transport, chains, log_format, artifact_type)[source]
Entrypoint for the arbiter driver
Parameters
  • log (str) – Logging level for all app logs

  • client_log (str) – Logging level for all polyswarmclient logs

  • polyswarmd_addr (str) – Address of polyswarmd

  • keyfile (str) – Path to private key file to use to sign transactions

  • password (str) – Password to decrypt the encrypted private key

  • backend (str) – Backend implementation to use

  • api_key (str) – API key to use with polyswarmd

  • testing (int) – Mode to process N bounties then exit (optional)

  • insecure_transport (bool) – Connect to polyswarmd without TLS

  • chains (List[str]) – Chain(s) to operate on

  • log_format (str) – Format to output logs in. text or json

  • artifact_type (list[str]) – List of artifact types to scan