Library for identifying file type
Project description
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
Project details
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
Close
Hashes for file-type-identifier-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ca58d2220a6576caf4ba5f2760e6124605b47c9f87f20640921638441684d5 |
|
MD5 | 501a697431325316ba08a0337797911d |
|
BLAKE2b-256 | a4978bd40b0cda5fb3dc4503b4e02f3ebd0c68b2a53d089e2afd875a2271ffba |
Close
Hashes for file_type_identifier-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a395ed39dee7202f5ddea1ec33f4e0beb684014524f61552b807de22c7b6f1 |
|
MD5 | 8f6da0dd87fdd8ec98f43b55b89ade66 |
|
BLAKE2b-256 | 4c121c987281a89ec703247ed1ea66656729c495cfcca1df42af74e3b17e3ba3 |