How to use the scp.Handler function in scp

To help you get started, we’ve selected a few scp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / version-control-tools / hgext / qimportbz / __init__.py View on Github external
# these in reverse order.
        for patch in reversed(patches):
            newopts['name'] = checkpatchname(patch)
            path = makebzurl(patch.bug.num, patch.id)

            ret = orig(ui, repo, path, **newopts)
            if ret:
                return ret

    extensions.wrapcommand(cmdtable, 'qimport', qimporthook)

    # Here we setup the protocol handlers
    processors = {
        'bz': bzhandler.Handler,
        'pb': pb.Handler,
        'scp': scp.Handler
    }

    for s, p in processors.items():
        url.handlerfuncs.append(p)
        hg.schemes[s] = httppeer

scp

scp module for paramiko

LGPL-2.1
Latest version published 7 months ago

Package Health Score

85 / 100
Full package analysis