diff --git a/ia_map_lib/__init__.py b/ia_map_lib/__init__.py index 9325e83..f0032f1 100644 --- a/ia_map_lib/__init__.py +++ b/ia_map_lib/__init__.py @@ -27,21 +27,6 @@ from ia_map_lib.projector import Projector from ia_map_lib.records import Record, RecordAdapter, RecordMapper, RecordProjector, RecordUtils -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" __all__ = [ diff --git a/ia_map_lib/action.py b/ia_map_lib/action.py index 92dca5e..74b8501 100644 --- a/ia_map_lib/action.py +++ b/ia_map_lib/action.py @@ -39,21 +39,6 @@ from ia_map_lib.sources import DataSource from ia_map_lib.status import Status -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/adapter.py b/ia_map_lib/adapter.py index e890f62..1940b52 100644 --- a/ia_map_lib/adapter.py +++ b/ia_map_lib/adapter.py @@ -40,21 +40,6 @@ from ia_map_lib.status import Status from ia_map_lib.utils import validate_callable_protocol -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/config/__init__.py b/ia_map_lib/config/__init__.py index 09e128a..3868b55 100644 --- a/ia_map_lib/config/__init__.py +++ b/ia_map_lib/config/__init__.py @@ -24,21 +24,7 @@ from ia_map_lib.config.configSource import ConfigSource, EnvironmentSource from ia_map_lib.config.configurator import Configurator, OnError -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" __all__ = ['Configurator', 'OnError', 'ConfigSource', 'EnvironmentSource'] diff --git a/ia_map_lib/config/configSource.py b/ia_map_lib/config/configSource.py index 01bbe88..9638c2a 100644 --- a/ia_map_lib/config/configSource.py +++ b/ia_map_lib/config/configSource.py @@ -23,21 +23,6 @@ import os -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class ConfigSource: diff --git a/ia_map_lib/config/configurator.py b/ia_map_lib/config/configurator.py index d6feac9..54c0316 100644 --- a/ia_map_lib/config/configurator.py +++ b/ia_map_lib/config/configurator.py @@ -29,21 +29,7 @@ from ia_map_lib.config.configSource import ConfigSource, EnvironmentSource -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/config/kafka.py b/ia_map_lib/config/kafka.py index 16b51bf..a55f9e8 100644 --- a/ia_map_lib/config/kafka.py +++ b/ia_map_lib/config/kafka.py @@ -29,21 +29,7 @@ from ia_map_lib.config import Configurator, OnError -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/datasets/__init__.py b/ia_map_lib/datasets/__init__.py index 51f520c..05b5f2b 100644 --- a/ia_map_lib/datasets/__init__.py +++ b/ia_map_lib/datasets/__init__.py @@ -23,21 +23,6 @@ from ia_map_lib.datasets.datasets import DCATDataSet, SimpleDataSet -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" __all__ = [ diff --git a/ia_map_lib/errors.py b/ia_map_lib/errors.py index 0bd4cd1..468ffe2 100644 --- a/ia_map_lib/errors.py +++ b/ia_map_lib/errors.py @@ -34,21 +34,7 @@ from ia_map_lib.records import Record, RecordUtils from ia_map_lib.sinks import KafkaSink -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class ErrorLevel(Enum): diff --git a/ia_map_lib/exceptions.py b/ia_map_lib/exceptions.py index 765bc54..ba7a681 100644 --- a/ia_map_lib/exceptions.py +++ b/ia_map_lib/exceptions.py @@ -21,22 +21,6 @@ # and is legally attributed to the UK's Department for Business, Innovation, Science and Trade (BIST) as the governing entity. -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" - class ConfigurationException(Exception): """ diff --git a/ia_map_lib/logging.py b/ia_map_lib/logging.py index c54bb09..c0c7b21 100644 --- a/ia_map_lib/logging.py +++ b/ia_map_lib/logging.py @@ -33,21 +33,6 @@ from ia_map_lib import Record, RecordUtils from ia_map_lib.sinks import KafkaSink -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class LogFormats: diff --git a/ia_map_lib/mapper.py b/ia_map_lib/mapper.py index 5fe5b41..69fa7d3 100644 --- a/ia_map_lib/mapper.py +++ b/ia_map_lib/mapper.py @@ -35,21 +35,6 @@ from ia_map_lib.status import Status from ia_map_lib.utils import validate_callable_protocol -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/middleware/__init__.py b/ia_map_lib/middleware/__init__.py index 00b81ef..7400ca9 100644 --- a/ia_map_lib/middleware/__init__.py +++ b/ia_map_lib/middleware/__init__.py @@ -20,19 +20,3 @@ # © Crown Copyright 2026. This work has been developed by the National Digital Twin Programme # and is legally attributed to the UK's Department for Business, Innovation, Science and Trade (BIST) as the governing entity. - -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" diff --git a/ia_map_lib/middleware/decode_token.py b/ia_map_lib/middleware/decode_token.py index ad3afdd..189784a 100644 --- a/ia_map_lib/middleware/decode_token.py +++ b/ia_map_lib/middleware/decode_token.py @@ -30,21 +30,6 @@ from ia_map_lib.exceptions import ConfigurationException from ia_map_lib.logging import LoggerFactory -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" auth_failed = {"ok": False, "message": "Authorization failed"} diff --git a/ia_map_lib/projector.py b/ia_map_lib/projector.py index c86bbae..4e6f7cc 100644 --- a/ia_map_lib/projector.py +++ b/ia_map_lib/projector.py @@ -30,21 +30,7 @@ from ia_map_lib.status import Status from ia_map_lib.utils import validate_callable_protocol -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class Projector(InputAction): diff --git a/ia_map_lib/records.py b/ia_map_lib/records.py index 2ffc838..e7297cd 100644 --- a/ia_map_lib/records.py +++ b/ia_map_lib/records.py @@ -29,21 +29,7 @@ from collections.abc import Iterable, Mapping from typing import Any, Protocol, runtime_checkable -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/reporter.py b/ia_map_lib/reporter.py index 051f579..827a6dd 100644 --- a/ia_map_lib/reporter.py +++ b/ia_map_lib/reporter.py @@ -41,21 +41,6 @@ from ia_map_lib.sinks.kafkaSink import KafkaSink from ia_map_lib.status import Status -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" logger = logging.getLogger(__name__) diff --git a/ia_map_lib/sinks/__init__.py b/ia_map_lib/sinks/__init__.py index 89b1914..e6d47fc 100644 --- a/ia_map_lib/sinks/__init__.py +++ b/ia_map_lib/sinks/__init__.py @@ -25,21 +25,6 @@ from ia_map_lib.sinks.kafkaSink import KafkaSink from ia_map_lib.sinks.serializers import RdfSerializer, SerializerFunction, Serializers -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" __all__ = [ diff --git a/ia_map_lib/sinks/dataSink.py b/ia_map_lib/sinks/dataSink.py index 022ddf0..de8bd17 100644 --- a/ia_map_lib/sinks/dataSink.py +++ b/ia_map_lib/sinks/dataSink.py @@ -23,21 +23,7 @@ from ia_map_lib.records import Record -__license__ = """ -Copyright (c) Telicent Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class DataSink: diff --git a/ia_map_lib/sinks/dictSink.py b/ia_map_lib/sinks/dictSink.py index ae612a3..966e3a9 100644 --- a/ia_map_lib/sinks/dictSink.py +++ b/ia_map_lib/sinks/dictSink.py @@ -26,21 +26,6 @@ from ia_map_lib import Record from ia_map_lib.sinks import DataSink -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class DictionarySink(DataSink): diff --git a/ia_map_lib/sinks/kafkaSink.py b/ia_map_lib/sinks/kafkaSink.py index 0e62141..c8b7c7f 100644 --- a/ia_map_lib/sinks/kafkaSink.py +++ b/ia_map_lib/sinks/kafkaSink.py @@ -37,22 +37,6 @@ from ia_map_lib.sinks.serializers import SerializerFunction, Serializers from ia_map_lib.utils import check_kafka_broker_available, validate_callable_protocol -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" - logger = logging.getLogger(__name__) diff --git a/ia_map_lib/sinks/listSink.py b/ia_map_lib/sinks/listSink.py index e46392e..e90648c 100644 --- a/ia_map_lib/sinks/listSink.py +++ b/ia_map_lib/sinks/listSink.py @@ -24,21 +24,6 @@ from ia_map_lib.records import Record from ia_map_lib.sinks import DataSink -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class ListSink(DataSink): diff --git a/ia_map_lib/sinks/serializers.py b/ia_map_lib/sinks/serializers.py index c4f3704..bc55963 100644 --- a/ia_map_lib/sinks/serializers.py +++ b/ia_map_lib/sinks/serializers.py @@ -31,21 +31,6 @@ from confluent_kafka.serialization import Serializer from rdflib import Graph -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" @runtime_checkable diff --git a/ia_map_lib/status.py b/ia_map_lib/status.py index 6fa14d2..c00610e 100644 --- a/ia_map_lib/status.py +++ b/ia_map_lib/status.py @@ -23,21 +23,6 @@ from enum import Enum -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" class Status(Enum): diff --git a/ia_map_lib/utils.py b/ia_map_lib/utils.py index 4ae8b72..f12b8d0 100644 --- a/ia_map_lib/utils.py +++ b/ia_map_lib/utils.py @@ -34,21 +34,6 @@ from confluent_kafka.admin import AdminClient -__license__ = """ -Copyright (c) Telicent Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" def __get_signature__(function: Any) -> inspect.Signature | None: