devel/py-filemagic 1.6_1 DragonFly
Python API for libmagic, the library behind the Unix file command
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20
- Categories
- devel, python
- Package size
- 15.9 KiB, 65.3 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 |
|---|---|---|
| DragonFly | devel/py-filemagic | 1.6_1 |
| FreeBSD | devel/py-filemagic | 1.6_1 |
| HardenedBSD | devel/py-filemagic | 1.6_1 |
| GhostBSD | devel/py-filemagic | 1.6_1 |
Install
Binary package:
pkg install py311-filemagic
From DPorts:
cd /usr/dports/devel/py-filemagic && make install clean