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. Visit https://aboutcode.org and https://github.com/nexB/ for support and download.
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
To set up the 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
File details
Details for the file typecode-21.1.21.tar.gz
.
File metadata
- Download URL: typecode-21.1.21.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e25225edf330ed14762d78856997e7cadf5b3eb6b4689a6db2a48ee23e1d4dec |
|
MD5 | a4686d82ded6f87a7ebf306db2893b91 |
|
BLAKE2b-256 | 3a8d519e72c046d830e388e85a660c41cf8b3ca7655950f72f82b147c6608b66 |
Provenance
File details
Details for the file typecode-21.1.21-py3-none-any.whl
.
File metadata
- Download URL: typecode-21.1.21-py3-none-any.whl
- Upload date:
- Size: 948.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a2d1ee7157d0b4bbfa52bd686360fbac197ef16847965e415399c6b3bcaef6 |
|
MD5 | 0758e18aba6b7883103260f51bfcc1b3 |
|
BLAKE2b-256 | 20ca5eef3eafa1eba70885a44160ef66cf4a95343a60d146b5327927643ff180 |