sysutils/py-puremagic 2.2.0 NetBSD
Pure python implementation of magic file detection
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
5d9ea9239d- License
- gnu-lgpl-v3
- Categories
- sysutils, python
- Package size
- 96.8 KiB, 524.9 KiB installed
Description
puremagic is a pure python module that will identify a file based off its 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 |
|---|---|---|
| NetBSD | sysutils/py-puremagic | 2.2.0 |
| FreeBSD | sysutils/py-puremagic | 2.2.0 |
| DragonFly | sysutils/py-puremagic | 1.24_1 |
| MidnightBSD | sysutils/py-puremagic | 1.30_2 |
| HardenedBSD | sysutils/py-puremagic | 2.2.0 |
| GhostBSD | sysutils/py-puremagic | 1.30_1 |
Install
Binary package:
pkgin install py311-puremagic
From pkgsrc:
cd /usr/pkgsrc/sysutils/py-puremagic && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.2.0 |
| NetBSD 10.1 aarch64 | 2.2.0 |
| SmartOS / illumos x86_64 | 2.2.0 |
| macOS 15 arm64 | 2.2.0 |
Dependencies
Run dependencies 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-puremagic-2.2.0,py313-puremagic-2.2.0,py314-puremagic-2.2.0