diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-09-08 10:58:15 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-09-08 10:58:15 +0200 |
commit | 24caa791fd5f831dc8c5fccfa0709c68146533c7 (patch) | |
tree | 25320c75867493a4f4e6a9df8d768073aad81806 | |
parent | e3c587726d624d4b5640c2d5ea312204ac7eacaa (diff) | |
download | refcat-24caa791fd5f831dc8c5fccfa0709c68146533c7.tar.gz refcat-24caa791fd5f831dc8c5fccfa0709c68146533c7.zip |
docs and stats stub
-rw-r--r-- | python/refcat/cli.py | 5 | ||||
-rw-r--r-- | python/refcat/techreport.py | 14 |
2 files changed, 18 insertions, 1 deletions
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) |