Comming back

This commit is contained in:
Titivillus 2024-04-05 17:44:53 +00:00
parent 8f1d12ed17
commit 217cde0bad
3 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,12 @@ from datetime import timedelta
from uniplot import plot_to_string from uniplot import plot_to_string
"""
TODO:
sample() to common.py as sample_loop() for --items
full_loop() for --all
"""
class Analizer: class Analizer:
def __init__(self, jsonl, sample_len, keys, ky, out_dir, debug, quiet): def __init__(self, jsonl, sample_len, keys, ky, out_dir, debug, quiet):
self.start_time = time.process_time() self.start_time = time.process_time()

View File

@ -4,6 +4,11 @@ from colligere.analizer import Analizer
def parse(args=None): def parse(args=None):
"""
TODO:
--items as global parameter
--all overrides --items
"""
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog="colligere", prog="colligere",
description="Tool for metadata in JSON Lines.", description="Tool for metadata in JSON Lines.",

View File

@ -19,6 +19,10 @@ def test_helps(capsys):
["-h"], ["-h"],
["analize", "-h"], ["analize", "-h"],
] ]
"""
TODO:
filter, search, set ops
"""
for args in cmds: for args in cmds:
assert_out(capsys, "usage:", *args) assert_out(capsys, "usage:", *args)