devel/py-binaryornot 0.4.4_1 DragonFly
Lightweight pure Python package to check if a file is binary or text
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 9.4 KiB, 29.5 KiB installed
Description
Ultra-lightweight library to guess whether a file is binary or text, using a heuristic similar to Perl's pp_fttext and its analysis. Tests are available for these file types:
-
Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
-
Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb
It has also tests for numerous encodings.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-binaryornot | 0.4.4_1 |
| FreeBSD | devel/py-binaryornot | 0.6.0 |
| OpenBSD | devel/py-binaryornot | 0.6.0 |
| NetBSD | devel/py-binaryornot | 0.6.0 |
| MidnightBSD | devel/py-binaryornot | 0.6.0_1 |
| HardenedBSD | devel/py-binaryornot | 0.6.0 |
| GhostBSD | devel/py-binaryornot | 0.6.0 |
Install
Binary package:
pkg install py311-binaryornot
From DPorts:
cd /usr/dports/devel/py-binaryornot && make install clean