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.

Metadata

Release files for logbook-stubs 0.4.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.4.0
File Size Uploaded
logbook_stubs-0.4.0.tar.gz 36.3 kB Details

Built distribution (wheel)

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

Total release size: 45.3 kB

Release files / logbook_stubs-0.4.0.tar.gz

Download URL logbook_stubs-0.4.0.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b74321f2878c4e1862a55eb6599b8c74cd23cbae546da09bc9751cd0aa05e6d3
BLAKE2b-256 checksum
How to use checksums
c6975db46df09d733d03976f995d0d13a1a9cae26d36dd89d173c173e276a193
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 Aug 13, 2026.

Transparency log

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

Download URL logbook_stubs-0.4.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8642347bba95510721c6db413f8818c8bffade3d1b342c4e04cffa0b7afe87c3
BLAKE2b-256 checksum
How to use checksums
6ab954832abd1715965b3de81977b6e8b245e25157f3236d9579955f33be7aef
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 Aug 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

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