Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: aifc.py
"""Stuff to parse AIFF-C and AIFF files. Unless explicitly stated otherwise, the description below is true both for AIFF-C files and AIFF files. An AIFF-C file has the following structure. +-----------------+ | FORM | +-----------------+ |
| +----+------------+ | | AIFC | | +------------+ | |
| | | . | | | . | | | . | +----+------------+ An AIFF file has the string "AIFF" instead of "AIFC". A chunk consists of an identifier (4 bytes) followed by a size (4 bytes, big endian order), followed by the data. The size field does not include the size of the 8 byte header. The following chunk types are recognized. FVER
(AIFF-C only). MARK <# of markers> (2 bytes) list of markers:
(2 bytes, must be > 0)
(4 bytes)
("pstring") COMM <# of channels> (2 bytes) <# of sound frames> (4 bytes)
(2 bytes)
(10 bytes, IEEE 80-bit extended floating point) in AIFF-C files only:
(4 bytes)
("pstring") SSND
(4 bytes, not used by this program)
(4 bytes, not used by this program)
A pstring consists of 1 byte length, a string of characters, and 0 or 1 byte pad to make the total length even. Usage. Reading AIFF files: f = aifc.open(file, 'r') where file is either the name of a file or an open file pointer. The open file pointer must have methods read(), seek(), and close(). In some types of audio files, if the setpos() method is not used, the seek() method is not necessary. This returns an instance of a class with the following public methods: getnchannels() -- returns number of audio channels (1 for mono, 2 for stereo) getsampwidth() -- returns sample width in bytes getframerate() -- returns sampling frequency getnframes() -- returns number of audio frames getcomptype() -- returns compression type ('NONE' for AIFF files) getcompname() -- returns human-readable version of compression type ('not compressed' for AIFF files) getparams() -- returns a tuple consisting of all of the above in the above order getmarkers() -- get the list of marks in the audio file or None if there are no marks getmark(id) -- get mark with the specified id (raises an error if the mark does not exist) readframes(n) -- returns at most n frames of audio rewind() -- rewind to the beginning of the audio stream setpos(pos) -- seek to the specified position tell() -- return the current position close() -- close the instance (make it unusable) The position returned by tell(), the position given to setpos() and the position of marks are all compatible and have nothing to do with the actual position in the file. The close() method is called automatically when the class instance is destroyed. Writing AIFF files: f = aifc.open(file, 'w') where file is either the name of a file or an open file pointer. The open file pointer must have methods write(), tell(), seek(), and close(). This returns an instance of a class with the following public methods: aiff() -- create an AIFF file (AIFF-C default) aifc() -- create an AIFF-C file setnchannels(n) -- set the number of channels setsampwidth(n) -- set the sample width setframerate(n) -- set the frame rate setnframes(n) -- set the number of frames setcomptype(type, name) -- set the compression type and the human-readable compression type setparams(tuple) -- set all parameters at once setmark(id, pos, name) -- add specified mark to the list of marks tell() -- return current position in output file (useful in combination with setmark()) writeframesraw(data) -- write audio frames without pathing up the file header writeframes(data) -- write audio frames and patch up the file header close() -- patch up the file header and close the output file You should set the parameters before the first writeframesraw or writeframes. The total number of frames does not need to be set, but when it is set to the correct value, the header does not have to be patched up. It is best to first set all parameters, perhaps possibly the compression type, and then write audio frames using writeframesraw. When all frames have been written, either call writeframes('') or close() to patch up the sizes in the header. Marks can be added anytime. If there are any marks, you must call close() after all frames have been written. The close() method is called automatically when the class instance is destroyed. When a file is opened with the extension '.aiff', an AIFF file is written, otherwise an AIFF-C file is written. This default can be changed by calling aiff() or aifc() before the first writeframes or writeframesraw. """ import struct import __builtin__ __all__ = ["Error","open","openfp"] class Error(Exception): pass _AIFC_version = 0xA2805140L # Version 1 of AIFF-C def _read_long(file): try: return struct.unpack('>l', file.read(4))[0] except struct.error: raise EOFError def _read_ulong(file): try: return struct.unpack('>L', file.read(4))[0] except struct.error: raise EOFError def _read_short(file): try: return struct.unpack('>h', file.read(2))[0] except struct.error: raise EOFError def _read_ushort(file): try: return struct.unpack('>H', file.read(2))[0] except struct.error: raise EOFError def _read_string(file): length = ord(file.read(1)) if length == 0: data = '' else: data = file.read(length) if length & 1 == 0: dummy = file.read(1) return data _HUGE_VAL = 1.79769313486231e+308 # See
def _read_float(f): # 10 bytes expon = _read_short(f) # 2 bytes sign = 1 if expon < 0: sign = -1 expon = expon + 0x8000 himant = _read_ulong(f) # 4 bytes lomant = _read_ulong(f) # 4 bytes if expon == himant == lomant == 0: f = 0.0 elif expon == 0x7FFF: f = _HUGE_VAL else: expon = expon - 16383 f = (himant * 0x100000000L + lomant) * pow(2.0, expon - 63) return sign * f def _write_short(f, x): f.write(struct.pack('>h', x)) def _write_ushort(f, x): f.write(struct.pack('>H', x)) def _write_long(f, x): f.write(struct.pack('>l', x)) def _write_ulong(f, x): f.write(struct.pack('>L', x)) def _write_string(f, s): if len(s) > 255: raise ValueError("string exceeds maximum pstring length") f.write(struct.pack('B', len(s))) f.write(s) if len(s) & 1 == 0: f.write(chr(0)) def _write_float(f, x): import math if x < 0: sign = 0x8000 x = x * -1 else: sign = 0 if x == 0: expon = 0 himant = 0 lomant = 0 else: fmant, expon = math.frexp(x) if expon > 16384 or fmant >= 1 or fmant != fmant: # Infinity or NaN expon = sign|0x7FFF himant = 0 lomant = 0 else: # Finite expon = expon + 16382 if expon < 0: # denormalized fmant = math.ldexp(fmant, expon) expon = 0 expon = expon | sign fmant = math.ldexp(fmant, 32) fsmant = math.floor(fmant) himant = long(fsmant) fmant = math.ldexp(fmant - fsmant, 32) fsmant = math.floor(fmant) lomant = long(fsmant) _write_ushort(f, expon) _write_ulong(f, himant) _write_ulong(f, lomant) from chunk import Chunk class Aifc_read: # Variables used in this class: # # These variables are available to the user though appropriate # methods of this class: # _file -- the open file with methods read(), close(), and seek() # set through the __init__() method # _nchannels -- the number of audio channels # available through the getnchannels() method # _nframes -- the number of audio frames # available through the getnframes() method # _sampwidth -- the number of bytes per audio sample # available through the getsampwidth() method # _framerate -- the sampling frequency # available through the getframerate() method # _comptype -- the AIFF-C compression type ('NONE' if AIFF) # available through the getcomptype() method # _compname -- the human-readable AIFF-C compression type # available through the getcomptype() method # _markers -- the marks in the audio file # available through the getmarkers() and getmark() # methods # _soundpos -- the position in the audio stream # available through the tell() method, set through the # setpos() method # # These variables are used internally only: # _version -- the AIFF-C version number # _decomp -- the decompressor from builtin module cl # _comm_chunk_read -- 1 iff the COMM chunk has been read # _aifc -- 1 iff reading an AIFF-C file # _ssnd_seek_needed -- 1 iff positioned correctly in audio # file for readframes() # _ssnd_chunk -- instantiation of a chunk class for the SSND chunk # _framesize -- size of one frame in the file def initfp(self, file): self._version = 0 self._decomp = None self._convert = None self._markers = [] self._soundpos = 0 self._file = file chunk = Chunk(file) if chunk.getname() != 'FORM': raise Error, 'file does not start with FORM id' formdata = chunk.read(4) if formdata == 'AIFF': self._aifc = 0 elif formdata == 'AIFC': self._aifc = 1 else: raise Error, 'not an AIFF or AIFF-C file' self._comm_chunk_read = 0 while 1: self._ssnd_seek_needed = 1 try: chunk = Chunk(self._file) except EOFError: break chunkname = chunk.getname() if chunkname == 'COMM': self._read_comm_chunk(chunk) self._comm_chunk_read = 1 elif chunkname == 'SSND': self._ssnd_chunk = chunk dummy = chunk.read(8) self._ssnd_seek_needed = 0 elif chunkname == 'FVER': self._version = _read_ulong(chunk) elif chunkname == 'MARK': self._readmark(chunk) chunk.skip() if not self._comm_chunk_read or not self._ssnd_chunk: raise Error, 'COMM chunk and/or SSND chunk missing' if self._aifc and self._decomp: import cl params = [cl.ORIGINAL_FORMAT, 0, cl.BITS_PER_COMPONENT, self._sampwidth * 8, cl.FRAME_RATE, self._framerate] if self._nchannels == 1: params[1] = cl.MONO elif self._nchannels == 2: params[1] = cl.STEREO_INTERLEAVED else: raise Error, 'cannot compress more than 2 channels' self._decomp.SetParams(params) def __init__(self, f): if type(f) == type(''): f = __builtin__.open(f, 'rb') # else, assume it is an open file object already self.initfp(f) # # User visible methods. # def getfp(self): return self._file def rewind(self): self._ssnd_seek_needed = 1 self._soundpos = 0 def close(self): decomp = self._decomp try: if decomp: self._decomp = None decomp.CloseDecompressor() finally: self._file.close() def tell(self): return self._soundpos def getnchannels(self): return self._nchannels def getnframes(self): return self._nframes def getsampwidth(self): return self._sampwidth def getframerate(self): return self._framerate def getcomptype(self): return self._comptype def getcompname(self): return self._compname ## def getversion(self): ## return self._version def getparams(self): return self.getnchannels(), self.getsampwidth(), \ self.getframerate(), self.getnframes(), \ self.getcomptype(), self.getcompname() def getmarkers(self): if len(self._markers) == 0: return None return self._markers def getmark(self, id): for marker in self._markers: if id == marker[0]: return marker raise Error, 'marker %r does not exist' % (id,) def setpos(self, pos): if pos < 0 or pos > self._nframes: raise Error, 'position not in range' self._soundpos = pos self._ssnd_seek_needed = 1 def readframes(self, nframes): if self._ssnd_seek_needed: self._ssnd_chunk.seek(0) dummy = self._ssnd_chunk.read(8) pos = self._soundpos * self._framesize if pos: self._ssnd_chunk.seek(pos + 8) self._ssnd_seek_needed = 0 if nframes == 0: return '' data = self._ssnd_chunk.read(nframes * self._framesize) if self._convert and data: data = self._convert(data) self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth) return data # # Internal methods. # def _decomp_data(self, data): import cl dummy = self._decomp.SetParam(cl.FRAME_BUFFER_SIZE, len(data) * 2) return self._decomp.Decompress(len(data) // self._nchannels, data) def _ulaw2lin(self, data): import audioop return audioop.ulaw2lin(data, 2) def _adpcm2lin(self, data): import audioop if not hasattr(self, '_adpcmstate'): # first time self._adpcmstate = None data, self._adpcmstate = audioop.adpcm2lin(data, 2, self._adpcmstate) return data def _read_comm_chunk(self, chunk): self._nchannels = _read_short(chunk) self._nframes = _read_long(chunk) self._sampwidth = (_read_short(chunk) + 7) // 8 self._framerate = int(_read_float(chunk)) self._framesize = self._nchannels * self._sampwidth if self._aifc: #DEBUG: SGI's soundeditor produces a bad size :-( kludge = 0 if chunk.chunksize == 18: kludge = 1 print 'Warning: bad COMM chunk size' chunk.chunksize = 23 #DEBUG end self._comptype = chunk.read(4) #DEBUG start if kludge: length = ord(chunk.file.read(1)) if length & 1 == 0: length = length + 1 chunk.chunksize = chunk.chunksize + length chunk.file.seek(-1, 1) #DEBUG end self._compname = _read_string(chunk) if self._comptype != 'NONE': if self._comptype == 'G722': try: import audioop except ImportError: pass else: self._convert = self._adpcm2lin self._sampwidth = 2 return # for ULAW and ALAW try Compression Library try: import cl except ImportError: if self._comptype in ('ULAW', 'ulaw'): try: import audioop self._convert = self._ulaw2lin self._sampwidth = 2 return except ImportError: pass raise Error, 'cannot read compressed AIFF-C files' if self._comptype in ('ULAW', 'ulaw'): scheme = cl.G711_ULAW elif self._comptype in ('ALAW', 'alaw'): scheme = cl.G711_ALAW else: raise Error, 'unsupported compression type' self._decomp = cl.OpenDecompressor(scheme) self._convert = self._decomp_data self._sampwidth = 2 else: self._comptype = 'NONE' self._compname = 'not compressed' def _readmark(self, chunk): nmarkers = _read_short(chunk) # Some files appear to contain invalid counts. # Cope with this by testing for EOF. try: for i in range(nmarkers): id = _read_short(chunk) pos = _read_long(chunk) name = _read_string(chunk) if pos or name: # some files appear to have # dummy markers consisting of # a position 0 and name '' self._markers.append((id, pos, name)) except EOFError: print 'Warning: MARK chunk contains only', print len(self._markers), if len(self._markers) == 1: print 'marker', else: print 'markers', print 'instead of', nmarkers class Aifc_write: # Variables used in this class: # # These variables are user settable through appropriate methods # of this class: # _file -- the open file with methods write(), close(), tell(), seek() # set through the __init__() method # _comptype -- the AIFF-C compression type ('NONE' in AIFF) # set through the setcomptype() or setparams() method # _compname -- the human-readable AIFF-C compression type # set through the setcomptype() or setparams() method # _nchannels -- the number of audio channels # set through the setnchannels() or setparams() method # _sampwidth -- the number of bytes per audio sample # set through the setsampwidth() or setparams() method # _framerate -- the sampling frequency # set through the setframerate() or setparams() method # _nframes -- the number of audio frames written to the header # set through the setnframes() or setparams() method # _aifc -- whether we're writing an AIFF-C file or an AIFF file # set through the aifc() method, reset through the # aiff() method # # These variables are used internally only: # _version -- the AIFF-C version number # _comp -- the compressor from builtin module cl # _nframeswritten -- the number of audio frames actually written # _datalength -- the size of the audio samples written to the header # _datawritten -- the size of the audio samples actually written def __init__(self, f): if type(f) == type(''): filename = f f = __builtin__.open(f, 'wb') else: # else, assume it is an open file object already filename = '???' self.initfp(f) if filename[-5:] == '.aiff': self._aifc = 0 else: self._aifc = 1 def initfp(self, file): self._file = file self._version = _AIFC_version self._comptype = 'NONE' self._compname = 'not compressed' self._comp = None self._convert = None self._nchannels = 0 self._sampwidth = 0 self._framerate = 0 self._nframes = 0 self._nframeswritten = 0 self._datawritten = 0 self._datalength = 0 self._markers = [] self._marklength = 0 self._aifc = 1 # AIFF-C is default def __del__(self): if self._file: self.close() # # User visible methods. # def aiff(self): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' self._aifc = 0 def aifc(self): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' self._aifc = 1 def setnchannels(self, nchannels): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' if nchannels < 1: raise Error, 'bad # of channels' self._nchannels = nchannels def getnchannels(self): if not self._nchannels: raise Error, 'number of channels not set' return self._nchannels def setsampwidth(self, sampwidth): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' if sampwidth < 1 or sampwidth > 4: raise Error, 'bad sample width' self._sampwidth = sampwidth def getsampwidth(self): if not self._sampwidth: raise Error, 'sample width not set' return self._sampwidth def setframerate(self, framerate): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' if framerate <= 0: raise Error, 'bad frame rate' self._framerate = framerate def getframerate(self): if not self._framerate: raise Error, 'frame rate not set' return self._framerate def setnframes(self, nframes): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' self._nframes = nframes def getnframes(self): return self._nframeswritten def setcomptype(self, comptype, compname): if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' if comptype not in ('NONE', 'ULAW', 'ulaw', 'ALAW', 'alaw', 'G722'): raise Error, 'unsupported compression type' self._comptype = comptype self._compname = compname def getcomptype(self): return self._comptype def getcompname(self): return self._compname ## def setversion(self, version): ## if self._nframeswritten: ## raise Error, 'cannot change parameters after starting to write' ## self._version = version def setparams(self, info): nchannels, sampwidth, framerate, nframes, comptype, compname = info if self._nframeswritten: raise Error, 'cannot change parameters after starting to write' if comptype not in ('NONE', 'ULAW', 'ulaw', 'ALAW', 'alaw', 'G722'): raise Error, 'unsupported compression type' self.setnchannels(nchannels) self.setsampwidth(sampwidth) self.setframerate(framerate) self.setnframes(nframes) self.setcomptype(comptype, compname) def getparams(self): if not self._nchannels or not self._sampwidth or not self._framerate: raise Error, 'not all parameters set' return self._nchannels, self._sampwidth, self._framerate, \ self._nframes, self._comptype, self._compname def setmark(self, id, pos, name): if id <= 0: raise Error, 'marker ID must be > 0' if pos < 0: raise Error, 'marker position must be >= 0' if type(name) != type(''): raise Error, 'marker name must be a string' for i in range(len(self._markers)): if id == self._markers[i][0]: self._markers[i] = id, pos, name return self._markers.append((id, pos, name)) def getmark(self, id): for marker in self._markers: if id == marker[0]: return marker raise Error, 'marker %r does not exist' % (id,) def getmarkers(self): if len(self._markers) == 0: return None return self._markers def tell(self): return self._nframeswritten def writeframesraw(self, data): self._ensure_header_written(len(data)) nframes = len(data) // (self._sampwidth * self._nchannels) if self._convert: data = self._convert(data) self._file.write(data) self._nframeswritten = self._nframeswritten + nframes self._datawritten = self._datawritten + len(data) def writeframes(self, data): self.writeframesraw(data) if self._nframeswritten != self._nframes or \ self._datalength != self._datawritten: self._patchheader() def close(self): if self._file is None: return try: self._ensure_header_written(0) if self._datawritten & 1: # quick pad to even size self._file.write(chr(0)) self._datawritten = self._datawritten + 1 self._writemarkers() if self._nframeswritten != self._nframes or \ self._datalength != self._datawritten or \ self._marklength: self._patchheader() if self._comp: self._comp.CloseCompressor() self._comp = None finally: # Prevent ref cycles self._convert = None f = self._file self._file = None f.close() # # Internal methods. # def _comp_data(self, data): import cl dummy = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data)) dummy = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data)) return self._comp.Compress(self._nframes, data) def _lin2ulaw(self, data): import audioop return audioop.lin2ulaw(data, 2) def _lin2adpcm(self, data): import audioop if not hasattr(self, '_adpcmstate'): self._adpcmstate = None data, self._adpcmstate = audioop.lin2adpcm(data, 2, self._adpcmstate) return data def _ensure_header_written(self, datasize): if not self._nframeswritten: if self._comptype in ('ULAW', 'ulaw', 'ALAW', 'alaw'): if not self._sampwidth: self._sampwidth = 2 if self._sampwidth != 2: raise Error, 'sample width must be 2 when compressing with ULAW or ALAW' if self._comptype == 'G722': if not self._sampwidth: self._sampwidth = 2 if self._sampwidth != 2: raise Error, 'sample width must be 2 when compressing with G7.22 (ADPCM)' if not self._nchannels: raise Error, '# channels not specified' if not self._sampwidth: raise Error, 'sample width not specified' if not self._framerate: raise Error, 'sampling rate not specified' self._write_header(datasize) def _init_compression(self): if self._comptype == 'G722': self._convert = self._lin2adpcm return try: import cl except ImportError: if self._comptype in ('ULAW', 'ulaw'): try: import audioop self._convert = self._lin2ulaw return except ImportError: pass raise Error, 'cannot write compressed AIFF-C files' if self._comptype in ('ULAW', 'ulaw'): scheme = cl.G711_ULAW elif self._comptype in ('ALAW', 'alaw'): scheme = cl.G711_ALAW else: raise Error, 'unsupported compression type' self._comp = cl.OpenCompressor(scheme) params = [cl.ORIGINAL_FORMAT, 0, cl.BITS_PER_COMPONENT, self._sampwidth * 8, cl.FRAME_RATE, self._framerate, cl.FRAME_BUFFER_SIZE, 100, cl.COMPRESSED_BUFFER_SIZE, 100] if self._nchannels == 1: params[1] = cl.MONO elif self._nchannels == 2: params[1] = cl.STEREO_INTERLEAVED else: raise Error, 'cannot compress more than 2 channels' self._comp.SetParams(params) # the compressor produces a header which we ignore dummy = self._comp.Compress(0, '') self._convert = self._comp_data def _write_header(self, initlength): if self._aifc and self._comptype != 'NONE': self._init_compression() self._file.write('FORM') if not self._nframes: self._nframes = initlength // (self._nchannels * self._sampwidth) self._datalength = self._nframes * self._nchannels * self._sampwidth if self._datalength & 1: self._datalength = self._datalength + 1 if self._aifc: if self._comptype in ('ULAW', 'ulaw', 'ALAW', 'alaw'): self._datalength = self._datalength // 2 if self._datalength & 1: self._datalength = self._datalength + 1 elif self._comptype == 'G722': self._datalength = (self._datalength + 3) // 4 if self._datalength & 1: self._datalength = self._datalength + 1 try: self._form_length_pos = self._file.tell() except (AttributeError, IOError): self._form_length_pos = None commlength = self._write_form_length(self._datalength) if self._aifc: self._file.write('AIFC') self._file.write('FVER') _write_ulong(self._file, 4) _write_ulong(self._file, self._version) else: self._file.write('AIFF') self._file.write('COMM') _write_ulong(self._file, commlength) _write_short(self._file, self._nchannels) if self._form_length_pos is not None: self._nframes_pos = self._file.tell() _write_ulong(self._file, self._nframes) if self._comptype in ('ULAW', 'ulaw', 'ALAW', 'alaw', 'G722'): _write_short(self._file, 8) else: _write_short(self._file, self._sampwidth * 8) _write_float(self._file, self._framerate) if self._aifc: self._file.write(self._comptype) _write_string(self._file, self._compname) self._file.write('SSND') if self._form_length_pos is not None: self._ssnd_length_pos = self._file.tell() _write_ulong(self._file, self._datalength + 8) _write_ulong(self._file, 0) _write_ulong(self._file, 0) def _write_form_length(self, datalength): if self._aifc: commlength = 18 + 5 + len(self._compname) if commlength & 1: commlength = commlength + 1 verslength = 12 else: commlength = 18 verslength = 0 _write_ulong(self._file, 4 + verslength + self._marklength + \ 8 + commlength + 16 + datalength) return commlength def _patchheader(self): curpos = self._file.tell() if self._datawritten & 1: datalength = self._datawritten + 1 self._file.write(chr(0)) else: datalength = self._datawritten if datalength == self._datalength and \ self._nframes == self._nframeswritten and \ self._marklength == 0: self._file.seek(curpos, 0) return self._file.seek(self._form_length_pos, 0) dummy = self._write_form_length(datalength) self._file.seek(self._nframes_pos, 0) _write_ulong(self._file, self._nframeswritten) self._file.seek(self._ssnd_length_pos, 0) _write_ulong(self._file, datalength + 8) self._file.seek(curpos, 0) self._nframes = self._nframeswritten self._datalength = datalength def _writemarkers(self): if len(self._markers) == 0: return self._file.write('MARK') length = 2 for marker in self._markers: id, pos, name = marker length = length + len(name) + 1 + 6 if len(name) & 1 == 0: length = length + 1 _write_ulong(self._file, length) self._marklength = length + 8 _write_short(self._file, len(self._markers)) for marker in self._markers: id, pos, name = marker _write_short(self._file, id) _write_ulong(self._file, pos) _write_string(self._file, name) def open(f, mode=None): if mode is None: if hasattr(f, 'mode'): mode = f.mode else: mode = 'rb' if mode in ('r', 'rb'): return Aifc_read(f) elif mode in ('w', 'wb'): return Aifc_write(f) else: raise Error, "mode must be 'r', 'rb', 'w', or 'wb'" openfp = open # B/W compatibility if __name__ == '__main__': import sys if not sys.argv[1:]: sys.argv.append('/usr/demos/data/audio/bach.aiff') fn = sys.argv[1] f = open(fn, 'r') try: print "Reading", fn print "nchannels =", f.getnchannels() print "nframes =", f.getnframes() print "sampwidth =", f.getsampwidth() print "framerate =", f.getframerate() print "comptype =", f.getcomptype() print "compname =", f.getcompname() if sys.argv[2:]: gn = sys.argv[2] print "Writing", gn g = open(gn, 'w') try: g.setparams(f.getparams()) while 1: data = f.readframes(1024) if not data: break g.writeframes(data) finally: g.close() print "Done." finally: f.close()
.
442 Items
Change directory
Remove directory
Rename directory
..
72 Items
Change directory
Remove directory
Rename directory
BaseHTTPServer.py
22.21 KB
Edit
Delete
Copy
Move
Remame
BaseHTTPServer.pyc
21.17 KB
Edit
Delete
Copy
Move
Remame
Bastion.py
5.61 KB
Edit
Delete
Copy
Move
Remame
Bastion.pyc
6.47 KB
Edit
Delete
Copy
Move
Remame
CGIHTTPServer.py
12.78 KB
Edit
Delete
Copy
Move
Remame
CGIHTTPServer.pyc
10.73 KB
Edit
Delete
Copy
Move
Remame
ConfigParser.py
27.1 KB
Edit
Delete
Copy
Move
Remame
ConfigParser.pyc
24.51 KB
Edit
Delete
Copy
Move
Remame
Cookie.py
25.92 KB
Edit
Delete
Copy
Move
Remame
Cookie.pyc
22.05 KB
Edit
Delete
Copy
Move
Remame
DocXMLRPCServer.py
10.25 KB
Edit
Delete
Copy
Move
Remame
DocXMLRPCServer.pyc
9.57 KB
Edit
Delete
Copy
Move
Remame
HTMLParser.py
16.73 KB
Edit
Delete
Copy
Move
Remame
HTMLParser.pyc
13.34 KB
Edit
Delete
Copy
Move
Remame
LICENSE.txt
12.47 KB
Edit
Delete
Copy
Move
Remame
MimeWriter.py
6.33 KB
Edit
Delete
Copy
Move
Remame
MimeWriter.pyc
7.17 KB
Edit
Delete
Copy
Move
Remame
Queue.py
8.38 KB
Edit
Delete
Copy
Move
Remame
Queue.pyc
9.15 KB
Edit
Delete
Copy
Move
Remame
SimpleHTTPServer.py
7.81 KB
Edit
Delete
Copy
Move
Remame
SimpleHTTPServer.pyc
7.8 KB
Edit
Delete
Copy
Move
Remame
SimpleXMLRPCServer.py
25.21 KB
Edit
Delete
Copy
Move
Remame
SimpleXMLRPCServer.pyc
22.26 KB
Edit
Delete
Copy
Move
Remame
SocketServer.py
23.24 KB
Edit
Delete
Copy
Move
Remame
SocketServer.pyc
23.39 KB
Edit
Delete
Copy
Move
Remame
StringIO.py
10.41 KB
Edit
Delete
Copy
Move
Remame
StringIO.pyc
11.17 KB
Edit
Delete
Copy
Move
Remame
UserDict.py
6.89 KB
Edit
Delete
Copy
Move
Remame
UserDict.pyc
9.4 KB
Edit
Delete
Copy
Move
Remame
UserList.py
3.56 KB
Edit
Delete
Copy
Move
Remame
UserList.pyc
6.36 KB
Edit
Delete
Copy
Move
Remame
UserString.py
9.46 KB
Edit
Delete
Copy
Move
Remame
UserString.pyc
14.38 KB
Edit
Delete
Copy
Move
Remame
_LWPCookieJar.py
6.4 KB
Edit
Delete
Copy
Move
Remame
_LWPCookieJar.pyc
5.29 KB
Edit
Delete
Copy
Move
Remame
_MozillaCookieJar.py
5.66 KB
Edit
Delete
Copy
Move
Remame
_MozillaCookieJar.pyc
4.35 KB
Edit
Delete
Copy
Move
Remame
__future__.py
4.28 KB
Edit
Delete
Copy
Move
Remame
__future__.pyc
4.11 KB
Edit
Delete
Copy
Move
Remame
__phello__.foo.py
0.06 KB
Edit
Delete
Copy
Move
Remame
__phello__.foo.pyc
0.12 KB
Edit
Delete
Copy
Move
Remame
_abcoll.py
18.18 KB
Edit
Delete
Copy
Move
Remame
_abcoll.pyc
24.88 KB
Edit
Delete
Copy
Move
Remame
_osx_support.py
18.65 KB
Edit
Delete
Copy
Move
Remame
_osx_support.pyc
11.45 KB
Edit
Delete
Copy
Move
Remame
_pyio.py
67.96 KB
Edit
Delete
Copy
Move
Remame
_pyio.pyc
62.82 KB
Edit
Delete
Copy
Move
Remame
_strptime.py
20.24 KB
Edit
Delete
Copy
Move
Remame
_strptime.pyc
14.77 KB
Edit
Delete
Copy
Move
Remame
_sysconfigdata.py
0.12 KB
Edit
Delete
Copy
Move
Remame
_sysconfigdata.pyc
0.27 KB
Edit
Delete
Copy
Move
Remame
_threading_local.py
7.28 KB
Edit
Delete
Copy
Move
Remame
_threading_local.pyc
6.4 KB
Edit
Delete
Copy
Move
Remame
_weakrefset.py
5.77 KB
Edit
Delete
Copy
Move
Remame
_weakrefset.pyc
9.36 KB
Edit
Delete
Copy
Move
Remame
abc.py
6.98 KB
Edit
Delete
Copy
Move
Remame
abc.pyc
5.98 KB
Edit
Delete
Copy
Move
Remame
aifc.py
33.49 KB
Edit
Delete
Copy
Move
Remame
aifc.pyc
29.5 KB
Edit
Delete
Copy
Move
Remame
antigravity.py
0.06 KB
Edit
Delete
Copy
Move
Remame
antigravity.pyc
0.2 KB
Edit
Delete
Copy
Move
Remame
anydbm.py
2.6 KB
Edit
Delete
Copy
Move
Remame
anydbm.pyc
2.73 KB
Edit
Delete
Copy
Move
Remame
argparse.egg-info
0.21 KB
Edit
Delete
Copy
Move
Remame
argparse.py
87.04 KB
Edit
Delete
Copy
Move
Remame
argparse.pyc
62.54 KB
Edit
Delete
Copy
Move
Remame
ast.py
11.53 KB
Edit
Delete
Copy
Move
Remame
ast.pyc
12.59 KB
Edit
Delete
Copy
Move
Remame
asynchat.py
11.33 KB
Edit
Delete
Copy
Move
Remame
asynchat.pyc
8.55 KB
Edit
Delete
Copy
Move
Remame
asyncore.py
20.36 KB
Edit
Delete
Copy
Move
Remame
asyncore.pyc
18.28 KB
Edit
Delete
Copy
Move
Remame
atexit.py
1.67 KB
Edit
Delete
Copy
Move
Remame
atexit.pyc
2.14 KB
Edit
Delete
Copy
Move
Remame
audiodev.py
7.42 KB
Edit
Delete
Copy
Move
Remame
audiodev.pyc
8.22 KB
Edit
Delete
Copy
Move
Remame
base64.py
11.53 KB
Edit
Delete
Copy
Move
Remame
base64.pyc
11 KB
Edit
Delete
Copy
Move
Remame
bdb.py
21.21 KB
Edit
Delete
Copy
Move
Remame
bdb.pyc
18.53 KB
Edit
Delete
Copy
Move
Remame
binhex.py
14.35 KB
Edit
Delete
Copy
Move
Remame
binhex.pyc
15 KB
Edit
Delete
Copy
Move
Remame
bisect.py
2.53 KB
Edit
Delete
Copy
Move
Remame
bisect.pyc
2.99 KB
Edit
Delete
Copy
Move
Remame
bsddb
14 Items
Change directory
Remove directory
Rename directory
cProfile.py
6.36 KB
Edit
Delete
Copy
Move
Remame
cProfile.pyc
6.13 KB
Edit
Delete
Copy
Move
Remame
calendar.py
22.84 KB
Edit
Delete
Copy
Move
Remame
calendar.pyc
27.1 KB
Edit
Delete
Copy
Move
Remame
cgi.py
34.01 KB
Edit
Delete
Copy
Move
Remame
cgi.pyc
31.67 KB
Edit
Delete
Copy
Move
Remame
cgitb.py
11.89 KB
Edit
Delete
Copy
Move
Remame
cgitb.pyc
11.85 KB
Edit
Delete
Copy
Move
Remame
chunk.py
5.29 KB
Edit
Delete
Copy
Move
Remame
chunk.pyc
5.45 KB
Edit
Delete
Copy
Move
Remame
cmd.py
14.67 KB
Edit
Delete
Copy
Move
Remame
cmd.pyc
13.67 KB
Edit
Delete
Copy
Move
Remame
code.py
9.95 KB
Edit
Delete
Copy
Move
Remame
code.pyc
10.06 KB
Edit
Delete
Copy
Move
Remame
codecs.py
35.25 KB
Edit
Delete
Copy
Move
Remame
codecs.pyc
35.8 KB
Edit
Delete
Copy
Move
Remame
codeop.py
5.86 KB
Edit
Delete
Copy
Move
Remame
codeop.pyc
6.42 KB
Edit
Delete
Copy
Move
Remame
collections.py
27.15 KB
Edit
Delete
Copy
Move
Remame
collections.pyc
25.45 KB
Edit
Delete
Copy
Move
Remame
colorsys.py
3.6 KB
Edit
Delete
Copy
Move
Remame
colorsys.pyc
3.88 KB
Edit
Delete
Copy
Move
Remame
commands.py
2.49 KB
Edit
Delete
Copy
Move
Remame
commands.pyc
2.4 KB
Edit
Delete
Copy
Move
Remame
compileall.py
7.58 KB
Edit
Delete
Copy
Move
Remame
compileall.pyc
6.84 KB
Edit
Delete
Copy
Move
Remame
compiler
22 Items
Change directory
Remove directory
Rename directory
contextlib.py
4.32 KB
Edit
Delete
Copy
Move
Remame
contextlib.pyc
4.33 KB
Edit
Delete
Copy
Move
Remame
cookielib.py
63.48 KB
Edit
Delete
Copy
Move
Remame
cookielib.pyc
52.98 KB
Edit
Delete
Copy
Move
Remame
copy.py
11.26 KB
Edit
Delete
Copy
Move
Remame
copy.pyc
11.83 KB
Edit
Delete
Copy
Move
Remame
copy_reg.py
6.64 KB
Edit
Delete
Copy
Move
Remame
copy_reg.pyc
4.95 KB
Edit
Delete
Copy
Move
Remame
csv.py
16.32 KB
Edit
Delete
Copy
Move
Remame
csv.pyc
13.14 KB
Edit
Delete
Copy
Move
Remame
ctypes
8 Items
Change directory
Remove directory
Rename directory
curses
12 Items
Change directory
Remove directory
Rename directory
dbhash.py
0.49 KB
Edit
Delete
Copy
Move
Remame
dbhash.pyc
0.7 KB
Edit
Delete
Copy
Move
Remame
decimal.py
216.73 KB
Edit
Delete
Copy
Move
Remame
decimal.pyc
167.62 KB
Edit
Delete
Copy
Move
Remame
difflib.py
80.4 KB
Edit
Delete
Copy
Move
Remame
difflib.pyc
60.34 KB
Edit
Delete
Copy
Move
Remame
dircache.py
1.1 KB
Edit
Delete
Copy
Move
Remame
dircache.pyc
1.53 KB
Edit
Delete
Copy
Move
Remame
dis.py
6.35 KB
Edit
Delete
Copy
Move
Remame
dis.pyc
6.07 KB
Edit
Delete
Copy
Move
Remame
dist-packages
1 Items
Change directory
Remove directory
Rename directory
distutils
58 Items
Change directory
Remove directory
Rename directory
doctest.py
102.75 KB
Edit
Delete
Copy
Move
Remame
doctest.pyc
81.49 KB
Edit
Delete
Copy
Move
Remame
dumbdbm.py
8.93 KB
Edit
Delete
Copy
Move
Remame
dumbdbm.pyc
6.55 KB
Edit
Delete
Copy
Move
Remame
dummy_thread.py
4.31 KB
Edit
Delete
Copy
Move
Remame
dummy_thread.pyc
5.24 KB
Edit
Delete
Copy
Move
Remame
dummy_threading.py
2.74 KB
Edit
Delete
Copy
Move
Remame
dummy_threading.pyc
1.25 KB
Edit
Delete
Copy
Move
Remame
email
29 Items
Change directory
Remove directory
Rename directory
encodings
240 Items
Change directory
Remove directory
Rename directory
ensurepip
6 Items
Change directory
Remove directory
Rename directory
filecmp.py
9.36 KB
Edit
Delete
Copy
Move
Remame
filecmp.pyc
9.36 KB
Edit
Delete
Copy
Move
Remame
fileinput.py
13.42 KB
Edit
Delete
Copy
Move
Remame
fileinput.pyc
14.1 KB
Edit
Delete
Copy
Move
Remame
fnmatch.py
3.24 KB
Edit
Delete
Copy
Move
Remame
fnmatch.pyc
3.52 KB
Edit
Delete
Copy
Move
Remame
formatter.py
14.56 KB
Edit
Delete
Copy
Move
Remame
formatter.pyc
18.58 KB
Edit
Delete
Copy
Move
Remame
fpformat.py
4.59 KB
Edit
Delete
Copy
Move
Remame
fpformat.pyc
4.55 KB
Edit
Delete
Copy
Move
Remame
fractions.py
21.87 KB
Edit
Delete
Copy
Move
Remame
fractions.pyc
19.17 KB
Edit
Delete
Copy
Move
Remame
ftplib.py
36.87 KB
Edit
Delete
Copy
Move
Remame
ftplib.pyc
33.63 KB
Edit
Delete
Copy
Move
Remame
functools.py
4.37 KB
Edit
Delete
Copy
Move
Remame
functools.pyc
5.86 KB
Edit
Delete
Copy
Move
Remame
genericpath.py
3.13 KB
Edit
Delete
Copy
Move
Remame
genericpath.pyc
3.41 KB
Edit
Delete
Copy
Move
Remame
getopt.py
7.15 KB
Edit
Delete
Copy
Move
Remame
getopt.pyc
6.48 KB
Edit
Delete
Copy
Move
Remame
getpass.py
5.43 KB
Edit
Delete
Copy
Move
Remame
getpass.pyc
4.62 KB
Edit
Delete
Copy
Move
Remame
gettext.py
22.06 KB
Edit
Delete
Copy
Move
Remame
gettext.pyc
17.45 KB
Edit
Delete
Copy
Move
Remame
glob.py
3.04 KB
Edit
Delete
Copy
Move
Remame
glob.pyc
2.86 KB
Edit
Delete
Copy
Move
Remame
gzip.py
18.58 KB
Edit
Delete
Copy
Move
Remame
gzip.pyc
14.78 KB
Edit
Delete
Copy
Move
Remame
hashlib.py
7.66 KB
Edit
Delete
Copy
Move
Remame
hashlib.pyc
6.73 KB
Edit
Delete
Copy
Move
Remame
heapq.py
17.87 KB
Edit
Delete
Copy
Move
Remame
heapq.pyc
14.19 KB
Edit
Delete
Copy
Move
Remame
hmac.py
4.48 KB
Edit
Delete
Copy
Move
Remame
hmac.pyc
4.42 KB
Edit
Delete
Copy
Move
Remame
hotshot
8 Items
Change directory
Remove directory
Rename directory
htmlentitydefs.py
17.63 KB
Edit
Delete
Copy
Move
Remame
htmlentitydefs.pyc
6.22 KB
Edit
Delete
Copy
Move
Remame
htmllib.py
12.57 KB
Edit
Delete
Copy
Move
Remame
htmllib.pyc
19.66 KB
Edit
Delete
Copy
Move
Remame
httplib.py
49.42 KB
Edit
Delete
Copy
Move
Remame
httplib.pyc
35.64 KB
Edit
Delete
Copy
Move
Remame
ihooks.py
18.54 KB
Edit
Delete
Copy
Move
Remame
ihooks.pyc
20.74 KB
Edit
Delete
Copy
Move
Remame
imaplib.py
47.28 KB
Edit
Delete
Copy
Move
Remame
imaplib.pyc
44.07 KB
Edit
Delete
Copy
Move
Remame
imghdr.py
3.46 KB
Edit
Delete
Copy
Move
Remame
imghdr.pyc
4.69 KB
Edit
Delete
Copy
Move
Remame
importlib
2 Items
Change directory
Remove directory
Rename directory
imputil.py
25.16 KB
Edit
Delete
Copy
Move
Remame
imputil.pyc
15.18 KB
Edit
Delete
Copy
Move
Remame
inspect.py
41.62 KB
Edit
Delete
Copy
Move
Remame
inspect.pyc
38.97 KB
Edit
Delete
Copy
Move
Remame
io.py
3.24 KB
Edit
Delete
Copy
Move
Remame
io.pyc
3.5 KB
Edit
Delete
Copy
Move
Remame
json
10 Items
Change directory
Remove directory
Rename directory
keyword.py
1.95 KB
Edit
Delete
Copy
Move
Remame
keyword.pyc
2.05 KB
Edit
Delete
Copy
Move
Remame
lib-dynload
38 Items
Change directory
Remove directory
Rename directory
lib-tk
36 Items
Change directory
Remove directory
Rename directory
lib2to3
26 Items
Change directory
Remove directory
Rename directory
linecache.py
3.93 KB
Edit
Delete
Copy
Move
Remame
linecache.pyc
3.18 KB
Edit
Delete
Copy
Move
Remame
locale.py
97.19 KB
Edit
Delete
Copy
Move
Remame
locale.pyc
53.69 KB
Edit
Delete
Copy
Move
Remame
logging
6 Items
Change directory
Remove directory
Rename directory
macpath.py
6.14 KB
Edit
Delete
Copy
Move
Remame
macpath.pyc
7.46 KB
Edit
Delete
Copy
Move
Remame
macurl2path.py
2.67 KB
Edit
Delete
Copy
Move
Remame
macurl2path.pyc
2.18 KB
Edit
Delete
Copy
Move
Remame
mailbox.py
79.34 KB
Edit
Delete
Copy
Move
Remame
mailbox.pyc
74.49 KB
Edit
Delete
Copy
Move
Remame
mailcap.py
7.25 KB
Edit
Delete
Copy
Move
Remame
mailcap.pyc
6.89 KB
Edit
Delete
Copy
Move
Remame
markupbase.py
14.3 KB
Edit
Delete
Copy
Move
Remame
markupbase.pyc
9.02 KB
Edit
Delete
Copy
Move
Remame
md5.py
0.35 KB
Edit
Delete
Copy
Move
Remame
md5.pyc
0.37 KB
Edit
Delete
Copy
Move
Remame
mhlib.py
32.65 KB
Edit
Delete
Copy
Move
Remame
mhlib.pyc
32.83 KB
Edit
Delete
Copy
Move
Remame
mimetools.py
7 KB
Edit
Delete
Copy
Move
Remame
mimetools.pyc
7.97 KB
Edit
Delete
Copy
Move
Remame
mimetypes.py
20.45 KB
Edit
Delete
Copy
Move
Remame
mimetypes.pyc
17.96 KB
Edit
Delete
Copy
Move
Remame
mimify.py
14.67 KB
Edit
Delete
Copy
Move
Remame
mimify.pyc
11.69 KB
Edit
Delete
Copy
Move
Remame
modulefinder.py
23.89 KB
Edit
Delete
Copy
Move
Remame
modulefinder.pyc
18.61 KB
Edit
Delete
Copy
Move
Remame
multifile.py
4.71 KB
Edit
Delete
Copy
Move
Remame
multifile.pyc
5.26 KB
Edit
Delete
Copy
Move
Remame
multiprocessing
25 Items
Change directory
Remove directory
Rename directory
mutex.py
1.83 KB
Edit
Delete
Copy
Move
Remame
mutex.pyc
2.44 KB
Edit
Delete
Copy
Move
Remame
netrc.py
5.73 KB
Edit
Delete
Copy
Move
Remame
netrc.pyc
4.54 KB
Edit
Delete
Copy
Move
Remame
new.py
0.6 KB
Edit
Delete
Copy
Move
Remame
new.pyc
0.84 KB
Edit
Delete
Copy
Move
Remame
nntplib.py
20.97 KB
Edit
Delete
Copy
Move
Remame
nntplib.pyc
20.46 KB
Edit
Delete
Copy
Move
Remame
ntpath.py
18.97 KB
Edit
Delete
Copy
Move
Remame
ntpath.pyc
12.78 KB
Edit
Delete
Copy
Move
Remame
nturl2path.py
2.36 KB
Edit
Delete
Copy
Move
Remame
nturl2path.pyc
1.77 KB
Edit
Delete
Copy
Move
Remame
numbers.py
10.08 KB
Edit
Delete
Copy
Move
Remame
numbers.pyc
13.56 KB
Edit
Delete
Copy
Move
Remame
opcode.py
5.35 KB
Edit
Delete
Copy
Move
Remame
opcode.pyc
5.99 KB
Edit
Delete
Copy
Move
Remame
optparse.py
59.77 KB
Edit
Delete
Copy
Move
Remame
optparse.pyc
52.36 KB
Edit
Delete
Copy
Move
Remame
os.py
25.3 KB
Edit
Delete
Copy
Move
Remame
os.pyc
24.98 KB
Edit
Delete
Copy
Move
Remame
os2emxpath.py
4.53 KB
Edit
Delete
Copy
Move
Remame
os2emxpath.pyc
4.4 KB
Edit
Delete
Copy
Move
Remame
pdb.doc
7.73 KB
Edit
Delete
Copy
Move
Remame
pdb.py
45.02 KB
Edit
Delete
Copy
Move
Remame
pdb.pyc
42.42 KB
Edit
Delete
Copy
Move
Remame
pickle.py
44.42 KB
Edit
Delete
Copy
Move
Remame
pickle.pyc
37.45 KB
Edit
Delete
Copy
Move
Remame
pickletools.py
72.79 KB
Edit
Delete
Copy
Move
Remame
pickletools.pyc
55.64 KB
Edit
Delete
Copy
Move
Remame
pipes.py
9.36 KB
Edit
Delete
Copy
Move
Remame
pipes.pyc
9.06 KB
Edit
Delete
Copy
Move
Remame
pkgutil.py
19.87 KB
Edit
Delete
Copy
Move
Remame
pkgutil.pyc
18.42 KB
Edit
Delete
Copy
Move
Remame
plat-x86_64-linux-gnu
10 Items
Change directory
Remove directory
Rename directory
platform.py
51.38 KB
Edit
Delete
Copy
Move
Remame
platform.pyc
36.84 KB
Edit
Delete
Copy
Move
Remame
plistlib.py
14.83 KB
Edit
Delete
Copy
Move
Remame
plistlib.pyc
18.67 KB
Edit
Delete
Copy
Move
Remame
popen2.py
8.22 KB
Edit
Delete
Copy
Move
Remame
popen2.pyc
8.78 KB
Edit
Delete
Copy
Move
Remame
poplib.py
12.52 KB
Edit
Delete
Copy
Move
Remame
poplib.pyc
12.97 KB
Edit
Delete
Copy
Move
Remame
posixfile.py
7.82 KB
Edit
Delete
Copy
Move
Remame
posixfile.pyc
7.45 KB
Edit
Delete
Copy
Move
Remame
posixpath.py
13.61 KB
Edit
Delete
Copy
Move
Remame
posixpath.pyc
11.12 KB
Edit
Delete
Copy
Move
Remame
pprint.py
11.5 KB
Edit
Delete
Copy
Move
Remame
pprint.pyc
9.92 KB
Edit
Delete
Copy
Move
Remame
profile.py
22.25 KB
Edit
Delete
Copy
Move
Remame
profile.pyc
15.99 KB
Edit
Delete
Copy
Move
Remame
pstats.py
26.09 KB
Edit
Delete
Copy
Move
Remame
pstats.pyc
24.31 KB
Edit
Delete
Copy
Move
Remame
pty.py
4.94 KB
Edit
Delete
Copy
Move
Remame
pty.pyc
4.83 KB
Edit
Delete
Copy
Move
Remame
py_compile.py
6.14 KB
Edit
Delete
Copy
Move
Remame
py_compile.pyc
6.46 KB
Edit
Delete
Copy
Move
Remame
pyclbr.py
13.07 KB
Edit
Delete
Copy
Move
Remame
pyclbr.pyc
9.4 KB
Edit
Delete
Copy
Move
Remame
pydoc.py
93.56 KB
Edit
Delete
Copy
Move
Remame
pydoc.pyc
89.91 KB
Edit
Delete
Copy
Move
Remame
pydoc_data
4 Items
Change directory
Remove directory
Rename directory
quopri.py
6.8 KB
Edit
Delete
Copy
Move
Remame
quopri.pyc
6.4 KB
Edit
Delete
Copy
Move
Remame
random.py
31.57 KB
Edit
Delete
Copy
Move
Remame
random.pyc
24.89 KB
Edit
Delete
Copy
Move
Remame
re.py
13.11 KB
Edit
Delete
Copy
Move
Remame
re.pyc
13.06 KB
Edit
Delete
Copy
Move
Remame
repr.py
4.2 KB
Edit
Delete
Copy
Move
Remame
repr.pyc
5.23 KB
Edit
Delete
Copy
Move
Remame
rexec.py
19.68 KB
Edit
Delete
Copy
Move
Remame
rexec.pyc
23.13 KB
Edit
Delete
Copy
Move
Remame
rfc822.py
32.76 KB
Edit
Delete
Copy
Move
Remame
rfc822.pyc
30.95 KB
Edit
Delete
Copy
Move
Remame
rlcompleter.py
5.85 KB
Edit
Delete
Copy
Move
Remame
rlcompleter.pyc
5.92 KB
Edit
Delete
Copy
Move
Remame
robotparser.py
7.41 KB
Edit
Delete
Copy
Move
Remame
robotparser.pyc
7.73 KB
Edit
Delete
Copy
Move
Remame
runpy.py
10.82 KB
Edit
Delete
Copy
Move
Remame
runpy.pyc
8.56 KB
Edit
Delete
Copy
Move
Remame
sched.py
4.97 KB
Edit
Delete
Copy
Move
Remame
sched.pyc
4.86 KB
Edit
Delete
Copy
Move
Remame
sets.py
18.6 KB
Edit
Delete
Copy
Move
Remame
sets.pyc
16.39 KB
Edit
Delete
Copy
Move
Remame
sgmllib.py
17.46 KB
Edit
Delete
Copy
Move
Remame
sgmllib.pyc
14.98 KB
Edit
Delete
Copy
Move
Remame
sha.py
0.38 KB
Edit
Delete
Copy
Move
Remame
sha.pyc
0.41 KB
Edit
Delete
Copy
Move
Remame
shelve.py
7.99 KB
Edit
Delete
Copy
Move
Remame
shelve.pyc
9.96 KB
Edit
Delete
Copy
Move
Remame
shlex.py
10.9 KB
Edit
Delete
Copy
Move
Remame
shlex.pyc
7.36 KB
Edit
Delete
Copy
Move
Remame
shutil.py
18.63 KB
Edit
Delete
Copy
Move
Remame
shutil.pyc
18.12 KB
Edit
Delete
Copy
Move
Remame
site.py
19.48 KB
Edit
Delete
Copy
Move
Remame
site.pyc
19.08 KB
Edit
Delete
Copy
Move
Remame
sitecustomize.py
0.15 KB
Edit
Delete
Copy
Move
Remame
sitecustomize.pyc
0.23 KB
Edit
Delete
Copy
Move
Remame
smtpd.py
18.11 KB
Edit
Delete
Copy
Move
Remame
smtpd.pyc
15.45 KB
Edit
Delete
Copy
Move
Remame
smtplib.py
31.35 KB
Edit
Delete
Copy
Move
Remame
smtplib.pyc
29.47 KB
Edit
Delete
Copy
Move
Remame
sndhdr.py
5.83 KB
Edit
Delete
Copy
Move
Remame
sndhdr.pyc
7.16 KB
Edit
Delete
Copy
Move
Remame
socket.py
20.13 KB
Edit
Delete
Copy
Move
Remame
socket.pyc
15.71 KB
Edit
Delete
Copy
Move
Remame
sqlite3
6 Items
Change directory
Remove directory
Rename directory
sre.py
0.38 KB
Edit
Delete
Copy
Move
Remame
sre.pyc
0.5 KB
Edit
Delete
Copy
Move
Remame
sre_compile.py
19.35 KB
Edit
Delete
Copy
Move
Remame
sre_compile.pyc
12.24 KB
Edit
Delete
Copy
Move
Remame
sre_constants.py
7.03 KB
Edit
Delete
Copy
Move
Remame
sre_constants.pyc
6.04 KB
Edit
Delete
Copy
Move
Remame
sre_parse.py
28.23 KB
Edit
Delete
Copy
Move
Remame
sre_parse.pyc
19.48 KB
Edit
Delete
Copy
Move
Remame
ssl.py
36.92 KB
Edit
Delete
Copy
Move
Remame
ssl.pyc
31.47 KB
Edit
Delete
Copy
Move
Remame
stat.py
1.8 KB
Edit
Delete
Copy
Move
Remame
stat.pyc
2.67 KB
Edit
Delete
Copy
Move
Remame
statvfs.py
0.88 KB
Edit
Delete
Copy
Move
Remame
statvfs.pyc
0.6 KB
Edit
Delete
Copy
Move
Remame
string.py
21.04 KB
Edit
Delete
Copy
Move
Remame
string.pyc
19.88 KB
Edit
Delete
Copy
Move
Remame
stringold.py
12.16 KB
Edit
Delete
Copy
Move
Remame
stringold.pyc
12.2 KB
Edit
Delete
Copy
Move
Remame
stringprep.py
13.21 KB
Edit
Delete
Copy
Move
Remame
stringprep.pyc
14.11 KB
Edit
Delete
Copy
Move
Remame
struct.py
0.08 KB
Edit
Delete
Copy
Move
Remame
struct.pyc
0.23 KB
Edit
Delete
Copy
Move
Remame
subprocess.py
48.26 KB
Edit
Delete
Copy
Move
Remame
subprocess.pyc
30.8 KB
Edit
Delete
Copy
Move
Remame
sunau.py
16.82 KB
Edit
Delete
Copy
Move
Remame
sunau.pyc
17.87 KB
Edit
Delete
Copy
Move
Remame
sunaudio.py
1.37 KB
Edit
Delete
Copy
Move
Remame
sunaudio.pyc
1.93 KB
Edit
Delete
Copy
Move
Remame
symbol.py
2.01 KB
Edit
Delete
Copy
Move
Remame
symbol.pyc
2.95 KB
Edit
Delete
Copy
Move
Remame
symtable.py
7.26 KB
Edit
Delete
Copy
Move
Remame
symtable.pyc
11.41 KB
Edit
Delete
Copy
Move
Remame
sysconfig.py
24.61 KB
Edit
Delete
Copy
Move
Remame
sysconfig.pyc
18.19 KB
Edit
Delete
Copy
Move
Remame
tabnanny.py
11.07 KB
Edit
Delete
Copy
Move
Remame
tabnanny.pyc
8.01 KB
Edit
Delete
Copy
Move
Remame
tarfile.py
88.45 KB
Edit
Delete
Copy
Move
Remame
tarfile.pyc
74.02 KB
Edit
Delete
Copy
Move
Remame
telnetlib.py
26.41 KB
Edit
Delete
Copy
Move
Remame
telnetlib.pyc
22.54 KB
Edit
Delete
Copy
Move
Remame
tempfile.py
19.09 KB
Edit
Delete
Copy
Move
Remame
tempfile.pyc
19.76 KB
Edit
Delete
Copy
Move
Remame
test
8 Items
Change directory
Remove directory
Rename directory
textwrap.py
16.81 KB
Edit
Delete
Copy
Move
Remame
textwrap.pyc
11.72 KB
Edit
Delete
Copy
Move
Remame
this.py
0.98 KB
Edit
Delete
Copy
Move
Remame
this.pyc
1.19 KB
Edit
Delete
Copy
Move
Remame
threading.py
46.03 KB
Edit
Delete
Copy
Move
Remame
threading.pyc
41.44 KB
Edit
Delete
Copy
Move
Remame
timeit.py
12.49 KB
Edit
Delete
Copy
Move
Remame
timeit.pyc
11.87 KB
Edit
Delete
Copy
Move
Remame
toaiff.py
3.07 KB
Edit
Delete
Copy
Move
Remame
toaiff.pyc
3.03 KB
Edit
Delete
Copy
Move
Remame
token.py
2.85 KB
Edit
Delete
Copy
Move
Remame
token.pyc
3.72 KB
Edit
Delete
Copy
Move
Remame
tokenize.py
17.07 KB
Edit
Delete
Copy
Move
Remame
tokenize.pyc
14.13 KB
Edit
Delete
Copy
Move
Remame
trace.py
29.19 KB
Edit
Delete
Copy
Move
Remame
trace.pyc
22.19 KB
Edit
Delete
Copy
Move
Remame
traceback.py
11.02 KB
Edit
Delete
Copy
Move
Remame
traceback.pyc
11.37 KB
Edit
Delete
Copy
Move
Remame
tty.py
0.86 KB
Edit
Delete
Copy
Move
Remame
tty.pyc
1.28 KB
Edit
Delete
Copy
Move
Remame
types.py
2.04 KB
Edit
Delete
Copy
Move
Remame
types.pyc
2.65 KB
Edit
Delete
Copy
Move
Remame
unittest
20 Items
Change directory
Remove directory
Rename directory
urllib.py
58.53 KB
Edit
Delete
Copy
Move
Remame
urllib.pyc
49.71 KB
Edit
Delete
Copy
Move
Remame
urllib2.py
51.28 KB
Edit
Delete
Copy
Move
Remame
urllib2.pyc
45.92 KB
Edit
Delete
Copy
Move
Remame
urlparse.py
14.81 KB
Edit
Delete
Copy
Move
Remame
urlparse.pyc
14.13 KB
Edit
Delete
Copy
Move
Remame
user.py
1.59 KB
Edit
Delete
Copy
Move
Remame
user.pyc
1.68 KB
Edit
Delete
Copy
Move
Remame
uu.py
6.4 KB
Edit
Delete
Copy
Move
Remame
uu.pyc
4.2 KB
Edit
Delete
Copy
Move
Remame
uuid.py
22.08 KB
Edit
Delete
Copy
Move
Remame
uuid.pyc
21.95 KB
Edit
Delete
Copy
Move
Remame
warnings.py
14.4 KB
Edit
Delete
Copy
Move
Remame
warnings.pyc
13.12 KB
Edit
Delete
Copy
Move
Remame
wave.py
18.15 KB
Edit
Delete
Copy
Move
Remame
wave.pyc
19.44 KB
Edit
Delete
Copy
Move
Remame
weakref.py
13.28 KB
Edit
Delete
Copy
Move
Remame
weakref.pyc
15.37 KB
Edit
Delete
Copy
Move
Remame
webbrowser.py
22.25 KB
Edit
Delete
Copy
Move
Remame
webbrowser.pyc
19.26 KB
Edit
Delete
Copy
Move
Remame
whichdb.py
3.3 KB
Edit
Delete
Copy
Move
Remame
whichdb.pyc
2.18 KB
Edit
Delete
Copy
Move
Remame
wsgiref
12 Items
Change directory
Remove directory
Rename directory
wsgiref.egg-info
0.18 KB
Edit
Delete
Copy
Move
Remame
xdrlib.py
5.93 KB
Edit
Delete
Copy
Move
Remame
xdrlib.pyc
9.59 KB
Edit
Delete
Copy
Move
Remame
xml
6 Items
Change directory
Remove directory
Rename directory
xmllib.py
34.05 KB
Edit
Delete
Copy
Move
Remame
xmllib.pyc
26.11 KB
Edit
Delete
Copy
Move
Remame
xmlrpclib.py
50.91 KB
Edit
Delete
Copy
Move
Remame
xmlrpclib.pyc
42.8 KB
Edit
Delete
Copy
Move
Remame
zipfile.py
57.64 KB
Edit
Delete
Copy
Move
Remame
zipfile.pyc
40.52 KB
Edit
Delete
Copy
Move
Remame