INNER CODE UNIT · Python

cmd

Far-Se/tabame · plugins/api-client/main.py:45

def cmd(**kwargs):
    kwargs["type"] = "command"
    send(kwargs)


def log(*a):
    print(*a, file=sys.stderr, flush=True)


def new_id(prefix="id"):
    return f"{prefix}_{uuid.uuid4().hex[:8]}"


def now_iso():
    return datetime.now().strftime("%H:%M:%S")


COLOR_PALETTE = {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…