| |
- get_alt_binary(f, func, blocksize)
- # Get a binary file and pass each block to a function
- get_alt_textfile(f, func)
- # Get a text file and pass each line to a function, with trailing CRLF stripped
- get_binary(f)
- # Get a binary file as one solid data block
- get_directory(f)
- # Get a directory in the form of a list of entries
- get_textfile(f)
- # Get a text file as a list of lines, with trailing CRLF stripped
- path_to_datatype_name(path)
- # Takes a path as returned by urlparse and maps it to a string
- # See section 3.4 of RFC 1738 for details
- path_to_selector(path)
- # Takes a path as returned by urlparse and returns the appropriate selector
- send_query(selector, query, host, port=0)
- # Send a selector and a query string
- send_selector(selector, host, port=0)
- # Send a selector to a given host and port, return a file with the reply
- test()
- # Trivial test program
- type_to_name(gtype)
- # Function mapping all file types to strings; unknown types become TYPE='x'
|