Skip to content

Commit f4981ea

Browse files
Merge pull request #15 from christian-nfi/HANSKEN-21942
Updated extraction-plugin-sdk to 0.9.5
2 parents 4d7f03f + e485c24 commit f4981ea

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Hansken Extraction Plugin template for Python based on version 0.9.4
1+
# Hansken Extraction Plugin template for Python based on version 0.9.5
22

33
This repository contains a template for a Hansken extraction plugin written in Python.
44
This template is a minimal but complete example of a plugin implementation, including all required build steps.

plugin.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ def process(self, trace, data_context):
2828
# Add your plugin implementation here
2929

3030
@transformer
31-
def example_transformer(self, number: int) -> int:
32-
# Optional transformer method to run this method with a REST call
33-
# See detail at:
31+
def example_transformer(self, name: str) -> str:
32+
# Optional transformer method that can be executed on-demand via the Hansken REST API.
33+
# Multiple argument types and return types are supported.
34+
# For more information see:
3435
# https://netherlandsforensicinstitute.github.io/hansken-extraction-plugin-sdk-documentation/latest/dev/python/transformers.html
35-
return number + 1
36+
return f"Hello {name}"
3637

3738
if __name__ == '__main__':
3839
# Optional main method to run your plugin with Hansken.py

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hansken-extraction-plugin == 0.9.4
1+
hansken-extraction-plugin == 0.9.5

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ grpcio==1.70.0
1010
# via hansken-extraction-plugin
1111
hansken==2024.12.4
1212
# via hansken-extraction-plugin
13-
hansken-extraction-plugin==0.9.4
13+
hansken-extraction-plugin==0.9.5
1414
# via -r requirements.in
1515
idna==3.10
1616
# via requests

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ commands = test_plugin --standalone plugin.py
1010
commands = test_plugin --standalone plugin.py --regenerate
1111

1212
[testenv:package]
13-
deps = hansken-extraction-plugin==0.9.4
13+
deps = hansken-extraction-plugin==0.9.5
1414
commands = build_plugin . {posargs}
1515

1616
[testenv:integration-test]
17-
deps = hansken-extraction-plugin==0.9.4
17+
deps = hansken-extraction-plugin==0.9.5
1818
commands =
1919
build_plugin . plugin-to-test {posargs}
2020
test_plugin --docker plugin-to-test

0 commit comments

Comments
 (0)