devel/py-binaryornot 0.6.0 FreeBSD
Lightweight pure Python package to check if a file is binary or text
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 22.1 KiB, 84.4 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 |
|---|---|---|
| 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 |
| MidnightBSD | devel/py-binaryornot | 0.6.0_1 |
Install
Binary package:
pkg install py312-binaryornot
From the ports tree:
cd /usr/ports/devel/py-binaryornot/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-binaryornot>0:devel/py-binaryornot
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.6.0 | 0.6.0 | 0.4.4 | 0.4.4_1 | 0.6.0 |
| FreeBSD:14:quarterly | 0.6.0 | 0.6.0 | n/a | 0.4.4_1 | 0.6.0 |
| FreeBSD:15:latest | 0.6.0 | 0.6.0 | n/a | 0.4.4_1 | 0.4.4_1 |
| FreeBSD:15:quarterly | 0.6.0 | 0.6.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.6.0 | 0.6.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>0: devel/py-hatchling
Test 2
${PYTHON_PKGNAMEPREFIX}hypothesis>=0: devel/py-hypothesis${PYTHON_PKGNAMEPREFIX}uv>0: devel/py-uv
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 7
Required by 2
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
Commit history 0
No commits in the history this site was built from.