You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial release of binary-extensions Python package
is_binary_extension() function to check if a file extension is binary
is_binary_path() function to check if a file path has a binary extension
BINARY_EXTENSIONS frozenset containing 250+ known binary file extensions
BINARY_EXTENSIONS_LOWER constant containing all binary extensions in lowercase for optimized case-insensitive lookups
Support for case-insensitive extension checks
Dot-aware extension handling (supports both "png" and ".png" formats)
Dotfile support in is_binary_path() function - now handles files like .DS_Store where the entire filename (without leading dot) is treated as the extension
Comprehensive test suite with unit and integration tests
Type hints for better IDE support and type checking
Zero dependencies for minimal overhead
Features
Immutable collection of hundreds of known binary file extensions
Fast membership checks using frozenset
Support for images, videos, archives, executables, documents, fonts, and more