Type stubs for logbook
Project description
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.
Project details
Release history Release notifications | RSS feed
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.3.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logbook_stubs-0.3.0.tar.gz.
File metadata
- Download URL: logbook_stubs-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516e0d2152053e66246ada18cc59b9e18f558230b1732a793f4c7aaca425571f
|
|
| MD5 |
e37b6f267d16b6e9bbcc4d2ee09505b8
|
|
| BLAKE2b-256 |
30533ec686992289d127186224d9373b1bdd4f654951c9befa6812c00426bcc1
|
File details
Details for the file logbook_stubs-0.3.0-py3-none-any.whl.
File metadata
- Download URL: logbook_stubs-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff161afff72bd65c0e00eee06908ad7d3b76d9b4fb50dff9a9bbe72c5fbefc27
|
|
| MD5 |
8b7e7c681c2a9127c416dc01888a5d05
|
|
| BLAKE2b-256 |
69307baf03c7b1125f354b5a48174d075e7312254b814752fa78ca3658e0d24f
|