Skip to content

Commit 3d6f469

Browse files
committed
Add RSD and PyPi badges
1 parent 311fd6d commit 3d6f469

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
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+
912
Python package to record calls of Python CLI commands into a [Research Object Crate (RO-Crate)](https://www.researchobject.org/ro-crate/).
1013

1114
Supports [RO-Crate 1.1](https://www.researchobject.org/ro-crate/specification/1.1/index.html) specification.

example/myscript.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from 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
911
def make_parser():
1012
parser = argparse.ArgumentParser(prog="myscript", description="Example CLI")
1113
parser.add_argument("--version", action="version", version="%(prog)s 1.0.0")

0 commit comments

Comments
 (0)