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.1.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for llvm_diagnostics-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c7d646c1ee96f35972ded3d45b5b24dcde2f3d2538c4f45eaac78735062fc7 |
|
MD5 | 2e88a56b5b5084196c504f3f44325049 |
|
BLAKE2b-256 | 29f8d70d01385aa00cf79b242a7a1a0239d8f272aedc430928f63712b22fde3e |