Releases: ysskrishna/text-extensions
Releases · ysskrishna/text-extensions
Release v1.0.1
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
Added
- Initial release of text-extensions Python package
is_text_extension()function to check if a file extension is textis_text_path()function to check if a file path has a text extensionTEXT_EXTENSIONSfrozenset containing 300+ known text file extensionsTEXT_EXTENSIONS_LOWERconstant 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.gitignorewhere 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