Python Logger using LLVM Diagnostics specifications
Project description
Python module for creating diagnostics using the LLVM diagnostics specification
Installation
$ pip install llvm-diagnostics
Example
from llvm_diagnostics import messages
message = messages.DiagnosticsMessage(
file_path='fake_file.py',
line_number=10,
column_number=15,
level=messages.DiagnosticsLevel.WARNING,
message='Value exceeds maximum, automatically capped to 100',
hint=messages.DiagnosticsHint('mPercentage = 105', mismatch='105', expectation='100')
).report()
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
llvm-diagnostics-0.0.2.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for llvm_diagnostics-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1100787369620306d19c3378b3a0e10057979bd7bf8ff106b72d759584b7d492 |
|
MD5 | 02bc781c559f6b98132141e9b9ccb50f |
|
BLAKE2b-256 | f687b4f320035d2c797f10bbcc55bfffbd4249549cb9afdfcb01df6244e7d20e |