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 `python3 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.filedesc(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'
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, io, sys
Variables Details |
magic
|
magicNumbers
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 23 01:55:31 2020 | http://epydoc.sourceforge.net |