devel/py-binaryornot 0.6.0_1 MidnightBSD
Lightweight pure Python package to check if a file is binary or text
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd3
- Categories
- devel, python
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 |
|---|---|---|
| MidnightBSD | devel/py-binaryornot | 0.6.0_1 |
| FreeBSD | devel/py-binaryornot | 0.6.0 |
| OpenBSD | devel/py-binaryornot | 0.6.0 |
| NetBSD | devel/py-binaryornot | 0.6.0 |
| DragonFly | devel/py-binaryornot | 0.4.4_1 |
| HardenedBSD | devel/py-binaryornot | 0.6.0 |
| GhostBSD | devel/py-binaryornot | 0.6.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}binaryornot
From mports:
cd /usr/mports/devel/py-binaryornot && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}binaryornot>0:devel/py-binaryornot
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Runtime 1
${PYTHON_PKGNAMEPREFIX}chardet>=3.0.2: textproc/py-chardet
Build dependencies 1
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| binaryornot-0.6.0.tar.gz | 478718 | cc8d57cfa71d74ff8c28a7726734d53a851d02fad9e3a5581fb807f989f702f0 |
Master sites 1
- PYPI