devel/py-puremagic 2.2.0 OpenBSD
pure Python implementation of magic file detection
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, lang/python
Description
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 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.
Install
Binary package:
pkg_add py3-puremagic
From the ports tree:
cd /usr/ports/devel/py-puremagic && make install