This module defines functions for handling files and paths.
Return output name that contains decompressed contents of filename. When no outname is given, filename is used as the output name as it is or after .gz extension is removed. filename may also be a string buffer, in which case decompressed string buffer or outname that contains buffer will be returned.
Rename filename with backup_ext appended to its name for backup purposes, if backup is True or if automatic backups is turned on using confProDy(). Default extension .BAK is used when one is not set using confProDy(). If filename does not exist, no action will be taken and filename will be returned. If file is successfully renamed, new filename will be returned.
Open filename for reading, writing, or appending. First argument in args is treated as the mode. Opening .gz and .zip files for reading and writing is handled automatically.
Parameters: |
|
---|
Return a connection to SQLite database filename. If 'n' argument is passed, remove any existing databases with the same name and return connection to a new empty database.
Open url for reading. Raise an IOError if url cannot be reached. Small timeout values are suitable if url is an ip address. kwargs will be used to make urllib.request.Request instance for opening the url.
Return a symbolic path for a long path, by replacing folder names in the middle with ellipsis. beg and end specified how many folder (or file) names to include from the beginning and end of the path.
This function is based on the example in: http://stackoverflow.com/questions/377017/
Pickle obj using pickle.dump() in filename. protocol is set to 2 for compatibility between Python 2 and 3.
Unpickle object in filename using pickle.load().