sdkagent

filetype.py API reference

78 public APIs from filetype.py (h2non/filetype.py) — 77 classes, 1 functions, 0 methods. Signatures extracted by static analysis of the actual source.

Repository: h2non/filetype.py

KindCount
Classes77
Functions1
Methods0

API list

funcfiletype.filetype.guess(obj)
Infers the type of the given input.
classfiletype.types.application.Wasm
Implements the Wasm image type matcher.
classfiletype.types.archive.Ar
Implements the AR archive type matcher.
classfiletype.types.archive.Br
Implements the Br image type matcher.
classfiletype.types.archive.Bz2
Implements the BZ2 archive type matcher.
classfiletype.types.archive.Cab
Implements the CAB archive type matcher.
classfiletype.types.archive.Crx
Implements the CRX archive type matcher.
classfiletype.types.archive.Dcm
Implements the Dcm image type matcher.
classfiletype.types.archive.Deb
Implements the DEB archive type matcher.
classfiletype.types.archive.Elf
Implements the Elf archive type matcher
classfiletype.types.archive.Eot
Implements the EOT archive type matcher.
classfiletype.types.archive.Epub
Implements the EPUB archive type matcher.
classfiletype.types.archive.Exe
Implements the EXE archive type matcher.
classfiletype.types.archive.Gz
Implements the GZ archive type matcher.
classfiletype.types.archive.Lz
Implements the Lz archive type matcher.
classfiletype.types.archive.Lz4
Implements the Lz4 archive type matcher.
classfiletype.types.archive.Lzop
Implements the Lzop archive type matcher.
classfiletype.types.archive.Nes
Implements the NES archive type matcher.
classfiletype.types.archive.Pdf
Implements the PDF archive type matcher.
classfiletype.types.archive.Ps
Implements the PS archive type matcher.
classfiletype.types.archive.Rar
Implements the RAR archive type matcher.
classfiletype.types.archive.Rpm
Implements the Rpm image type matcher.
classfiletype.types.archive.Rtf
Implements the RTF archive type matcher.
classfiletype.types.archive.SevenZ
Implements the SevenZ (7z) archive type matcher.
classfiletype.types.archive.Sqlite
Implements the Sqlite DB archive type matcher.
classfiletype.types.archive.Swf
Implements the SWF archive type matcher.
classfiletype.types.archive.Tar
Implements the Tar archive type matcher.
classfiletype.types.archive.Xz
Implements the XS archive type matcher.
classfiletype.types.archive.Z
Implements the Z archive type matcher.
classfiletype.types.archive.Zip
Implements the Zip archive type matcher.
classfiletype.types.archive.Zstd
Implements the Zstd archive type matcher.
classfiletype.types.audio.Aac
Implements the Aac audio type matcher.
classfiletype.types.audio.Aiff
Implements the AIFF audio type matcher.
classfiletype.types.audio.Amr
Implements the AMR audio type matcher.
classfiletype.types.audio.Flac
Implements the FLAC audio type matcher.
classfiletype.types.audio.M4a
Implements the M4A audio type matcher.
classfiletype.types.audio.Midi
Implements the Midi audio type matcher.
classfiletype.types.audio.Mp3
Implements the MP3 audio type matcher.
classfiletype.types.audio.Ogg
Implements the OGG audio type matcher.
classfiletype.types.audio.Wav
Implements the WAV audio type matcher.
classfiletype.types.base.Type
Represents the file type object inherited by specific file type matchers.
classfiletype.types.document.Odp
Implements the OpenDocument Presentation document type matcher.
classfiletype.types.document.Ods
Implements the OpenDocument Spreadsheet document type matcher.
classfiletype.types.document.Odt
Implements the OpenDocument Text document type matcher.
classfiletype.types.font.Otf
Implements the OTF font type matcher.
classfiletype.types.font.Ttf
Implements the TTF font type matcher.
classfiletype.types.font.Woff
Implements the WOFF font type matcher.
classfiletype.types.font.Woff2
Implements the WOFF2 font type matcher.
classfiletype.types.image.Apng
Implements the APNG image type matcher.
classfiletype.types.image.Avif
Implements the AVIF image type matcher.
classfiletype.types.image.Bmp
Implements the BMP image type matcher.
classfiletype.types.image.Cr2
Implements the CR2 image type matcher.
classfiletype.types.image.Dds
Implements the DDS image type matcher.
classfiletype.types.image.Dwg
Implements the Dwg image type matcher.
classfiletype.types.image.Gif
Implements the GIF image type matcher.
classfiletype.types.image.Heic
Implements the HEIC image type matcher.
classfiletype.types.image.Ico
Implements the ICO image type matcher.
classfiletype.types.image.Jpeg
Implements the JPEG image type matcher.
classfiletype.types.image.Jpx
Implements the JPEG2000 image type matcher.
classfiletype.types.image.Jxl
Implements the JPEG XL image type matcher.
classfiletype.types.image.Jxr
Implements the JXR image type matcher.
classfiletype.types.image.Png
Implements the PNG image type matcher.
classfiletype.types.image.Psd
Implements the PSD image type matcher.
classfiletype.types.image.Qoi
Implements the QOI image type matcher.
classfiletype.types.image.Tiff
Implements the TIFF image type matcher.
classfiletype.types.image.Webp
Implements the WEBP image type matcher.
classfiletype.types.image.Xcf
Implements the Xcf image type matcher.
classfiletype.types.isobmff.IsoBmff
Implements the ISO-BMFF base type.
classfiletype.types.video.Avi
Implements the AVI video type matcher.
classfiletype.types.video.Flv
Implements the FLV video type matcher.
classfiletype.types.video.M3gp
Implements the 3gp video type matcher.
classfiletype.types.video.M4v
Implements the M4V video type matcher.
classfiletype.types.video.Mkv
Implements the MKV video type matcher.
classfiletype.types.video.Mov
Implements the MOV video type matcher.
classfiletype.types.video.Mp4
Implements the MP4 video type matcher.
classfiletype.types.video.Mpeg
Implements the MPEG video type matcher.
classfiletype.types.video.Webm
Implements the WebM video type matcher.
classfiletype.types.video.Wmv
Implements the WMV video type matcher.

About this data

These signatures were extracted from the public source of h2non/filetype.py using Python's ast module. Argument names, default values, type annotations and return types are taken verbatim from the code. Implementation bodies are never stored. See how it works for details.

Back to all 805 libraries