sqlescapy is a Python library for escaping SQL special characters and quotes in strings. The latest version is 1.0.1, which supports Python >=2.7. It is a lightweight, single-function library with no dependencies. No major changes or breaking changes have been observed; it has been in maintenance mode with infrequent updates.
pip install sqlescapyVerified import paths — ran on the pinned version, not inferred.
Import sqlescape and use it to escape potentially dangerous characters in SQL string literals.
Use 'from sqlescapy import sqlescape'.
Use parameterized statements (e.g., with database drivers) as the primary defense against SQL injection.
Test thoroughly with your specific database character set, or consider using database-specific escaping functions.
Use: from sqlescapy import sqlescape
Import and call sqlescapy.sqlescape().
No dependency data recorded yet.