Skip to content

Releases: ysskrishna/text-extensions

Release v1.0.1

10 Jan 06:03
5de45ff

Choose a tag to compare

Added

  • PyPI version and downloads badges to README
  • Changelog section link in README
  • Changelog and Discussions URLs to project metadata in pyproject.toml

Changed

  • Improved package description in README and pyproject.toml - reordered text to prioritize main functionality description

Release v1.0.0

10 Jan 05:56

Choose a tag to compare

Added

  • Initial release of text-extensions Python package
  • is_text_extension() function to check if a file extension is text
  • is_text_path() function to check if a file path has a text extension
  • TEXT_EXTENSIONS frozenset containing 300+ known text file extensions
  • TEXT_EXTENSIONS_LOWER constant containing all text extensions in lowercase for optimized case-insensitive lookups
  • Support for case-insensitive extension checks
  • Dot-aware extension handling (supports both "txt" and ".txt" formats)
  • Dotfile support in is_text_path() function - now handles files like .gitignore 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 text file extensions
  • Fast membership checks using frozenset
  • Support for source code, markup, data formats, configuration files, and more
  • Python 3.8+ compatibility