brk-code

filetype.py の API リファレンス

filetype.py (h2non/filetype.py) の公開 API 78 件 —— クラス 77、関数 1、メソッド 0。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: h2non/filetype.py

種別件数
クラス77
関数1
メソッド0

API 一覧

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.

この情報について

掲載しているシグネチャは h2non/filetype.py の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る