How to use the rich.console function in rich

To help you get started, we’ve selected a few rich examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nf-core / tools / nf_core / __main__.py View on Github external
def nf_core_cli(verbose):
    stderr = rich.console.Console(file=sys.stderr)
    logging.basicConfig(
        level=logging.DEBUG if verbose else logging.INFO,
        format="%(message)s",
        datefmt=".",
        handlers=[rich.logging.RichHandler(console=stderr)],
    )