Connectors

  • Localhost connector (default)
  • SSH (alpha)

LocalConnector

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)

SshConnector

Bases: Connector

__init__(hostname)

Creates a new SSH connector

Parameters:
  • 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