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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file magic-pure-0.1.0.tar.gz.
File metadata
- Download URL: magic-pure-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d3a8ce4a9324acd7db0bc8afbf2572b3c147cf7f2552b788d580a67d468c76f
|
|
| MD5 |
9616cf0f58f88030e54562c5b0a8a43a
|
|
| BLAKE2b-256 |
07424fa20348f2790706e021737dd4b649634717a469d840f8735d0f3d177866
|
File details
Details for the file magic_pure-0.1.0-py3-none-any.whl.
File metadata
- Download URL: magic_pure-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
103b6e4e85d43a4c68957729474fae8aa9d37f1b98dea2109ba37db57cbfea0b
|
|
| MD5 |
1cfaa7fcfa985936028c343a1f77f617
|
|
| BLAKE2b-256 |
8f53f5c3d2cc81343c126daa832b6068b9a591616ac514fcf1fa5c39ea7bf63c
|