microengine.__main__

Module Contents

microengine.__main__.logger[source]
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__.choose_bid_strategy(bid_strategy)[source]
Resolves bid strategy name string to implementation
Parameters

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

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, allow_key_over_http, chains, log_format, artifact_type, bid_strategy, accept, exclude, filter, confidence)[source]
Entrypoint for the microengine driver