Releases: viddexa/safetext
Releases · viddexa/safetext
Release list
v0.3.3: bug fixes
What's Changed
- Fix None checker when auto language detection is enabled by @SarahShkb in #71
- Bump version to 0.3.3 by @fcakyon in #72
New Contributors
- @SarahShkb made their first contribution in #71
Full Changelog: 0.3.2...0.3.3
v0.3.2: update profanity list
v0.3.1: korean profanity support
v0.3.0 custom words directory support
✨ What's New
- Custom Words Directory: Users can now provide a
custom_words_dirparameter to extend built-in profanity lists - Language-Specific Files: Custom words are organized in
{language_code}.txtfiles (e.g.,en.txt,tr.txt) - Seamless Integration: Custom words are combined with built-in lists automatically
- Whitelist Compatibility: Works perfectly with existing whitelist functionality
- Multi-Word Support: Supports both single words and multi-word phrases
📁 Directory Structure
custom_profanity_words/
├── en.txt # English custom words
├── tr.txt # Turkish custom words
└── es.txt # Spanish custom words
🔧 Usage Examples
# Basic usage with custom words
st = SafeText('en', custom_words_dir='my_custom_words')
# Combined with whitelist
st = SafeText('en',
custom_words_dir='my_custom_words',
whitelist=['allowedword'])
# Auto-detection still works
st = SafeText(language=None, custom_words_dir='my_custom_words')v0.2.2
SafeText v0.2.1
What's Changed
- Add context7.json by @fcakyon in #58
- Add german terms by @christianbaumann in #59
- add new tr profanity words by @fcakyon in #60
- add eng profanity words by @fcakyon in #61
New Contributors
- @christianbaumann made their first contribution in #59
Full Changelog: 0.2.0...0.2.1
🎉 SafeText v0.2.0 - Modern Infrastructure & Enhanced Developer Experience
We're excited to announce SafeText v0.2.0, a major release that modernizes our project infrastructure while maintaining full backward compatibility for users. This release focuses on improving developer experience, testing infrastructure, and packaging standards.
🚀 What's New
📦 Modern Python Packaging
- Migrated to pyproject.toml - Adopted PEP 517/518 standards, replacing legacy setup.py
- Unified dependency management - All project metadata now in a single source of truth
- Python 3.10+ support - Officially supporting Python 3.10, 3.11, 3.12, and 3.13
🛠️ Developer Experience Improvements
- ⚡ Lightning-fast package management with uv - 10-100x faster than pip
- 🎯 Simplified linting with ruff - Single tool replacing flake8/black/isort
- 📜 Cross-platform convenience scripts - Easy setup and testing on Windows/macOS/Linux
- 🧪 Comprehensive test suite - Organized tests with parallel execution support
🔄 Robust CI/CD Pipeline
- GitHub Actions integration - Automated testing across all supported Python versions
- Daily cross-platform tests - Ensuring compatibility on Ubuntu, Windows, and macOS
- Automated PyPI publishing - Streamlined release process
🐛 Bug Fixes & Improvements
- Fixed lingua 2.1.1 compatibility issues
- Updated all repository URLs from safevideo to viddexa
- Enhanced error handling with proper exception chaining
- Improved whitelist functionality with file support
💻 For Users
The API remains unchanged - simply upgrade to enjoy better performance and reliability:
pip install --upgrade safetext🔧 For Contributors
Quick Setup (Recommended)
# Install uv (one-time)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and setup
git clone https://github.com/viddexa/safetext.git
cd safetext
./scripts/setup.sh # or scripts\setup.bat on Windows
# Run tests
./scripts/run_tests.shWhat's Changed for Development
- Use
uv sync --extra devinstead ofpip install -r requirements.txt - Use
rufffor linting/formatting instead of multiple tools - Run
pytest -n autofor parallel test execution - Check out our enhanced CONTRIBUTING.md for details
📊 Release Statistics
- 24 files changed - 1,097 additions, 330 deletions
- 29 commits - Comprehensive modernization effort
- 13 languages supported - No changes to language support
🙏 Acknowledgments
Special thanks to @fcakyon for leading this modernization effort!
📝 Full Changelog
Infrastructure & Tooling
- Migrate from setup.py to pyproject.toml (#56)
- Introduce uv for faster package management
- Replace pre-commit hooks with ruff
- Add cross-platform setup and test scripts
Testing & CI/CD
- Add comprehensive test suite with pytest-xdist
- Implement GitHub Actions CI for Python 3.10-3.13
- Add daily package testing across platforms
- Automate PyPI publishing workflow
Documentation
- Enhance CONTRIBUTING.md with detailed setup instructions
- Add test suite documentation
- Update all repository references
- Fix broken links and outdated information
Bug Fixes
- Fix lingua 2.1.1 compatibility with Language.all()
- Improve exception handling
- Update repository URLs
⬆️ Upgrading
This release maintains full backward compatibility. To upgrade:
pip install safetext==0.2.0For development setup with the new tooling, see our Contributing Guide.
Full Changelog: v0.1.1...v0.2.0
0.1.1
What's Changed
- add hindi profanity list by @fcakyon in #50
- add russian profanity list by @fcakyon in #51
- add arabic, azari, chinese, persian, french, japanese profanity lists by @fcakyon in #52
- fix typo in chinese folder by @fcakyon in #53
- add whitelist functionality for profanity detection and update package description by @fcakyon in #54
Full Changelog: 0.1.0...0.1.1