@command
def stats(env):
    usage = env.database.cache.usage

    usage = sorted(((b, a) for (a, b) in usage.items()), reverse=True)
    usage = list(usage)[:10]
    usage = ["%s (%s)" % (b, a) for (a, b) in usage]
    env.reply("Top used commands: " + ", ".join(usage))
Display information about the most used commands
dataset/ETHPy150Open sbp/duxlot/standard/core.py/stats