Module fileinfo
[hide private]
[frames] | no frames]

Module fileinfo

source code

Returns information about files

Classes [hide private]
  FailedFile
  SafeFileWrapper
Wraps a file object letting you get various parts without exceptions
  SafeStringWrapper
Wraps a string object letting you get various parts w/o exceptions.
  ImgFileInfo
Wraps information about an image file
  AudioFileInfo
Wraps information about an audio file
  MP3Frame
Functions [hide private]
 
idimg_BMP(f)
Identify a Windows bitmap
source code
 
fmt_BMP(ifi)
Long description for BMP
source code
 
idimg_PNG(f)
Identify a PNG
source code
 
fmts_PNG(ifi, short=True) source code
 
fmt_PNG(ifi)
Long description for PNG
source code
 
idimg_BCI(f)
Identify a Brew Compressed Image
source code
 
fmt_BCI(ifi)
Long description for BCI
source code
 
idimg_JPG(f)
Identify a JPEG image
source code
 
fmts_JPG(ifi) source code
 
idimg_GIF(f)
Identify a GIF image
source code
 
fmts_GIF(ifi) source code
 
idimg_AVI(f)
identify an AVI file format
source code
 
fmts_AVI(ifi) source code
 
idimg_LGBIT(f)
Identify a LGBIT image (LG phone proprietary image format)
source code
 
fmts_LGBIT(ifi) source code
 
idimg_3GPP2(f)
Identify a 3GPP2(3g2) file
source code
 
identify_imagefile(filename) source code
 
identify_imagestring(string) source code
 
idaudio_MIDI(f)
Identify a midi file
source code
 
fmts_MIDI(afi) source code
 
_getbits(start, length, value) source code
 
getmp3fileinfo(filename) source code
 
getmp4fileinfo(filename) source code
 
idaudio_zzMP3(f, returnframes=False) source code
 
fmt_MP3(afi) source code
 
fmts_MP3(afi) source code
 
idaudio_QCP(f)
Identify a Qualcomm Purevoice file
source code
 
fmt_QCP(afi) source code
 
idaudio_PMD(f)
Identify a PMD/CMX file
source code
 
fmts_PMD(afi) source code
 
fmt_PMD(afi) source code
 
idaudio_PCM(f)
Identify a PCM/WAV file
source code
 
fmts_PCM(afi) source code
 
fmt_PCM(afi) source code
 
getpcmfileinfo(filename) source code
 
idaudio_WMA(f)
Identify a WMA file
source code
 
fmt_WMA(afi) source code
 
idaudio_MP4(f)
Identify a MP4 file
source code
 
fmt_MP4(afi) source code
 
identify_audiofile(filename) source code
 
identify_audiostring(string) source code
Variables [hide private]
  imageids = [globals() [f] for f in dir() if f.startswith("idim...
  twooheightzeros = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0...
  audioids = [globals() [f] for f in dir() if f.startswith("idau...
  thefileinfocache = common.FileCache(lowwater= 100, hiwater= 140)
  f = 'wma_file'
Variables Details [hide private]

imageids

Value:
[globals() [f] for f in dir() if f.startswith("idimg_")]

twooheightzeros

Value:
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
...

audioids

Value:
[globals() [f] for f in dir() if f.startswith("idaudio_")]