Package MimetypesRegistry :: Package mime_types :: Module magic
[show private | hide private]
[frames | no frames]

Module MimetypesRegistry.mime_types.magic

magic.py

 Initial Author: Jason Petrone <jp@demonseed.net>

 Updated by Gabriel Wicke <groups@gabrielwicke.de>
    Thu Oct 16 23:00:03 CEST 2003
    with magic data from gnome-vfs-mime-magic

Classes
magicTest  

Variable Summary
str __version__ = '1.2'
list magic = [[0L, 'string', '=', '%PDF-', 'application/pdf']...
list magicNumbers = [<MimetypesRegistry.mime_types.magic.magi...

Variable Details

__version__

Type:
str
Value:
'1.2'                                                                  

magic

Type:
list
Value:
[[0L, 'string', '=', '%PDF-', 'application/pdf'],
 [0L, 'string', '=', '\x7fELF', 'application/x-executable-binary'],
 [0L, 'string', '=', '\x04%!', 'application/postscript'],
 [0L, 'string', '=', '\x00\x00\x01\xba', 'video/mpeg'],
 [0L, 'string', '=', '\x00\x00\x01\xb3', 'video/mpeg'],
 [0L, 'string', '=', 'G?\xff\x10', 'video/mpeg'],
 [0L, 'string', '=', '\xff\xd8\xff', 'image/jpeg'],
 [0L, 'string', '=', '\xed\xab\xee\xdb', 'application/x-rpm'],
...                                                                    

magicNumbers

Type:
list
Value:
[<MimetypesRegistry.mime_types.magic.magicTest instance at 0xb554ffac>\
,
 <MimetypesRegistry.mime_types.magic.magicTest instance at 0xb554ff6c>\
,
 <MimetypesRegistry.mime_types.magic.magicTest instance at 0xb554fe0c>\
,
 <MimetypesRegistry.mime_types.magic.magicTest instance at 0xb554feec>\
,
...                                                                    

Generated by Epydoc 2.1 on Wed Nov 30 03:58:31 2005 http://epydoc.sf.net