{"library":"sqlescapy","title":"sqlescapy","type":"library","description":"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.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install sqlescapy"],"cli":null},"imports":["from sqlescapy import sqlescape"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/elouajib/sqlescapy","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sqlescapy/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from sqlescapy import sqlescape\n\n# Escape a string for use in SQL\nsafe_string = sqlescape(\"O'Brien\")\nprint(safe_string)  # Output: O\\'Brien\n\n# Also handles backslashes and other special characters\nprint(sqlescape(\"test\\\\value\"))  # Output: test\\\\value\n","lang":"python","description":"Import sqlescape and use it to escape potentially dangerous characters in SQL string literals.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}