From 9a5c7654bddbf8f85c37bbb160c0600da727beac Mon Sep 17 00:00:00 2001 From: "Kern.Ding" Date: Mon, 16 Oct 2023 09:08:43 -0700 Subject: [PATCH] add copyright --- source/template/launcher.py | 4 ++ source/template/src/mirror.py | 49 ++++++++++--------- source/template/test/test_mirror.py | 3 ++ source/word_translator/launcher.py | 3 ++ source/word_translator/src/translator.py | 3 ++ .../word_translator/test/test_translator.py | 3 ++ utility/lf_arg_parser/src/lf_arg_parser.py | 3 ++ .../lf_arg_parser/test/test_lf_arg_parser.py | 3 ++ 8 files changed, 48 insertions(+), 23 deletions(-) diff --git a/source/template/launcher.py b/source/template/launcher.py index 3fbc8e2..fdc7697 100644 --- a/source/template/launcher.py +++ b/source/template/launcher.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import sys from utility.lf_arg_parser.src.lf_arg_parser import get_argument_map diff --git a/source/template/src/mirror.py b/source/template/src/mirror.py index 357e0b2..ffe64d9 100644 --- a/source/template/src/mirror.py +++ b/source/template/src/mirror.py @@ -1,23 +1,26 @@ -from typing import Dict - - -def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]: - """ - The main function for your script. - - :param inputs: An object representing the input parameters passed to the script. - :type inputs: dict[str, str] - :return: An object representing the output parameters returned by the script. - :rtype: dict[str, str] - """ - - # Retrieve your input parameters from process.argv after parser - outputs: Dict[str, str] = {} - for key, value in inputs.items(): - outputs[key] = value - - # Other tasks for your script can be performed here - # ... - - # Return your output parameters to the caller - return outputs +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + +from typing import Dict + + +def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]: + """ + The main function for your script. + + :param inputs: An object representing the input parameters passed to the script. + :type inputs: dict[str, str] + :return: An object representing the output parameters returned by the script. + :rtype: dict[str, str] + """ + + # Retrieve your input parameters from process.argv after parser + outputs: Dict[str, str] = {} + for key, value in inputs.items(): + outputs[key] = value + + # Other tasks for your script can be performed here + # ... + + # Return your output parameters to the caller + return outputs diff --git a/source/template/test/test_mirror.py b/source/template/test/test_mirror.py index 065498b..bb55aa1 100644 --- a/source/template/test/test_mirror.py +++ b/source/template/test/test_mirror.py @@ -1,3 +1,6 @@ +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import pytest from ..src.mirror import YourScriptMethod diff --git a/source/word_translator/launcher.py b/source/word_translator/launcher.py index 07399b8..b18ab9b 100644 --- a/source/word_translator/launcher.py +++ b/source/word_translator/launcher.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import sys from utility.lf_arg_parser.src.lf_arg_parser import get_argument_map diff --git a/source/word_translator/src/translator.py b/source/word_translator/src/translator.py index 13e94df..0bac062 100644 --- a/source/word_translator/src/translator.py +++ b/source/word_translator/src/translator.py @@ -1,3 +1,6 @@ +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + from translate import Translator diff --git a/source/word_translator/test/test_translator.py b/source/word_translator/test/test_translator.py index b524690..d23c489 100644 --- a/source/word_translator/test/test_translator.py +++ b/source/word_translator/test/test_translator.py @@ -1,3 +1,6 @@ +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import pytest from ..src.translator import translate diff --git a/utility/lf_arg_parser/src/lf_arg_parser.py b/utility/lf_arg_parser/src/lf_arg_parser.py index c1b9431..c511aed 100644 --- a/utility/lf_arg_parser/src/lf_arg_parser.py +++ b/utility/lf_arg_parser/src/lf_arg_parser.py @@ -1,3 +1,6 @@ +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import sys diff --git a/utility/lf_arg_parser/test/test_lf_arg_parser.py b/utility/lf_arg_parser/test/test_lf_arg_parser.py index f2f3b76..cfb6bcc 100644 --- a/utility/lf_arg_parser/test/test_lf_arg_parser.py +++ b/utility/lf_arg_parser/test/test_lf_arg_parser.py @@ -1,3 +1,6 @@ +# Copyright (c) Laserfiche. +# Licensed under the MIT License. See LICENSE in the project root for license information. + import pytest from ..src.lf_arg_parser import get_argument_map