freebsd-ports/devel/py-filemagic/pkg-descr
Kubilay Kocak fb441f42c2 [NEW] devel/py-filemagic: Python API for libmagic
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

WWW: https://filemagic.readthedocs.org
2014-12-23 04:04:33 +00:00

14 lines
532 B
Text

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
WWW: https://filemagic.readthedocs.org