Skip to main content

logbook-stubs

Type stubs for Logbook.

Provides .pyi files for type checking and IDE autocompletion.

Installation

pip install logbook-stubs

or

uv add logbook-stubs --group test

Usage

Type checkers use these stubs automatically when you import logbook.

Example:

from __future__ import annotations
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from logbook.base import LogRecord


def emit(record: LogRecord) -> None: ...

Included

  • logbook.base: LogRecord, levels
  • logbook.handlers: Handlers, formatters

Compatibility

Tested with Logbook >= 1.9.0. It does not cover all classes in Logbook yet.

These stubs are validated against mypy, pyrefly, and zuban.

Deprecated names are intentionally not supported in the stubs. Use the non-deprecated equivalents instead (for example, logbook.handlers.FingersCrossedHandler rather than logbook.more.FingersCrossedHandler).

Metadata

Release files for logbook-stubs 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logbook-stubs 0.5.0
File Size Uploaded
logbook_stubs-0.5.0.tar.gz 67.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logbook-stubs 0.5.0
File Interpreter ABI Platform
logbook_stubs-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 81.8 kB

Release files / logbook_stubs-0.5.0.tar.gz

Download URL logbook_stubs-0.5.0.tar.gz
Size 67.9 kB
Tags Source
SHA-256 checksum
How to use checksums
05871f37a5ee5e05689317d6bca46240f11396c51276c9a8595cc1f110c85cab
BLAKE2b-256 checksum
How to use checksums
ee68b230f3a5f7d76d2fb4ac4f198926539426869f4117e9bce24f45ac383e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / logbook_stubs-0.5.0-py3-none-any.whl

Download URL logbook_stubs-0.5.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e4e2094eb957c507349ea92844da7399e4b8e96fbb183b41ece199b46657485
BLAKE2b-256 checksum
How to use checksums
d8dab36ade715e2168e37d49595c0b6798de0db24c5349d68020637c8816f3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page