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, levelslogbook.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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logbook_stubs-0.5.0.tar.gz | 67.9 kB | With provenance | Details for logbook_stubs-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logbook_stubs-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for logbook_stubs-0.5.0-py3-none-any.whl |
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 logRelease 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 logSecurity for logbook-stubs 0.5.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for logbook_stubs-0.5.0.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.