microengine.__main__
¶
Module Contents¶
-
microengine.__main__.
choose_backend
(backend)[source]¶ -
Resolves microengine 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:Microengine)
- Returns
Microengine class of the selected implementation
- Return type
(Class)
- Raises
(Exception) – If backend is not found
-
microengine.__main__.
main
(log, client_log, polyswarmd_addr, keyfile, password, api_key, backend, testing, insecure_transport, chains, log_format, artifact_type)[source]¶ -
Entrypoint for the microengine 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]) – List of chains on which to scan artifacts
log_format (str) – Format to output logs in. text or json
artifact_type (list[str]) – List of artifact types to scan