From 24caa791fd5f831dc8c5fccfa0709c68146533c7 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 8 Sep 2021 10:58:15 +0200 Subject: docs and stats stub --- python/refcat/cli.py | 5 ++++- python/refcat/techreport.py | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 python/refcat/techreport.py diff --git a/python/refcat/cli.py b/python/refcat/cli.py index c589310..a490553 100644 --- a/python/refcat/cli.py +++ b/python/refcat/cli.py @@ -7,7 +7,9 @@ Command line entry point for running various data tasks. - $ refcat.pyz [COMMAND | TASK] [OPTIONS] + $ refcat.pyz TASK [OPTIONS] + + $ refcat.pyz COMMAND [OPTIONS] Commands: ls, ll, deps, tasks, files, config, cat, completion @@ -32,6 +34,7 @@ from refcat import __version__ from refcat.deps import dump_deps, dump_deps_dot from refcat.settings import LOGGING_CONF_FILE, settings from refcat.tasks import * +from refcat.techreport import * from refcat.utils import columnize # These are utility classes of luigi. diff --git a/python/refcat/techreport.py b/python/refcat/techreport.py new file mode 100644 index 0000000..904f9c9 --- /dev/null +++ b/python/refcat/techreport.py @@ -0,0 +1,14 @@ + +""" +Tasks for techreport. +""" + +from refcat.tasks import Refcat, OpenCitations + +class COCIStats(Refcat): + + def requires(self): + return OpenCitations() + + def run(self): + print(self.input().path) -- cgit v1.2.3