semvec/pypi-packages huggingface dataset:
file-type-identifier 0.2.4
Library for identifying file type
License: MIT
Requires Python: <4.0,>=3.9

# file-type-indentifier

Library for identifying file type

## Examples

```
import asyncio

from fti import FileTypes, get_file_types, get_file_types_async


# sync
file_types = get_file_types("http://example.com/download_pdf")

FileTypes.PDF in file_types


# async
file_types = asyncio.run(
    get_file_types_async("http://example.com/download_pdf")
)

FileTypes.PDF in file_types
```