Module Expr Str Import alias Import alias TryExcept body ImportFrom alias alias alias handlers ExceptHandler type NameLoad body ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str NameLoad For NameStore ListLoad Str Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad orelse Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Str Str Str Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str Str orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str Str Print Str orelse Raise Call NameLoad Str TryExcept body For NameStore NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore NameLoad While CompareGt Call NameLoad NameLoad Num body Print Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad CompareGt Call NameLoad NameLoad Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Print BinOpMod Str NameLoad Assign NameStore Dict Assign NameStore NameLoad TryExcept body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Print BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad While NameLoad body Assign NameStore IfExp CompareEq Call NameLoad NameLoad Num Str Str Assign NameStore IfExp NameLoad Str Str Assign NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareIn NameLoad Call AttributeLoad NameLoad attr body Break If CompareEq NameLoad Str body Raise Call NameLoad If CompareEq NameLoad Str body Return NameLoad Assign NameStore Dict Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad ListLoad Str Str Str Str body Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareIs AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore ListLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Str If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body AugAssignAdd NameStore Str Print BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotIn NameLoad NameLoad body Print BinOpMod Str Call AttributeLoad Str attr NameLoad If CompareNotIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body Print BinOpMod Str NameLoad Assign NameStore NameLoad If CompareGt NameLoad Num body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad keyword Str orelse Print Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad orelse Print Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad orelse Print Str For NameStore AttributeLoad NameLoad attr body If CompareGtE NameLoad NameLoad body Print BinOpMod Str BinOpSub NameLoad NameLoad Break AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Print BinOpAdd Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Str If CompareNotIn AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Print BinOpMod Str AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Print BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body For NameStore ListLoad Str Str Str Str Str body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad NameLoad body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index NameLoad Print BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Str body Return ListLoad orelse If NameLoad body Return Call AttributeLoad NameLoad attr Num orelse If NameLoad body Return Call AttributeLoad NameLoad attr Num orelse If CompareEq NameLoad Str body Return ListLoad Str orelse If CompareEq NameLoad Str body Return ListLoad Str Str Str Str Str Str Str Str Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Print BinOpMod Str NameLoad Assign NameStore NameLoad Return NameLoad decorator_list decorator_list
N/A N/A ResourceSync explorer

This is the guts of a client designed to 'explore' the ResourceSync
facilities offered by a source. Will use standard practices to 
look for and interpret capabilities.
 N/A sys N/A urllib N/A N/A urllib.parse urlparse urlunparse urljoin N/A N/A N/A ImportError N/A urlparse urlparse urlunparse urljoin N/A os.path N/A datetime N/A distutils.dir_util N/A re N/A time N/A logging N/A requests mapper Mapper sitemap Sitemap client Client ClientFatalError client_state ClientState resource Resource w3c_datetime str_to_datetime datetime_to_str XResource N/A object N/A N/A Information about a resource for the explorer

    Must have a uri but may also store:
    
    acceptable_capabilities - None for any acceptable, 'resource' if a 
        resource rather than a capability document is expected, else 
        a list of capability names
    checks - a set of information to check when then XResource is inspected
    base_uri - on creation interpret any relative URI specified in the 
        context of base_uri, store the resulting full URI
     __init__ N/A N/A self uri acceptable_capabilities checks context N/A None None None N/A N/A N/A self uri N/A urljoin context uri N/A N/A self acceptable_capabilities acceptable_capabilities N/A N/A self checks checks N/A N/A HeadResponse N/A object N/A N/A Object to mock up requests.head(...) response __init__ N/A N/A self N/A N/A N/A N/A self status_code None N/A N/A self headers N/A N/A N/A ExplorerQuit N/A Exception N/A N/A Exception raised when user quits normally, no error N/A N/A Explorer N/A Client N/A N/A Extension of the client code to explore a ResourceSync source

    Designed to support a text-based command-line client that starts from
    a given URI, server, or local file, and then allows interactive 
    exploration of ResourceSync capabilities offered by the source.
     explore N/A N/A self N/A N/A N/A INTERACTIVE exploration source capabilities
        
        Will use sitemap URI taken either from explicit self.sitemap_name
        or derived from the mappings supplied.
         N/A starts N/A N/A N/A N/A self sitemap_name None N/A N/A N/A Starting from explicit --sitemap %s uri N/A N/A N/A starts append N/A XResource uri N/A N/A N/A N/A len N/A self mapper 0 N/A N/A uri N/A N/A N/A self mapper default_src_uri N/A N/A scheme netloc path params query fragment N/A urlparse uri N/A N/A N/A scheme N/A netloc N/A N/A N/A N/A N/A os path isdir path N/A N/A N/A Looking for capability documents in local directory %s path N/A name N/A resourcesync capabilities.xml resourcelist.xml changelist.xml N/A N/A file N/A N/A N/A os path join path name N/A N/A N/A N/A os path isfile file N/A N/A N/A N/A starts append N/A XResource file N/A N/A N/A len starts 0 N/A N/A N/A ClientFatalError N/A No likely capability files found in local directory %s path N/A N/A N/A Starting from local file %s path N/A N/A N/A starts append N/A XResource path N/A N/A well_known N/A urlunparse N/A scheme netloc /.well-known/resourcesync N/A N/A path N/A N/A N/A N/A starts append N/A XResource well_known N/A capabilitylist capabilitylistindex N/A N/A N/A N/A starts append N/A XResource uri N/A N/A N/A starts append N/A XResource well_known N/A capabilitylist capabilitylistindex N/A Looking for discovery information based on mappings N/A N/A N/A ClientFatalError No source information (server base uri or capability uri) specified, use -h for help N/A N/A N/A start starts N/A N/A history N/A start N/A input None N/A N/A N/A len history 0 N/A N/A N/A xr N/A N/A history pop N/A new_xr N/A N/A self explore_uri xr N/A N/A len history 0 N/A new_xr N/A N/A N/A N/A history append xr N/A N/A N/A history append new_xr N/A N/A N/A ExplorerQuit N/A N/A N/A 
