--- id: logfire-api version: "4.40.0" license: MIT license_treatment: permissive maintenance: active --- # logfire-api — Shim for the Logfire SDK which does nothing unless Logfire is installed License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install logfire-api uv add logfire-api poetry add logfire-api ## Description # logfire-api Shim for the logfire SDK Python API which does nothing unless logfire is installed. This package is designed to be used by packages that want to provide opt-in integration with [Logfire](https://github.com/pydantic/logfire). The package provides a clone of the Python API exposed by the `logfire` package which does nothing if the `logfire` package is not installed, but makes real calls when it is. ## AI interpretation — verify before relying A no-op shim for the Logfire SDK API that allows packages to offer optional Logfire integration without requiring Logfire as a hard dependency—calls are silently ignored if Logfire is not installed, but forwarded to the real SDK when it is. Verdict: A lightweight, well-maintained shim for adding optional Logfire instrumentation to libraries without forcing a hard dependency. Zero security vulnerabilities, permissive MIT license, and no external dependencies make it a low-risk addition to any package's integration layer. [View on SkillFed](https://skillfed.io/packages/logfire-api) · [View on PyPI](https://pypi.org/project/logfire-api/)