{"library":"requests-hardened","title":"requests-hardened","description":"A security-hardened wrapper around the Python requests library that overrides default behaviors to prevent SSRF attacks, enforce TLS best practices, restrict IP ranges, and add safety features. Current version 1.2.2, supports Python >=3.10, <4.0, and is maintained actively by Saleor.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install requests-hardened"],"cli":null},"imports":["from requests_hardened import Session","from requests_hardened import Config","from requests_hardened.ip_filter import IPFilter"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from requests_hardened import Session, Config\n\nconfig = Config(\n    user_agent='MyApp/1.0',\n    ip_filter_enabled=True,\n    ip_filter_allow_loopback=True,\n    force_tls_1_3=True\n)\n\nsession = Session(config=config)\nresponse = session.get('https://example.com')\nprint(response.status_code)","lang":"python","description":"Create a hardened requests Session with a Config object to enforce TLS and IP restrictions.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}