{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"},{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/4"},{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"Safe Init wraps AWS Lambda handlers to provide automatic error handling, execution tracing, and integration with monitoring services like Sentry, Datadog, and Slack.","skillfed_tags":["aws-lambda","error-handling","observability"],"use_cases":["Wrap existing Lambda functions with centralized error tracking and Sentry integration without modifying handler code","Send Slack alerts when Lambda functions encounter errors or approach timeout limits","Automatically push failed Lambda events to a dead-letter queue for asynchronous retry or analysis","Trace execution time of function calls within Lambda to identify performance bottlenecks","Automatically resolve AWS Secrets Manager secrets from environment variables during Lambda initialization"],"what_it_does":"Safe Init is a wrapper library for AWS Lambda handlers that intercepts execution to add error handling, logging, and monitoring without requiring changes to your handler code. You point your Lambda's entry point to `safe_init.handler.handler`, set an environment variable to your original handler, and the library takes over\u2014capturing unhandled exceptions, tracing function call execution times, and forwarding errors to Sentry, Datadog, or Slack depending on your configuration.\n\nThe library integrates with AWS Secrets Manager for automatic secret resolution, supports dead-letter queues for failed events, detects JSON serialization failures, and sends pre-timeout notifications. It is designed as a safety net rather than a replacement for in-code error handling. Runtime dependencies include boto3 for AWS API access, Datadog and Sentry SDKs for monitoring, Redis for caching, and structlog for structured logging.","worth_installing":"Yes, if you run AWS Lambda functions and want centralized error handling and monitoring without modifying your handler code. The library is actively maintained, has no known vulnerabilities, and low install friction. Suitable for production use. Caveat: requires Python 3.11 specifically, so verify your Lambda runtime version before adoption."},"id":"safe-init","links":{"html":"https://skillfed.io/packages/safe-init","md":"https://skillfed.io/packages/safe-init.md","pypi":"https://pypi.org/project/safe-init/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":"MIT","license_treatment":"permissive","name":"safe-init","python_support":"capped_below_current","summary":"Safe Init is a Python library that enhances AWS Lambda functions with advanced error handling, logging, monitoring, and resilience features, providing comprehensive observability and reliability for serverless applications."},"popularity":{"monthly_downloads":198378,"position":9732,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
