File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11# rocrate-action-recorder
22
33<!-- SPHINX-START -->
4+ [ ![ PyPI] ( https://img.shields.io/pypi/v/rocrate-action-recorder )] ( https://pypi.org/project/rocrate-action-recorder/ )
5+ [ ![ Research Software Directory Badge] ( https://img.shields.io/badge/rsd-00a3e3.svg )] ( https://research-software-directory.org/software/rocrate-action-recorder )
46[ ![ github repo badge] ( https://img.shields.io/badge/github-repo-000.svg?logo=github&labelColor=gray&color=blue )] ( https://github.com/i-VRESSE/rocrate-action-recorder )
57[ ![ github license badge] ( https://img.shields.io/github/license/i-VRESSE/rocrate-action-recorder )] ( https://github.com/i-VRESSE/rocrate-action-recorder )
68[ ![ CI] ( https://github.com/i-VRESSE/rocrate-action-recorder/actions/workflows/ci.yml/badge.svg )] ( https://github.com/i-VRESSE/rocrate-action-recorder/actions/workflows/ci.yml )
79[ ![ readthedocs] ( https://app.readthedocs.org/projects/rocrate-action-recorder/badge/?version=latest )] ( https://rocrate-action-recorder.readthedocs.io/en/latest/ )
810
11+
912Python package to record calls of Python CLI commands into a [ Research Object Crate (RO-Crate)] ( https://www.researchobject.org/ro-crate/ ) .
1013
1114Supports [ RO-Crate 1.1] ( https://www.researchobject.org/ro-crate/specification/1.1/index.html ) specification.
Original file line number Diff line number Diff line change 55from rocrate_action_recorder import recorded_argparse
66
77
8- @lru_cache (maxsize = 1 ) # Cache the parser instance to avoid re-creating it for each handler
8+ @lru_cache (
9+ maxsize = 1
10+ ) # Cache the parser instance to avoid re-creating it for each handler
911def make_parser ():
1012 parser = argparse .ArgumentParser (prog = "myscript" , description = "Example CLI" )
1113 parser .add_argument ("--version" , action = "version" , version = "%(prog)s 1.0.0" )
You can’t perform that action at this time.
0 commit comments