{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"}],"enrichment":{"capability":"Extends pytest's caplog fixture to capture and assert on logs produced by loguru, enabling structured logging verification in pytest tests.","skillfed_tags":["pytest-plugin","logging","test-fixtures"],"use_cases":["Verify that your application logs specific messages at the correct log level during unit tests","Assert that error or warning logs are emitted when expected in exception-handling code paths","Capture and inspect structured log fields added by loguru in test assertions","Ensure log output does not contain sensitive information before it reaches production"],"what_it_does":"pytest-loguru is a pytest plugin that bridges loguru's structured logging with pytest's built-in caplog fixture. When you use loguru for logging in your application, pytest's standard caplog fixture does not capture those logs by default\u2014this plugin solves that by making loguru logs available through caplog, so you can write assertions on them just as you would with the standard library's logging module.\n\nThe plugin is lightweight, requiring only loguru as a runtime dependency, and works across Python 3.8 through 3.12 on all major operating systems. It's maintained actively and carries no known security vulnerabilities, making it a straightforward addition to test suites that already use loguru for application logging.","worth_installing":"Yes. If you use loguru in your application and pytest for testing, this plugin is a straightforward, low-friction addition that removes a gap in test observability. It has no known vulnerabilities, active maintenance, and a permissive license. Install it if you need to assert on loguru output in tests."},"id":"pytest-loguru","links":{"html":"https://skillfed.io/packages/pytest-loguru","md":"https://skillfed.io/packages/pytest-loguru.md","pypi":"https://pypi.org/project/pytest-loguru/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-16","license_spdx":null,"license_treatment":"permissive","name":"pytest-loguru","python_support":"supports_current","summary":"Pytest Loguru"},"popularity":{"monthly_downloads":302970,"position":7817,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.1"}
