• Localhost connector (default)
  • SSH (alpha)


Bases: Connector

lock(path, max_delay=-1)

Returns a lockable path

Arguments: path {Path} -- Path of the lockfile max_delay {int} -- Maximum wait duration (seconds)


Bases: Connector


Creates a new SSH connector

  • hostname (str) –

    a hostname specification

createtoken(name, total)

Returns a token in the default path for the connector

fromPath(path) staticmethod

Creates an SSH connector from an SshPath

get(hostname) staticmethod

Get an SSH connector from a hostname

This method can caches SSH connectors, and is thus preferred to direct initialization

lock(path, max_delay=-1)

Returns a lock on a file