sysutils/py-puremagic 1.30_2 MidnightBSD
Pure python implementation of magic file detection
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- sysutils, python
Description
Puremagic is a python module that will identify a file from 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.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | sysutils/py-puremagic | 1.30_2 |
| FreeBSD | sysutils/py-puremagic | 2.2.0 |
| NetBSD | sysutils/py-puremagic | 2.2.0 |
| DragonFly | sysutils/py-puremagic | 1.24_1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}puremagic
From mports:
cd /usr/mports/sysutils/py-puremagic && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}puremagic>0:sysutils/py-puremagic
Dependencies
As this port's Makefile names them.
Test 1
${PYTHON_PKGNAMEPREFIX}pytest>0: devel/py-pytest
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| puremagic-1.30.tar.gz | 314785 | f9ff7ac157d54e9cf3bff1addfd97233548e75e685282d84ae11e7ffee1614c9 |
Master sites 1
- PYPI