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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logbook_stubs-0.4.0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logbook_stubs-0.4.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file logbook_stubs-0.4.0.tar.gz.

File metadata

  • Download URL: logbook_stubs-0.4.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for logbook_stubs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b74321f2878c4e1862a55eb6599b8c74cd23cbae546da09bc9751cd0aa05e6d3
MD5 fccf706b08e205f11c807ee26ae48d08
BLAKE2b-256 c6975db46df09d733d03976f995d0d13a1a9cae26d36dd89d173c173e276a193

See more details on using hashes here.

Provenance

The following attestation bundles were made for logbook_stubs-0.4.0.tar.gz:

Publisher: ci.yaml on hongquan/logbook-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file logbook_stubs-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: logbook_stubs-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for logbook_stubs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8642347bba95510721c6db413f8818c8bffade3d1b342c4e04cffa0b7afe87c3
MD5 81227f71f232981deea3aebbc24fa791
BLAKE2b-256 6ab954832abd1715965b3de81977b6e8b245e25157f3236d9579955f33be7aef

See more details on using hashes here.

Provenance

The following attestation bundles were made for logbook_stubs-0.4.0-py3-none-any.whl:

Publisher: ci.yaml on hongquan/logbook-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page