Skip to content

Runtime provider

The public protocol describes the metadata a runtime provider supplies to the driver. Applications can use the firebird.runtime.providers entry-point group to discover and instantiate a provider, then pass it to load_api(). The driver does not choose an entry point.

firebird.driver.provider.FirebirdProvider

Bases: Protocol

Description of a Firebird-compatible runtime supplied to the driver.

Source code in firebird/driver/provider.py
class FirebirdProvider(Protocol):
    """Description of a Firebird-compatible runtime supplied to the driver."""

    @property
    def name(self) -> str:
        """Runtime implementation identifier."""
        ...

    @property
    def package_version(self) -> str:
        """Version of the distribution supplying this runtime."""
        ...

    @property
    def firebird_version(self) -> str:
        """Version of the supplied client library."""
        ...

    @property
    def root(self) -> Path:
        """Runtime root directory."""
        ...

    @property
    def client_library(self) -> Path:
        """Client library to load."""
        ...

    @property
    def firebird_log(self) -> Path | None:
        """Path to a directly accessible Firebird log, if available."""
        ...

    @property
    def capabilities(self) -> frozenset[str]:
        """Features supplied by this runtime."""
        ...

capabilities: frozenset[str] property

Features supplied by this runtime.

client_library: Path property

Client library to load.

firebird_log: Path | None property

Path to a directly accessible Firebird log, if available.

firebird_version: str property

Version of the supplied client library.

name: str property

Runtime implementation identifier.

package_version: str property

Version of the distribution supplying this runtime.

root: Path property

Runtime root directory.