logfire-api
Shim for the Logfire SDK which does nothing unless Logfire is installed
Install
logfire-api on PyPI
pip
pip install logfire-apiuv
uv add logfire-apipoetry
poetry add logfire-apiPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 8 days since the last release |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: logfire_api-4.40.0-py3-none-any.whl
About logfire-api
from the package's own PyPI description — quoted content, verbatim
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.
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
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
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.
Very low friction: pure Python wheel with zero runtime dependencies and active maintenance (8 days since last release). Supports Python 3.10+.
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.
Usage
pip install logfire-api
from logfire_api import configure
configure() # No-op unless logfire is installed
Requires Python 3.10 or later.
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.
Needs verification
- Whether the shim's API surface fully mirrors the current Logfire SDK or lags behind new features.
- Real-world adoption rate and feedback from packages using this shim for Logfire integration.
Similar packages
permissive · top 1,000 on PyPI
deepdiffpermissive · top 1,000 on PyPI
httpx2permissive · top 1,000 on PyPI
editablespermissive · top 1,000 on PyPI
pydantic-settingspermissive · top 100 on PyPI
pip-requirements-parserpermissive · top 1,000 on PyPI
typedloadcopyleft · top 1,000 on PyPI
pydanticpermissive · top 100 on PyPI
h11permissive · top 100 on PyPI
xlrdpermissive · top 1,000 on PyPI