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

Uploaded Source

Built Distribution

file_type_identifier-0.2.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: file_type_identifier-0.2.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.2 Linux/5.15.0-1034-azure

File hashes

Hashes for file_type_identifier-0.2.3.tar.gz
Algorithm Hash digest
SHA256 086fa0ac2ae38867a85149a79130ec91fa754f8a9c935ed6a607385889fab49a
MD5 0d544a3aa9b95a158537f666420b5d53
BLAKE2b-256 2cb8e8a61bd5d4fbc4ca522b85ab1706aa1a7f65d6f7f47f4e7aa0ecf49919b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for file_type_identifier-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d2fe724c90d87ccb3c114d7fc4ec40aeea730246acfc6d9f0779a3d1a87c79
MD5 3b5e8995a4158842049850ab2f1f5f6c
BLAKE2b-256 d1d51d07c7e9928c8cec97aeaae126921922c33ded47c2955b9e2ef99a9f36d5

See more details on using hashes here.

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