Skip to main content

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

file-type-identifier-0.1.2.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

file_type_identifier-0.1.2-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page