Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias alias identifier alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Str If UnaryOpNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return BinOpSub Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr IfExp UnaryOpNot NameLoad Call NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assert CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Return TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad CompareNotEq NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryFinally body TryExcept body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad IfExp NameLoad BinOpMod Str NameLoad Str Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Num If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Return Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Continue TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad Call NameLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn NameLoad TupleLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If NameLoad body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad While NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Slice Num If NameLoad body Assert CompareEq Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Break Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad keyword AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Base classes to custom git-annex remotes (e.g. extraction from archives) N/A __docformat__ restructuredtext N/A errno N/A os N/A sys os.path exists join opj realpath dirname lexists traceback format_exc six.moves range six.moves.urllib.parse urlparse urlunparse cmd Runner support.exceptions CommandError support.protocol ProtocolInterface support.annexrepo AnnexRepo support.cache DictCache cmdline.helpers get_repo_instance N/A logging N/A lgr N/A N/A logging getLogger datalad.customremotes N/A URI_PREFIX dl N/A SUPPORTED_PROTOCOL 1 N/A DEFAULT_COST 100 N/A DEFAULT_AVAILABILITY local AnnexRemoteQuit N/A Exception N/A N/A N/A AnnexExchangeProtocol N/A ProtocolInterface N/A N/A A little helper to protocol interactions of custom remote with annex
     N/A HEADER #!/bin/bash

set -e

# Gets a VALUE response and stores it in $RET
report () {
    echo "$@" >&2
}

recv () {
    read resp
    #resp=${resp%\n}
    target="$@"
    if [ "$resp" != "$target" ]; then
        report "! exp $target"
        report "  got $resp"
    else
        report "+ got $resp"
    fi
}

