A pure Python drop-in replacement for magic
Project description
magic-pure
magic-pure
is a pure Python implementation. For the moment, it helps me to execute code which uses python-magic
on Windows.
Maybe, at some point, it can be used as a drop-in replacement.
Installation
$ pip install magic-pure
Usage
>>> import magic
>>> magic.from_file("testdata/test.pdf")
'PDF document, version 1.2'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magic-pure-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for magic_pure-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103b6e4e85d43a4c68957729474fae8aa9d37f1b98dea2109ba37db57cbfea0b |
|
MD5 | 1cfaa7fcfa985936028c343a1f77f617 |
|
BLAKE2b-256 | 8f53f5c3d2cc81343c126daa832b6068b9a591616ac514fcf1fa5c39ea7bf63c |