Skip to content

Instantly share code, notes, and snippets.

@lakshyaraj2006
Created February 7, 2025 08:27
Show Gist options
  • Save lakshyaraj2006/fa6a3dbc619f861a22dc2a6b526db0f6 to your computer and use it in GitHub Desktop.
Save lakshyaraj2006/fa6a3dbc619f861a22dc2a6b526db0f6 to your computer and use it in GitHub Desktop.
File extensions
# Audio file formats
AUDIO_FORMATS = [
".mp3", ".wav", ".flac", ".aac", ".ogg", ".wma", ".alac", ".m4a", ".opus",
".aiff", ".pcm", ".aif", ".ra", ".rm", ".dsd", ".dff", ".mka", ".ape", ".wv",
".tta", ".spx", ".caf", ".vox", ".gsm", ".sf2", ".mid", ".kar"
]
# Video file formats
VIDEO_FORMATS = [
".mp4", ".avi", ".mov", ".mkv", ".flv", ".wmv", ".webm", ".3gp", ".mpeg",
".mpg", ".ogv", ".vob", ".divx", ".rmvb", ".f4v", ".asf", ".h264"
]
# Image file formats
IMAGE_FORMATS = [
".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff", ".webp", ".heif", ".raw",
".svg", ".eps", ".ico", ".ai", ".psd", ".indd", ".exr", ".dng"
]
# Document file formats
DOCUMENT_FORMATS = [
".txt", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".rtf",
".odt", ".ods", ".odp", ".epub", ".mobi", ".fb2", ".md", ".tex"
]
# Compressed file formats
COMPRESSED_FORMATS = [
".zip", ".rar", ".tar", ".gz", ".7z", ".bz2", ".xz", ".iso", ".dmg", ".tar.gz",
".tar.bz2", ".tar.xz"
]
# Spreadsheet file formats
SPREADSHEET_FORMATS = [
".xls", ".xlsx", ".ods", ".csv", ".tsv", ".xlsm", ".xlsb", ".csv.gz", ".csv.bz2"
]
# Database file formats
DATABASE_FORMATS = [
".sql", ".sqlite", ".db", ".mdb", ".accdb", ".json", ".csv", ".xml", ".parquet"
]
# Programming file formats
PROGRAMMING_FORMATS = [".py", ".java", ".c", ".cpp", ".js", ".jsx", ".html", ".css", ".php", ".go", ".swift", ".ruby", ".ts", ".tsx", ".json", ".xml", ".yml", ".rb", ".rs", ".r", ".pl", ".sh", ".dart", ".lua", ".scala", ".kt", ".vhdl", ".hdl", ".tsv", ".tex", ".md", ".csh", ".zsh", ".asp", ".aspx", ".jsp", ".ashx", ".rb", ".pl", ".rpy", ".coffee", ".scpt", ".vbs", ".lua", ".mdx", ".svelte", ".twig", ".sql", ".less", ".sass", ".styl", ".cfc", ".hbs", ".m", ".nim", ".ahk", ".rdata", ".astro", ".htm"]
# Font file formats
FONT_FORMATS = [
".ttf", ".otf", ".woff", ".woff2", ".eot", ".ttc", ".fnt", ".pfb", ".pfm"
]
# Archive file formats
ARCHIVE_FORMATS = [
".tar", ".zip", ".rar", ".gz", ".7z", ".xz", ".tar.gz", ".tar.bz2", ".iso", ".dmg"
]
# 3D Model file formats
MODEL_FORMATS = [
".obj", ".fbx", ".stl", ".dae", ".3ds", ".blend", ".ply", ".glb", ".gltf", ".x3d"
]
# Web file formats
WEB_FORMATS = [
".html", ".css", ".js", ".json", ".xml", ".svg", ".woff", ".woff2", ".eot", ".ttf"
]
# Audio-visual file formats
AV_FORMATS = [
".mp4", ".avi", ".mov", ".mp3", ".flac", ".aac", ".mkv", ".webm", ".wav", ".mpeg"
]
# Code versioning formats
VERSIONING_FORMATS = [
".gitignore", ".gitattributes", ".gitmodules", ".patch", ".diff"
]
# Installer file formats
INSTALLER_FORMATS = [
".exe",".msi", ".bat", ".cmd", ".dmg", ".pkg", ".app", ".deb", ".rpm", ".tar.bz2", ".sh", ".jar", ".bin", ".run",
]
# Miscellaneous formats
MISCELLANEOUS_FORMATS = [
".md", ".csv", ".tsv", ".yaml", ".ini", ".log", ".dat", ".bak", ".torrent", ".whl"
]
@lakshyaraj2006
Copy link
Author

Please consider the diversity of file formats when identifying the categories of files. Most of the programming formats listed are of interpreted languages. For compiled languages, the file formats could theoretically include .c, .cpp, .h. .go, .d, etc.

The file extensions are already present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment