Comming back
This commit is contained in:
parent
8f1d12ed17
commit
217cde0bad
|
@ -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()
|
||||||
|
|
|
@ -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.",
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Reference in New Issue