resync-explorer done, bye...
 N/A explore_uri N/A N/A self explorer_resource show_back N/A True N/A N/A INTERACTIVE exploration of capabilities document(s) starting at a given URI

        Will flag warnings if the document is not of type listed in caps
         N/A uri N/A explorer_resource uri N/A caps N/A explorer_resource acceptable_capabilities N/A checks N/A explorer_resource checks N/A N/A Reading %s uri N/A options N/A N/A capability None N/A N/A N/A N/A caps resource N/A N/A N/A N/A self explore_show_head uri check_headers checks N/A N/A s N/A Sitemap N/A list N/A N/A s parse_xml N/A N/A urllib urlopen uri N/A N/A options capability N/A N/A self explore_show_summary list N/A s parsed_index caps context uri N/A N/A N/A IOError N/A e N/A N/A N/A Cannot read %s (%s) N/A uri N/A str e N/A N/A Exception N/A e N/A N/A N/A Cannot parse %s (%s) N/A uri N/A str e N/A True N/A N/A num_prompt N/A N/A N/A len options 0 number,  N/A up_prompt N/A show_back b(ack),  N/A input N/A raw_input N/A Follow [%s%sq(uit)]? N/A num_prompt up_prompt N/A N/A input N/A N/A options keys N/A N/A N/A N/A input q N/A N/A N/A ExplorerQuit N/A N/A input b N/A N/A None N/A checks N/A N/A r N/A options N/A input N/A N/A N/A r capability None N/A N/A N/A capability N/A resourcelist changelist resourcedump changedump N/A N/A caps resource N/A N/A caps N/A N/A self allowed_entries capability N/A N/A N/A N/A r capability resource N/A N/A caps N/A r capability N/A N/A caps N/A N/A r capability N/A N/A N/A r length None N/A N/A N/A checks N/A content-length N/A r length N/A N/A N/A r lastmod None N/A N/A N/A checks N/A last-modified N/A r lastmod N/A N/A N/A r mime_type None N/A N/A N/A checks N/A content-type N/A r mime_type N/A N/A XResource N/A N/A options N/A input uri caps checks N/A explore_show_summary N/A N/A self list index expected context N/A False None None N/A N/A Show summary of one capability document

        Given a capability document or index (in list, index True if it is an 
        index), write out a simply textual summary of the document with all 
        related documents shown as numbered options (of the form 
        [#] ...description...) which will then form a menu for the next 
        exploration.

        If expected is not None then it should be a list of expected document
        types. If this is set then a warning will be printed if list is not
        one of these document types.

        Look for certain top-level link types including rel="up".
         N/A num_entries N/A len N/A list resources N/A capability (unknown capability) N/A N/A capability N/A list md N/A N/A capability N/A N/A list md N/A capability N/A index N/A N/A capability index N/A N/A Parsed %s document with %d entries: N/A capability num_entries N/A N/A N/A expected None N/A capability expected N/A N/A N/A WARNING - expected a %s document N/A N/A , join expected N/A N/A capability N/A description descriptionoindex capabilitylist resourcelist resourcelistindex changelist changelistindex resourcedump resourcedumpindex changedump changedumpindex resourcelist-archive resourcedump-archive changelist-archive changedump-archive N/A N/A N/A WARNING - unknown %s document type capability N/A to_show num_entries N/A N/A num_entries 21 N/A N/A to_show 20 N/A entry_caps N/A N/A self allowed_entries capability N/A options N/A N/A n 0 N/A ln_describedby N/A N/A list link describedby N/A ln_describedby N/A N/A N/A href ln_describedby N/A N/A uri N/A ln_describedby N/A href N/A N/A [%s] rel='describedby' link to %s N/A d uri N/A uri N/A N/A self expand_relative_uri context uri N/A N/A options N/A d N/A Resource uri capability resource N/A N/A WARNING - describedby link with no href, ignoring N/A ln_up N/A N/A list link up N/A ln_up N/A N/A N/A href ln_up N/A N/A uri N/A ln_up N/A href N/A N/A [%s] rel='up' link to %s N/A u uri N/A uri N/A N/A self expand_relative_uri context uri N/A N/A options N/A u N/A Resource uri N/A N/A WARNING - up link with no href, ignoring N/A ln_index N/A N/A list link index N/A ln_index N/A N/A N/A href ln_index N/A N/A uri N/A ln_index N/A href N/A N/A [%s] rel='index' link to %s N/A i uri N/A uri N/A N/A self expand_relative_uri context uri N/A N/A options N/A i N/A Resource uri N/A N/A WARNING - index link with no href, ignoring N/A r N/A list resources N/A N/A N/A n to_show N/A N/A N/A (not showing remaining %d entries) N/A num_entries n N/A N/A n 1 N/A N/A options N/A N/A str n r N/A N/A [%d] %s N/A n N/A r uri N/A N/A self verbose N/A N/A N/A N/A str r N/A N/A r uri N/A N/A self expand_relative_uri context N/A r uri N/A N/A N/A r capability None N/A N/A warning N/A N/A N/A r capability entry_caps N/A N/A warning N/A  (EXPECTED %s) N/A N/A  or  join entry_caps N/A N/A   %s%s N/A N/A r capability warning N/A N/A N/A N/A len entry_caps 1 N/A N/A N/A r capability N/A entry_caps N/A 0 N/A N/A   capability not specified, should be %s N/A r capability N/A N/A options capability N/A explore_show_head N/A N/A self uri check_headers N/A None N/A N/A Do HEAD on uri and show infomation

        Will also check headers against any values specified in 
        check_headers.
         N/A N/A HEAD %s uri N/A N/A N/A re match ^\w+: uri N/A N/A response N/A N/A requests head uri N/A N/A response N/A N/A self head_on_file uri N/A N/A   status: %s N/A response status_code N/A N/A N/A response status_code 200 N/A N/A header N/A content-length last-modified lastmod content-type etag N/A N/A N/A header N/A response headers N/A N/A check_str N/A N/A N/A check_headers None N/A header check_headers N/A N/A N/A N/A N/A response headers N/A header N/A check_headers N/A header N/A N/A check_str  MATCHES EXPECTED VALUE N/A N/A check_str N/A  EXPECTED %s N/A check_headers N/A header N/A N/A   %s: %s%s N/A header N/A N/A response headers N/A header check_str N/A head_on_file N/A N/A self file N/A N/A N/A Mock up requests.head(..) response on local file
         N/A response N/A HeadResponse N/A N/A N/A N/A N/A os path isfile file N/A N/A N/A response status_code 404 N/A N/A N/A response status_code 200 N/A N/A N/A response headers N/A last-modified N/A datetime_to_str N/A N/A N/A os path getmtime file N/A N/A N/A response headers N/A content-length N/A N/A N/A os path getsize file N/A response N/A allowed_entries N/A N/A self capability N/A N/A N/A Given a current capability document, return list of allowed entries

        Includes handling of capability = *index where the only acceptable 
        entries are *.
         N/A index N/A N/A re match (.+)index$ capability N/A archive N/A N/A re match r(.+)\-archive$ capability N/A N/A capability capabilitylistindex N/A N/A N/A N/A N/A index N/A N/A N/A N/A index group 0 N/A N/A archive N/A N/A N/A N/A archive group 0 N/A N/A N/A capability description N/A N/A N/A capabilitylist N/A N/A N/A capability capabilitylist N/A N/A N/A resourcelist resourcedump changelist changedump resourcelist-archive resourcedump-archive changelist-archive changedump-archive N/A N/A N/A expand_relative_uri N/A N/A self context uri N/A N/A N/A If uri is relative then expand in context
        
        Prints warning if expansion happens
         N/A full_uri N/A urljoin context uri N/A N/A full_uri uri N/A N/A N/A   WARNING - expanded relative URI to %s full_uri N/A uri full_uri N/A uri N/A N/A