skillfed

logfire-api

Shim for the Logfire SDK which does nothing unless Logfire is installed

logfire-api Permissive license MIT Active v4.40.0 released

Install

logfire-api on PyPI

pip

pip install logfire-api

uv

uv add logfire-api

poetry

poetry add logfire-api

Package 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.

Read as markdown · JSON record

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.
optional logfire integrationlogfire shim no dependencyconditional logging integrationlogfire api stubopt-in observabilitylogfire optional instrumentation

Similar packages