microengine.scratch

Module Contents

microengine.scratch.logger[source]
class microengine.scratch.Scanner[source]

Bases: polyswarmclient.abstractscanner.AbstractScanner

scan_sync(self, guid, artifact_type, content, metadata, chain)[source]

Scan an artifact

Parameters
  • guid (str) – GUID of the bounty under analysis, use to track artifacts in the same bounty

  • artifact_type (ArtifactType) – Artifact type for the bounty being scanned

  • content (bytes) – Content of the artifact to be scan

  • metadata (dict) –

  • chain (str) – Chain we are operating on

Returns

Result of this scan

Return type

ScanResult

class microengine.scratch.Microengine(client, testing=0, scanner=None, chains=None, artifact_types=None, **kwargs)[source]

Bases: polyswarmclient.abstractmicroengine.AbstractMicroengine

Scratch microengine is the same as the default behavior.

Parameters
  • client (Client) – Client to use

  • testing (int) – How many test bounties to respond to

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