Comprehensive filetype and mimetype detection using libmagic and Pygments.
Project description
license: Apache-2.0
copyright: copyright (c) nexB. Inc. and others
homepage_url: https://github.com/nexB/typecode
keywords: filetype, mimetype, libmagic, scancode-toolkit, 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.
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[minimal]
To set up the typecode development environment:
source configure
To run unit tests:
pytest -vvs -n 2
To clean up development environment:
./configure --clean
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for typecode-21.1.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289a975885818cbff7529fd27edb5b5ae63e745da38c8edbea35a53c9d84e47f |
|
MD5 | b2486eb25d8f2fd2a4e0fe85198ec04e |
|
BLAKE2b-256 | 1a0b88d6217962dd2305d5a57105959dc3889a79e852ed47326a917621067aa4 |