aboutcode-org / typecode

7 stars 9 forks source link

======== TypeCode

TypeCode provides comprehensive filetype and mimetype detection using multiple detectors including libmagic (included as a dependency for Linux, Windows and macOS) and Pygments. It started as library in scancode-toolkit. Visit https://aboutcode.org and https://github.com/nexB/ for support and download.

We run CI tests on:

To install this package with its full capability (where the binaries for libmagic are installed), use the full option::

pip install typecode[full]

If you want to use the version of libmagic (possibly) provided by your operating system, use the minimal option::

pip install typecode

In this case, you will need to provide a working libmagic and its database available in one of these ways:

The supported libmagic version is 5.39.

To set up the development environment::

source configure --dev

To run unit tests::

pytest -vvs -n 2

To clean up development environment::

./configure --clean

To update Pygment to a newer vendored version use vendy: