Skip to content

Release v1.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Jan 05:29
· 3 commits to main since this release

Added

  • 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
  • Python 3.8+ compatibility