logmuse
Logging setup
Decision gist · record as of 2026-08-14
Yes. Logmuse is a lightweight, actively maintained utility with no dependencies, permissive licensing, and a clear single purpose: reducing boilerplate for CLI logging. Install it if you're building a command-line tool with argparse and want standard logging options without writing setup code. Skip it only if you prefer to manage logging configuration yourself or don't need CLI-driven verbosity control.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Active maintenance—released 7 days ago with commits through 2026-08-07.
- Supports Python 3.10 through 3.14.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause (permissive): you can use, modify, and distribute logmuse freely in commercial and open-source projects with minimal restrictions.
last release 2026-08-07 (7 days) · last repo commit 2026-08-07 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 122,441 downloads/mo, #11,950 on PyPI
Alternatives
Verify before relying
pip install logmuse
import argparse
import logmuse
parser = argparse.ArgumentParser()
parser = logmuse.add_logging_options(parser)
args = parser.parse_args()
logger = logmuse.logger_via_cli(args)
logger.info("Hello, world!")- Whether logmuse's root logger configuration works correctly when the package is imported as a library by other code
- Performance impact of logmuse's handler setup on applications with many loggers
What it is and what it does
Logmuse is a small utility that bridges argparse and Python's standard logging module, letting you add three standard CLI options (`--verbosity`, `--silent`, `--logdev`) to your command-line tool in one line. Instead of writing your own logging setup code, you call `add_logging_options()` to inject these arguments into your parser, then `logger_via_cli()` to configure the root logger based on what the user passed. All loggers in your package and its dependencies automatically respect these settings.
The package is designed for CLI tools that want familiar logging controls without boilerplate. It works with standard Python logging, so imported packages don't need logmuse at all—they just use `logging.getLogger(__name__)` and inherit the configuration from your CLI entry point. The main gotcha is to avoid calling `init_logger()` at import time, which would break library usage by replacing handlers before the root logger can be configured.
Use it for
- Add standard logging controls to a CLI tool without writing custom argparse setup or logging configuration code.
- Let users control verbosity levels (1–5 mapping to CRITICAL through DEBUG) and developer mode from the command line.
- Silence all logging output with `--silent` for scripting or batch workflows.
- Enable detailed developer logging with timestamps and line numbers via `--logdev` for debugging.
- Configure logging in an interactive Python session with `init_logger()` for quick testing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Logmuse is a lightweight, actively maintained utility with no dependencies, permissive licensing, and a clear single purpose: reducing boilerplate for CLI logging. Install it if you're building a command-line tool with argparse and want standard logging options without writing setup code. Skip it only if you prefer to manage logging configuration yourself or don't need CLI-driven verbosity control.
Install
logmuse on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Active maintenance—released 7 days ago with commits through 2026-08-07. Supports Python 3.10 through 3.14.
License in practice
BSD-2-Clause (permissive): you can use, modify, and distribute logmuse freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install logmuse
import argparse
import logmuse
parser = argparse.ArgumentParser()
parser = logmuse.add_logging_options(parser)
args = parser.parse_args()
logger = logmuse.logger_via_cli(args)
logger.info("Hello, world!")
Verify before relying
- Whether logmuse's root logger configuration works correctly when the package is imported as a library by other code
- Performance impact of logmuse's handler setup on applications with many loggers
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 122,441 / month, #11,950 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Bio-Informatics |
Evidence: logmuse-0.3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cli logging options”
- logmuseAdds standard CLI logging options (`--verbosity`, `--silent`,…
- more-clickProvides pre-built Click decorators and utilities for common CLI…
- snakemake-interface-logger-pluginsProvides a stable interface specification for building logger plugins…
Give your agent the search over MCP, or paste the wish link into any chat.
More Bio-Informatics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Biopython provides Python tools for computational molecular biology, including sequence analysis, structure parsing, database access, and phylogenetic tree manipulation.
However, verify that the custom Biopython License Agreement aligns with your project's licensing requirements before committing to it in production or proprietary work.
Client library for the Firecrawl API that scrapes, crawls, and searches the web, returning clean Markdown or structured data; also indexes research papers from PubMed, bioRxiv, medRxiv, and arXiv.
A self-balancing interval tree data structure that stores and queries overlapping or enveloped ranges, supporting point lookups, range overlaps, and range envelopment queries.
Install it if you need to store and query overlapping or enveloped ranges; the self-balancing design and rich query interface make it significantly easier than…
Albumentations applies image transformations to training data, supporting classification, segmentation, object detection, and pose estimation with a unified API for images, masks, bounding boxes, and keypoints.
Install it if you need a unified, production-grade augmentation API for computer vision tasks.
PubChemPy is a Python wrapper around the PubChem REST API that lets you search for chemical compounds by name, substructure, or similarity, retrieve their properties, and convert between chemical file formats.
Install it if you need programmatic access to PubChem data.
See also jaraco.logging · Twiggy · logistro · vmodule · verboselogs · glog · logging-tree · tiered-debug · snakemake-interface-logger-plugins · codemagic-cli-tools