devel/py-filemagic 1.6_1 FreeBSD
Python API for libmagic, the library behind the Unix file command
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- APACHE20
- Categories
- devel, python
- Package size
- 17.3 KiB, 62.9 KiB installed
Description
filemagic provides a Python API for libmagic, the library behind Unix file command. It enables the Python developer to easilty test for file types from the extensive identification library that is shipped with libmagic.
Features:
- Simple, Python API.
- Identifies named files or strings.
- Return a textual description, mime type or mime encoding.
- Provide custom magic files to customize file detection.
- Support for both Python2 and Python3.
- Support for both CPython and PyPy.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-filemagic | 1.6_1 |
| DragonFly | devel/py-filemagic | 1.6_1 |
Install
Binary package:
pkg install py312-filemagic
From the ports tree:
cd /usr/ports/devel/py-filemagic/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-filemagic>0:devel/py-filemagic
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 | 1.6_1 | 1.6_1 | 1.6 | 1.6_1 | 1.6_1 |
| FreeBSD:14:quarterly | 1.6_1 | 1.6_1 | n/a | 1.6_1 | 1.6_1 |
| FreeBSD:15:latest | 1.6_1 | 1.6_1 | n/a | 1.6_1 | 1.6_1 |
| FreeBSD:15:quarterly | 1.6_1 | 1.6_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.6_1 | 1.6_1 | 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 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Test 1
${PYTHON_PKGNAMEPREFIX}mock>=0: devel/py-mock
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 7
Required by 2
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| filemagic-1.6.tar.gz | 16754 | e684359ef40820fe406f0ebc5bf8a78f89717bdb7fed688af68082d991d6dbf3 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.