Home | Trees | Indices | Help |
|
---|
|
magic.py determines a file type by its magic number (C)opyright 2000 Jason Petrone <jp@demonseed.net> All Rights Reserved Command Line Usage: running as `python magic.py file` will print a description of what 'file' is. Module Usage: magic.whatis(data): when passed a string 'data' containing binary or text data, a description of what the data is will be returned. magic.file(filename): returns a description of what the file 'filename' contains. Acknowledgements: This module has been pulled from the web. Thanks to Jason Petrone for providing it to the community. It is based on his __version__ = '0.1'
Version: $Revision: 1.2 $
Author: Jason Petrone <jp@demonseed.net>, Karsten Hilbert <Karsten.Hilbert@gmx.net>
License: GPL
Classes | |
magicTest |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
magic =
|
|
magicNumbers = []
|
|
__package__ =
|
|
m =
|
Imports: re, struct, string, sys
Variables Details |
magic
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:55:54 2013 | http://epydoc.sourceforge.net |