send () {
    echo "$@"
    report "sent $@"
}

 __init__ N/A N/A self repopath custom_remote_name N/A None N/A N/A N/A N/A N/A super AnnexExchangeProtocol self __init__ N/A N/A self repopath repopath N/A N/A self custom_remote_name custom_remote_name N/A N/A self _file None N/A N/A self _initiated False N/A initiate N/A N/A self N/A N/A N/A N/A self _initiated N/A N/A N/A N/A self _initiated True N/A d N/A opj N/A self repopath .git bin N/A N/A N/A exists d N/A N/A N/A N/A os makedirs d N/A suf N/A N/A self custom_remote_name N/A - N/A N/A N/A self custom_remote_name rstrip : N/A N/A self _file _file N/A opj d N/A git-annex-remote-datalad suf N/A N/A exists _file N/A N/A N/A N/A lgr debug Commenting out previous entries N/A N/A open _file f N/A N/A entries N/A N/A f readlines N/A i N/A range N/A len N/A N/A N/A self HEADER split N/A os linesep N/A len entries N/A N/A e N/A entries N/A i N/A N/A N/A N/A e startswith recv  N/A N/A e startswith send  N/A N/A N/A entries N/A i N/A # e N/A N/A open _file w f N/A N/A N/A N/A f write N/A N/A join entries N/A N/A N/A N/A lgr debug N/A Initiating protocoling.cd %s; vim %s N/A N/A realpath N/A self repopath N/A _file N/A N/A N/A len N/A self repopath 1 N/A N/A open _file a f N/A N/A N/A N/A f write N/A self HEADER N/A N/A N/A os chmod _file 493 N/A write_section N/A N/A self cmd N/A N/A N/A N/A N/A self initiate N/A N/A open N/A self _file a f N/A N/A N/A N/A f write N/A %s### %s%s N/A N/A os linesep cmd N/A os linesep N/A N/A N/A lgr info N/A New section in the protocol: cd %s; PATH=%s:$PATH %s N/A N/A realpath N/A self repopath N/A dirname N/A self _file cmd N/A write_entries N/A N/A self entries N/A N/A N/A N/A N/A self initiate N/A N/A open N/A self _file a f N/A N/A N/A N/A f write N/A N/A N/A os linesep join N/A entries N/A N/A __iadd__ N/A N/A self entry N/A N/A N/A N/A N/A self initiate N/A N/A open N/A self _file a f N/A N/A N/A N/A f write N/A entry N/A os linesep N/A self N/A start_section N/A N/A self cmd N/A N/A N/A N/A N/A N/A self _sections append N/A command cmd N/A N/A N/A self write_section cmd N/A N/A N/A len N/A self _sections 1 N/A end_section N/A N/A self id_ exception N/A N/A N/A N/A N/A N/A self _sections __getitem__ id_ N/A add_section N/A N/A self cmd exception N/A N/A N/A N/A N/A self start_section cmd N/A records_callables N/A N/A self N/A N/A N/A False N/A property records_ext_commands N/A N/A self N/A N/A N/A True N/A property do_execute_ext_commands N/A N/A self N/A N/A N/A True N/A property do_execute_callables N/A N/A self N/A N/A N/A True N/A property N/A AnnexCustomRemote N/A object N/A N/A Base class to provide custom special remotes for git-annex

    Implements git-annex special custom remotes protocol described
    at
    http://git-annex.branchable.com/design/external_special_remote_protocol/
     N/A CUSTOM_REMOTE_NAME None N/A AVAILABILITY DEFAULT_AVAILABILITY __init__ N/A N/A self path cost N/A None DEFAULT_COST N/A N/A 
        Parameters
        ----------
        path : string, optional
            Path to the repository for which this custom remote is serving.
            Usually this class is instantiated by a script which runs already
            within that directory, so the default is to point to current
            directory, i.e. '.'
         N/A N/A self runner N/A Runner N/A N/A self fin N/A sys stdin N/A N/A self fout N/A sys stdout N/A N/A self repo N/A N/A path N/A get_repo_instance class_ AnnexRepo N/A AnnexRepo path create False init False N/A N/A self path N/A N/A self repo path N/A N/A self _progress 0 N/A N/A self cost cost N/A N/A N/A N/A N/A self AVAILABILITY upper N/A LOCAL GLOBAL N/A N/A self _in_the_loop False N/A N/A self _protocol N/A N/A N/A N/A os environ get DATALAD_PROTOCOL_REMOTE N/A AnnexExchangeProtocol N/A self path N/A self CUSTOM_REMOTE_NAME None N/A N/A self _contentlocations N/A DictCache size_limit 100 N/A _get_custom_scheme N/A N/A cls prefix N/A N/A N/A Helper to generate custom datalad URL prefixes
         N/A N/A %s+%s N/A URI_PREFIX prefix N/A classmethod get_contentlocation N/A N/A self key N/A N/A N/A Return absolute path to the file containing the key

        This is a wrapper around AnnexRepo.get_contentlocation which provides caching
        of the result (we are asking the location for the same archive key often)
         N/A N/A key N/A self _contentlocations N/A N/A fpath N/A N/A N/A self repo get_contentlocation key batch True N/A fpath N/A N/A N/A N/A self _contentlocations N/A key fpath N/A N/A fpath N/A N/A self _contentlocations N/A key N/A N/A N/A lexists N/A opj N/A self path fpath N/A N/A N/A N/A self _contentlocations N/A key N/A fpath N/A fpath N/A send N/A N/A self N/A args N/A N/A Send a message to git-annex

        Parameters
        ----------
        `*args`: list of strings
           arguments to be joined by a space and passed to git-annex
         N/A msg N/A N/A join N/A map str args N/A N/A N/A self _in_the_loop N/A N/A N/A N/A lgr debug N/A We are not yet in the loop, thus should not send to annex anything.  Got: %s N/A N/A msg encode N/A N/A N/A N/A N/A N/A self heavydebug N/A Sending %r msg N/A N/A N/A N/A self fout write N/A msg N/A N/A N/A N/A self fout flush N/A N/A N/A self _protocol None N/A N/A N/A self _protocol N/A send %s msg N/A N/A N/A IOError N/A exc N/A N/A N/A N/A lgr debug N/A Failed to send due to %s N/A str exc N/A N/A N/A exc errno N/A errno EPIPE N/A N/A N/A N/A self stop N/A N/A exc N/A send_unsupported N/A N/A self N/A N/A N/A N/A N/A self send UNSUPPORTED-REQUEST N/A read N/A N/A self req n N/A None 1 N/A N/A Read a message from git-annex

        Parameters
        ----------

        req : string, optional
           Expected request - first msg of the response
        n : int
           Number of response elements after first msg
         N/A l N/A N/A N/A N/A N/A self fin readline rstrip N/A os linesep N/A N/A N/A self _protocol None N/A N/A N/A self _protocol N/A recv %s l N/A msg N/A N/A l split None n N/A N/A req N/A req N/A msg N/A 0 N/A N/A N/A N/A self error N/A Expected %r, got %r.  Ignoring N/A resp N/A msg N/A 0 N/A None N/A N/A N/A self heavydebug N/A Received %r N/A msg N/A msg N/A heavydebug N/A N/A self msg N/A N/A N/A N/A N/A lgr log 4 msg N/A debug N/A N/A self msg N/A N/A N/A N/A N/A lgr debug msg N/A N/A N/A self send DEBUG msg N/A error N/A N/A self msg annex_err N/A ERROR N/A N/A N/A N/A lgr error msg N/A N/A N/A self send annex_err msg N/A progress N/A N/A self perc N/A N/A N/A perc N/A int perc N/A N/A N/A self _progress perc N/A N/A N/A N/A self send PROGRESS perc N/A main N/A N/A self N/A N/A N/A Interface to the command line tool N/A N/A N/A N/A N/A N/A self _in_the_loop True N/A N/A N/A self _loop N/A N/A N/A AnnexRemoteQuit N/A N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A self stop Interrupted by user N/A N/A Exception N/A e N/A N/A N/A N/A self stop N/A str e N/A N/A N/A self _in_the_loop False N/A stop N/A N/A self msg N/A None N/A N/A N/A N/A lgr info N/A Stopping communications of %s%s N/A self N/A msg N/A : %s msg N/A N/A AnnexRemoteQuit msg N/A _loop N/A N/A self N/A N/A N/A The main loop
         N/A N/A N/A self send VERSION SUPPORTED_PROTOCOL N/A True N/A N/A l N/A N/A self read n -1 N/A N/A N/A l None N/A l N/A N/A N/A N/A self stop N/A N/A N/A req req_load N/A N/A l N/A 0 N/A l N/A 1 N/A method N/A getattr self N/A req_%s req None N/A N/A method N/A N/A N/A N/A self error N/A We have no support for %s request, part of %s response N/A req l N/A N/A N/A self send UNSUPPORTED-REQUEST N/A N/A N/A N/A N/A method req_load N/A N/A N/A Exception N/A e N/A N/A N/A N/A self error N/A Problem processing %r with parameters %r: %r N/A req req_load e N/A N/A N/A lgr error N/A Caught exception detail: %s N/A format_exc N/A req_INITREMOTE N/A N/A self N/A args N/A N/A Initialize this remote. Provides high level abstraction.

        Specific implementation should go to _initialize
         N/A N/A N/A N/A N/A self _initremote args N/A N/A N/A Exception N/A e N/A N/A N/A N/A self error N/A Failed to initialize %s due to %s N/A self e INITREMOTE-FAILURE N/A N/A N/A N/A self send INITREMOTE-SUCCESS N/A req_PREPARE N/A N/A self N/A args N/A N/A Prepare "to deliver". Provides high level abstraction

         Specific implementation should go to _prepare
          N/A N/A N/A N/A N/A self _prepare args N/A N/A N/A Exception N/A e N/A N/A N/A N/A self error N/A Failed to prepare %s due to %s N/A self e PREPARE-FAILURE N/A N/A N/A N/A self send PREPARE-SUCCESS N/A req_GETCOST N/A N/A self N/A N/A N/A N/A N/A self send COST N/A self cost N/A req_GETAVAILABILITY N/A N/A self N/A N/A N/A N/A N/A self send AVAILABILITY N/A N/A N/A self AVAILABILITY upper N/A req_CLAIMURL N/A N/A self url N/A N/A N/A scheme N/A N/A urlparse url scheme N/A N/A scheme N/A self SUPPORTED_SCHEMES N/A N/A N/A N/A self debug N/A Claiming url %r url N/A N/A N/A self send CLAIMURL-SUCCESS N/A N/A N/A N/A self debug N/A Not claiming url %s url N/A N/A N/A self send CLAIMURL-FAILURE N/A req_TRANSFER N/A N/A self cmd key file N/A N/A N/A N/A cmd N/A RETRIEVE N/A N/A N/A N/A lgr info N/A %s key %s into/from %s N/A cmd key file N/A N/A N/A self _transfer cmd key file N/A N/A N/A N/A self error N/A Retrieved unsupported for TRANSFER command %s cmd N/A N/A N/A self send_unsupported N/A req_CHECKURL N/A N/A self url N/A N/A N/A 
        The remote replies with one of CHECKURL-FAILURE, CHECKURL-CONTENTS, or CHECKURL-MULTI.

        CHECKURL-CONTENTS Size|UNKNOWN Filename
            Indicates that the requested url has been verified to exist.
            The Size is the size in bytes, or use "UNKNOWN" if the size could not be determined.
            The Filename can be empty (in which case a default is used), or can specify a filename that is suggested to be used for this url.

        CHECKURL-MULTI Url Size|UNKNOWN Filename ...
            Indicates that the requested url has been verified to exist, and contains multiple files, which can each be accessed using their own url.
            Note that since a list is returned, neither the Url nor the Filename can contain spaces.

        CHECKURL-FAILURE
            Indicates that the requested url could not be accessed.
         N/A N/A N/A self send_unsupported N/A req_CHECKPRESENT N/A N/A self key N/A N/A N/A 
        CHECKPRESENT-SUCCESS Key
            Indicates that a key has been positively verified to be present in the remote.
        CHECKPRESENT-FAILURE Key
            Indicates that a key has been positively verified to not be present in the remote.
        CHECKPRESENT-UNKNOWN Key ErrorMsg
            Indicates that it is not currently possible to verify if the key is present in the remote. (Perhaps the remote cannot be contacted.)
         N/A N/A NotImplementedError N/A req_REMOVE N/A N/A self key N/A N/A N/A 
        REMOVE-SUCCESS Key
            Indicates the key has been removed from the remote. May be returned if the remote didn't have the key at the point removal was requested.
        REMOVE-FAILURE Key ErrorMsg
            Indicates that the key was unable to be removed from the remote.
         N/A N/A NotImplementedError N/A req_WHEREIS N/A N/A self key N/A N/A N/A Added in 5.20150812-17-g6bc46e3

        provide any information about ways to access the content of a key stored in it,
        such as eg, public urls. This will be displayed to the user by eg,
        git annex whereis. The remote replies with WHEREIS-SUCCESS or WHEREIS-FAILURE.
        Note that users expect git annex whereis to run fast, without eg, network access.
        This is not needed when SETURIPRESENT is used, since such uris are automatically
        displayed by git annex whereis.

        WHEREIS-SUCCESS String
            Indicates a location of a key. Typically an url, the string can be anything
            that it makes sense to display to the user about content stored in the special
            remote.
        WHEREIS-FAILURE
            Indicates that no location is known for a key.
         N/A N/A NotImplementedError N/A _transfer N/A N/A self cmd key file N/A N/A N/A N/A NotImplementedError N/A _initremote N/A N/A self N/A args N/A N/A Custom initialization of the special custom remote. N/A N/A _prepare N/A N/A self N/A args N/A N/A Prepare special custom remote.  To be overridden N/A N/A get_DIRHASH N/A N/A self key full N/A False N/A N/A Gets a two level hash associated with a Key.

        Parameters
        ----------
        full: bool, optional
          If True, would spit out full DIRHASH path, i.e. with a KEY/ directory

        Something like "abc/def". This is always the same for any given Key, so
        can be used for eg, creating hash directory structures to store Keys in.
         N/A N/A N/A self send DIRHASH key N/A val N/A N/A N/A self read VALUE 1 N/A 1 N/A full N/A N/A N/A opj N/A self path val key N/A N/A val N/A get_URLS N/A N/A self key N/A N/A N/A Gets URL(s) associated with a Key.

         N/A urls N/A N/A scheme N/A self SUPPORTED_SCHEMES N/A N/A scheme_ N/A scheme : N/A N/A N/A self send GETURLS key scheme_ N/A True N/A N/A url N/A N/A N/A self read VALUE 1 N/A 1 N/A url N/A N/A N/A N/A len url 1 N/A N/A N/A urls append N/A url N/A 0 N/A N/A N/A N/A N/A self heavydebug N/A Received URLS: %s urls N/A N/A urls N/A N/A N/A ValueError N/A Did not get any URLs for %s which we support key N/A urls N/A _get_key_path N/A N/A self key N/A N/A N/A Return path to the KEY file
         N/A N/A out err N/A N/A self runner N/A git-annex contentlocation key cwd N/A self path N/A N/A opj N/A self path N/A N/A out rstrip N/A os linesep N/A N/A