Skip to content

Releases: viddexa/safetext

v0.3.3: bug fixes

Choose a tag to compare

@fcakyon fcakyon released this 27 Dec 16:19
afe96c8

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

Full Changelog: 0.3.2...0.3.3

v0.3.2: update profanity list

Choose a tag to compare

@fcakyon fcakyon released this 06 Aug 20:32
b9019d2

What's Changed

Full Changelog: 0.3.1...0.3.2

v0.3.1: korean profanity support

Choose a tag to compare

@fcakyon fcakyon released this 05 Aug 07:16
613ee35

What's Changed

Full Changelog: 0.3.0...0.3.1

v0.3.0 custom words directory support

Choose a tag to compare

@fcakyon fcakyon released this 03 Aug 08:02
3077bfb

What's New

  • Custom Words Directory: Users can now provide a custom_words_dir parameter to extend built-in profanity lists
  • Language-Specific Files: Custom words are organized in {language_code}.txt files (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

Choose a tag to compare

@fcakyon fcakyon released this 01 Aug 19:07
e487226

What's Changed

  • fix a bug that prevented automated language detection by @fcakyon in #63

Full Changelog: 0.2.1...0.2.2

SafeText v0.2.1

Choose a tag to compare

@fcakyon fcakyon released this 24 Jul 15:45
f37be39

What's Changed

New Contributors

Full Changelog: 0.2.0...0.2.1

🎉 SafeText v0.2.0 - Modern Infrastructure & Enhanced Developer Experience

Choose a tag to compare

@fcakyon fcakyon released this 05 Jul 18:45
142332b

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.sh

What's Changed for Development

  • Use uv sync --extra dev instead of pip install -r requirements.txt
  • Use ruff for linting/formatting instead of multiple tools
  • Run pytest -n auto for 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.0

For development setup with the new tooling, see our Contributing Guide.


Full Changelog: v0.1.1...v0.2.0

0.1.1

Choose a tag to compare

@fcakyon fcakyon released this 05 Jul 16:52
c0e99fb

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

0.1.0

Choose a tag to compare

@fcakyon fcakyon released this 01 Jan 16:43
3d3d939

What's Changed

  • update language detector to latest version by @fcakyon in #48

Full Changelog: 0.0.9...0.1.0

0.0.9

Choose a tag to compare

@fcakyon fcakyon released this 05 Dec 16:28
1fdaf80

What's Changed

New Contributors

Full Changelog: 0.0.8...0.0.9