INNER CODE UNIT · Python

UnsortedGroup

open2c/cooler · src/cooler/cli/__init__.py:12

class UnsortedGroup(click.Group):
    """A click Group that lists commands in the order they were added."""

    def list_commands(self, ctx):
        return list(self.commands)


def setup_psutil_at_exit(logger):
    try:
        import psutil
    except ImportError:
        logger.warning("Install psutil to see process information.")
        return

    attrs_available = {
        x
        for x in dir(psutil.Process)
        if not x.startswith("_")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…