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.2.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_type_identifier-0.2.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file file_type_identifier-0.2.4.tar.gz.

File metadata

  • Download URL: file_type_identifier-0.2.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.2 Linux/6.8.0-1021-azure

File hashes

Hashes for file_type_identifier-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1e8d3590b99614c0acb30564ad98e966a2ada0120bff4492e6b735caeb34e509
MD5 439f115cdf706ecb1d5ae0a50f807e36
BLAKE2b-256 23be220f71667a6240cb0eec0957c34f7680f15769ec089b3eb12fd265e39124

See more details on using hashes here.

File details

Details for the file file_type_identifier-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: file_type_identifier-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.2 Linux/6.8.0-1021-azure

File hashes

Hashes for file_type_identifier-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4744404c701531f8f4bd0987408b8813e9b5f5183ce1a23d590c46fccb48632
MD5 024091f6f623c6d5f0a80965ad44bde1
BLAKE2b-256 009362a9c18129a41a43b4ed5a7d9ac7c4e5e7f157068517ffae7155e30e7024

See more details on using hashes here.

Supported by

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