{"library":"safe-init","title":"Safe Init","description":"Safe Init is a Python library that enhances AWS Lambda functions with advanced error handling, logging, monitoring, and resilience features. Version 1.4.0 (released 2025-04-02) adds automatic JSON serialization checks and uses uv for dependency management. The library requires Python <3.12 and >=3.11, and integrates with Sentry, Slack, AWS Secrets Manager, and Redis.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install safe-init"],"cli":null},"imports":["from safe_init import SafeInit","from safe_init import SafeInitWrapper"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from safe_init import SafeInit\n\n# Initialize with Sentry DSN (use environment variable)\nsafe_init = SafeInit(dsn=os.environ.get('SENTRY_DSN', ''))\n\n@safe_init.lambda_handler\ndef lambda_handler(event, context):\n    return {'statusCode': 200, 'body': 'Hello from Safe Init!'}","lang":"python","description":"Wrap your Lambda handler with the @safe_init.lambda_handler decorator to automatically capture errors and report to Sentry.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}