Skip to content

Commit e485c24

Browse files
committed
Updated the plugin.py transformer example.
1 parent b34f765 commit e485c24

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

0 commit comments

Comments
 (0)