polyswarmclient.abstractmicroengine
¶
Module Contents¶
-
class
polyswarmclient.abstractmicroengine.
AbstractMicroengine
(client, testing=0, scanner=None, chains=None, artifact_types=None)[source]¶ Bases:
object
-
classmethod
connect
(cls, polyswarmd_addr, keyfile, password, api_key=None, testing=0, insecure_transport=False, scanner=None, chains=None, artifact_types=None)[source]¶ Connect the Microengine to a Client.
- Parameters
polyswarmd_addr (str) – URL of polyswarmd you are referring to.
keyfile (str) – Keyfile filename.
password (str) – Password associated with Keyfile.
api_key (str) – Your PolySwarm API key.
testing (int) – Number of testing bounties to use.
insecure_transport (bool) – Allow insecure transport such as HTTP?
scanner (Scanner) – Scanner instance to use.
chains (set(str)) – Set of chains you are acting on.
artifact_types (list(ArtifactType)) – List of artifact types you support
- Returns
Microengine instantiated with a Client.
- Return type
-
classmethod