summaryrefslogtreecommitdiffstats
path: root/python/python3-puremagic/README
blob: 1835595d3e4b6470e35824e7eba6ecd3399506a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
puremagic is a pure python module that will identify a file based off
it's magic numbers.

It is designed to be minimalistic and inherently cross platform
compatible. It is also designed to be a stand in for python-magic, it
incorporates the functions from_file(filename[, mime]) and
from_string(string[, mime]) however the magic_file() and magic_string()
are more powerful and will also display confidence and duplicate
matches.

It does NOT try to match files off non-magic string. In other words it
will not search for a string within a certain window of bytes like
others might.

Advantages over using a wrapper for 'file' or 'libmagic':
  * Faster
  * Lightweight
  * Cross platform compatible
  * No dependencies

Disadvantages:
  * Does not have as many file types
  * No multilingual comments
  * Duplications due to small or reused magic numbers