diff --git a/LICENSE.md b/LICENSE.md index a910c85..ddffcae 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Open Knowledge Foundation +Copyright (c) 2024 Open Knowledge Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dplib/LICENSES/MIT.txt b/dplib/LICENSES/MIT.txt new file mode 100644 index 0000000..6b2e301 --- /dev/null +++ b/dplib/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2024 Open Knowledge Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/dplib/__init__.py b/dplib/__init__.py index cf78008..e8d7f5f 100644 --- a/dplib/__init__.py +++ b/dplib/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .settings import VERSION as __version__ diff --git a/dplib/actions/__init__.py b/dplib/actions/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/__init__.py +++ b/dplib/actions/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/__spec__/test_dialect_check.py b/dplib/actions/__spec__/test_dialect_check.py index 59393bf..44d4a02 100644 --- a/dplib/actions/__spec__/test_dialect_check.py +++ b/dplib/actions/__spec__/test_dialect_check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.actions.dialect.check import check_dialect from dplib.models import Dialect diff --git a/dplib/actions/__spec__/test_package_check.py b/dplib/actions/__spec__/test_package_check.py index 5c780b6..e7dd3eb 100644 --- a/dplib/actions/__spec__/test_package_check.py +++ b/dplib/actions/__spec__/test_package_check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import pytest from dplib.actions.package.check import check_package diff --git a/dplib/actions/__spec__/test_resource_check.py b/dplib/actions/__spec__/test_resource_check.py index c981557..e835bde 100644 --- a/dplib/actions/__spec__/test_resource_check.py +++ b/dplib/actions/__spec__/test_resource_check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.actions.resource.check import check_resource from dplib.models import Resource diff --git a/dplib/actions/__spec__/test_schema_check.py b/dplib/actions/__spec__/test_schema_check.py index 3a96632..7a9fc50 100644 --- a/dplib/actions/__spec__/test_schema_check.py +++ b/dplib/actions/__spec__/test_schema_check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.actions.schema.check import check_schema from dplib.models import Schema diff --git a/dplib/actions/dialect/__init__.py b/dplib/actions/dialect/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/dialect/__init__.py +++ b/dplib/actions/dialect/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/dialect/check.py b/dplib/actions/dialect/check.py index 27cb154..103253f 100644 --- a/dplib/actions/dialect/check.py +++ b/dplib/actions/dialect/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Union diff --git a/dplib/actions/metadata/__init__.py b/dplib/actions/metadata/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/metadata/__init__.py +++ b/dplib/actions/metadata/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/metadata/check.py b/dplib/actions/metadata/check.py index 2b80161..e0eba45 100644 --- a/dplib/actions/metadata/check.py +++ b/dplib/actions/metadata/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Union diff --git a/dplib/actions/metadata/convert.py b/dplib/actions/metadata/convert.py index f0b8aa2..1e7c60f 100644 --- a/dplib/actions/metadata/convert.py +++ b/dplib/actions/metadata/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from importlib import import_module diff --git a/dplib/actions/package/__init__.py b/dplib/actions/package/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/package/__init__.py +++ b/dplib/actions/package/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/package/check.py b/dplib/actions/package/check.py index 5c552e9..5965b31 100644 --- a/dplib/actions/package/check.py +++ b/dplib/actions/package/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Union diff --git a/dplib/actions/package/convert.py b/dplib/actions/package/convert.py index b5255d6..d396638 100644 --- a/dplib/actions/package/convert.py +++ b/dplib/actions/package/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Optional from ...system import Model diff --git a/dplib/actions/resource/__init__.py b/dplib/actions/resource/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/resource/__init__.py +++ b/dplib/actions/resource/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/resource/check.py b/dplib/actions/resource/check.py index bcbd8fd..b51b43c 100644 --- a/dplib/actions/resource/check.py +++ b/dplib/actions/resource/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Union diff --git a/dplib/actions/resource/convert.py b/dplib/actions/resource/convert.py index 7d1a98f..ed5d877 100644 --- a/dplib/actions/resource/convert.py +++ b/dplib/actions/resource/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Optional from ...system import Model diff --git a/dplib/actions/schema/__init__.py b/dplib/actions/schema/__init__.py index e69de29..6546d41 100644 --- a/dplib/actions/schema/__init__.py +++ b/dplib/actions/schema/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/actions/schema/check.py b/dplib/actions/schema/check.py index b32521a..c217412 100644 --- a/dplib/actions/schema/check.py +++ b/dplib/actions/schema/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Union diff --git a/dplib/conftest.py b/dplib/conftest.py index 3eaca4c..36c263c 100644 --- a/dplib/conftest.py +++ b/dplib/conftest.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + # type: ignore import os diff --git a/dplib/error.py b/dplib/error.py index 9c69c25..28c0992 100644 --- a/dplib/error.py +++ b/dplib/error.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + class Error(Exception): pass diff --git a/dplib/errors/__init__.py b/dplib/errors/__init__.py index e69de29..6546d41 100644 --- a/dplib/errors/__init__.py +++ b/dplib/errors/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/errors/metadata.py b/dplib/errors/metadata.py index e72c0d0..efac5de 100644 --- a/dplib/errors/metadata.py +++ b/dplib/errors/metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import re diff --git a/dplib/helpers/__init__.py b/dplib/helpers/__init__.py index e69de29..6546d41 100644 --- a/dplib/helpers/__init__.py +++ b/dplib/helpers/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/helpers/datetime.py b/dplib/helpers/datetime.py index f31477e..9b38ce4 100644 --- a/dplib/helpers/datetime.py +++ b/dplib/helpers/datetime.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import time from datetime import datetime, timedelta, timezone diff --git a/dplib/helpers/dict.py b/dplib/helpers/dict.py index ed4ddb6..b04d94a 100644 --- a/dplib/helpers/dict.py +++ b/dplib/helpers/dict.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import json diff --git a/dplib/helpers/file.py b/dplib/helpers/file.py index d79ad1e..e379c16 100644 --- a/dplib/helpers/file.py +++ b/dplib/helpers/file.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import os diff --git a/dplib/helpers/path.py b/dplib/helpers/path.py index b75158a..3e1cb08 100644 --- a/dplib/helpers/path.py +++ b/dplib/helpers/path.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import os diff --git a/dplib/helpers/profile.py b/dplib/helpers/profile.py index c619387..4d083f1 100644 --- a/dplib/helpers/profile.py +++ b/dplib/helpers/profile.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import os diff --git a/dplib/helpers/resource.py b/dplib/helpers/resource.py index bb36135..60261a9 100644 --- a/dplib/helpers/resource.py +++ b/dplib/helpers/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from pathlib import Path diff --git a/dplib/models/__init__.py b/dplib/models/__init__.py index b7c183b..1616fd2 100644 --- a/dplib/models/__init__.py +++ b/dplib/models/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .contributor import Contributor as Contributor from .dialect import * from .field import * diff --git a/dplib/models/contributor.py b/dplib/models/contributor.py index c9cb0e9..85f6c97 100644 --- a/dplib/models/contributor.py +++ b/dplib/models/contributor.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import List, Optional import pydantic diff --git a/dplib/models/dialect/__init__.py b/dplib/models/dialect/__init__.py index c198a58..4089cb9 100644 --- a/dplib/models/dialect/__init__.py +++ b/dplib/models/dialect/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .dialect import Dialect diff --git a/dplib/models/dialect/__spec__/__init__.py b/dplib/models/dialect/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/models/dialect/__spec__/__init__.py +++ b/dplib/models/dialect/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/models/dialect/__spec__/test_dialect.py b/dplib/models/dialect/__spec__/test_dialect.py index 5247728..275b39e 100644 --- a/dplib/models/dialect/__spec__/test_dialect.py +++ b/dplib/models/dialect/__spec__/test_dialect.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import pytest from pydantic import ValidationError diff --git a/dplib/models/dialect/dialect.py b/dplib/models/dialect/dialect.py index 4dec7e5..9541c13 100644 --- a/dplib/models/dialect/dialect.py +++ b/dplib/models/dialect/dialect.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/models/dialect/types.py b/dplib/models/dialect/types.py index cfb6acf..6756107 100644 --- a/dplib/models/dialect/types.py +++ b/dplib/models/dialect/types.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Union diff --git a/dplib/models/field/__init__.py b/dplib/models/field/__init__.py index eec43e4..362b3ab 100644 --- a/dplib/models/field/__init__.py +++ b/dplib/models/field/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .constraints import * from .datatypes import * from .field import Field diff --git a/dplib/models/field/__spec__/test_field.py b/dplib/models/field/__spec__/test_field.py index d0447f8..bc849f3 100644 --- a/dplib/models/field/__spec__/test_field.py +++ b/dplib/models/field/__spec__/test_field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import AnyField, IntegerField, StringField diff --git a/dplib/models/field/categories.py b/dplib/models/field/categories.py index 13e6ec1..e3c2f34 100644 --- a/dplib/models/field/categories.py +++ b/dplib/models/field/categories.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import List, Optional, Union from ...system import Model diff --git a/dplib/models/field/constraints/__init__.py b/dplib/models/field/constraints/__init__.py index eb84ae8..8a3ebd3 100644 --- a/dplib/models/field/constraints/__init__.py +++ b/dplib/models/field/constraints/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .base import BaseConstraints from .collection import CollectionConstraints from .json import JsonConstraints diff --git a/dplib/models/field/constraints/base.py b/dplib/models/field/constraints/base.py index a81879a..e9be056 100644 --- a/dplib/models/field/constraints/base.py +++ b/dplib/models/field/constraints/base.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Generic, List, Optional, TypeVar, Union diff --git a/dplib/models/field/constraints/collection.py b/dplib/models/field/constraints/collection.py index aba3281..96f901a 100644 --- a/dplib/models/field/constraints/collection.py +++ b/dplib/models/field/constraints/collection.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/models/field/constraints/json.py b/dplib/models/field/constraints/json.py index d9ca610..6e1675c 100644 --- a/dplib/models/field/constraints/json.py +++ b/dplib/models/field/constraints/json.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, Dict, Optional diff --git a/dplib/models/field/constraints/string.py b/dplib/models/field/constraints/string.py index 193b108..39ca75a 100644 --- a/dplib/models/field/constraints/string.py +++ b/dplib/models/field/constraints/string.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/models/field/constraints/value.py b/dplib/models/field/constraints/value.py index c929655..613610d 100644 --- a/dplib/models/field/constraints/value.py +++ b/dplib/models/field/constraints/value.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Generic, Optional, TypeVar, Union diff --git a/dplib/models/field/datatypes/__init__.py b/dplib/models/field/datatypes/__init__.py index 8ed1d40..3cbe787 100644 --- a/dplib/models/field/datatypes/__init__.py +++ b/dplib/models/field/datatypes/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .any import AnyField from .array import ArrayField from .base import BaseField diff --git a/dplib/models/field/datatypes/any.py b/dplib/models/field/datatypes/any.py index 1e0a571..b26c2ac 100644 --- a/dplib/models/field/datatypes/any.py +++ b/dplib/models/field/datatypes/any.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/array.py b/dplib/models/field/datatypes/array.py index ec30ca8..5ffcb2f 100644 --- a/dplib/models/field/datatypes/array.py +++ b/dplib/models/field/datatypes/array.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/base.py b/dplib/models/field/datatypes/base.py index b3e15c1..7bf7cb7 100644 --- a/dplib/models/field/datatypes/base.py +++ b/dplib/models/field/datatypes/base.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, Optional diff --git a/dplib/models/field/datatypes/boolean.py b/dplib/models/field/datatypes/boolean.py index 580e387..be8915e 100644 --- a/dplib/models/field/datatypes/boolean.py +++ b/dplib/models/field/datatypes/boolean.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Literal, Optional diff --git a/dplib/models/field/datatypes/date.py b/dplib/models/field/datatypes/date.py index 9ecfa59..6e0b515 100644 --- a/dplib/models/field/datatypes/date.py +++ b/dplib/models/field/datatypes/date.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import datetime diff --git a/dplib/models/field/datatypes/datetime.py b/dplib/models/field/datatypes/datetime.py index e27251c..0d7b899 100644 --- a/dplib/models/field/datatypes/datetime.py +++ b/dplib/models/field/datatypes/datetime.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import datetime diff --git a/dplib/models/field/datatypes/duration.py b/dplib/models/field/datatypes/duration.py index 0648079..18545f5 100644 --- a/dplib/models/field/datatypes/duration.py +++ b/dplib/models/field/datatypes/duration.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/geojson.py b/dplib/models/field/datatypes/geojson.py index fcf99f9..a68b2f8 100644 --- a/dplib/models/field/datatypes/geojson.py +++ b/dplib/models/field/datatypes/geojson.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional, Union diff --git a/dplib/models/field/datatypes/geopoint.py b/dplib/models/field/datatypes/geopoint.py index f35369d..e34f22f 100644 --- a/dplib/models/field/datatypes/geopoint.py +++ b/dplib/models/field/datatypes/geopoint.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional, Union diff --git a/dplib/models/field/datatypes/integer.py b/dplib/models/field/datatypes/integer.py index 0288478..34bea84 100644 --- a/dplib/models/field/datatypes/integer.py +++ b/dplib/models/field/datatypes/integer.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/list.py b/dplib/models/field/datatypes/list.py index aef1cc2..d1ec3f3 100644 --- a/dplib/models/field/datatypes/list.py +++ b/dplib/models/field/datatypes/list.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional, Union diff --git a/dplib/models/field/datatypes/number.py b/dplib/models/field/datatypes/number.py index a238a3e..8449941 100644 --- a/dplib/models/field/datatypes/number.py +++ b/dplib/models/field/datatypes/number.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/object.py b/dplib/models/field/datatypes/object.py index 427a342..a6ed0f9 100644 --- a/dplib/models/field/datatypes/object.py +++ b/dplib/models/field/datatypes/object.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/string.py b/dplib/models/field/datatypes/string.py index 9922ed6..d1ef114 100644 --- a/dplib/models/field/datatypes/string.py +++ b/dplib/models/field/datatypes/string.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional, Union diff --git a/dplib/models/field/datatypes/time.py b/dplib/models/field/datatypes/time.py index 1f24ad3..e088d3e 100644 --- a/dplib/models/field/datatypes/time.py +++ b/dplib/models/field/datatypes/time.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import datetime diff --git a/dplib/models/field/datatypes/year.py b/dplib/models/field/datatypes/year.py index 135352d..1eb6677 100644 --- a/dplib/models/field/datatypes/year.py +++ b/dplib/models/field/datatypes/year.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/datatypes/yearmonth.py b/dplib/models/field/datatypes/yearmonth.py index be205bf..50abe0e 100644 --- a/dplib/models/field/datatypes/yearmonth.py +++ b/dplib/models/field/datatypes/yearmonth.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/field.py b/dplib/models/field/field.py index 3b0f821..12374c1 100644 --- a/dplib/models/field/field.py +++ b/dplib/models/field/field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/models/field/types.py b/dplib/models/field/types.py index 523f38f..75bcc0a 100644 --- a/dplib/models/field/types.py +++ b/dplib/models/field/types.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Union diff --git a/dplib/models/license.py b/dplib/models/license.py index b9fb499..68f797a 100644 --- a/dplib/models/license.py +++ b/dplib/models/license.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Optional from ..system import Model diff --git a/dplib/models/missingValues.py b/dplib/models/missingValues.py index 12c7528..f27b712 100644 --- a/dplib/models/missingValues.py +++ b/dplib/models/missingValues.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import List, Optional, Union from ..system import Model diff --git a/dplib/models/package/__init__.py b/dplib/models/package/__init__.py index c756f16..8005060 100644 --- a/dplib/models/package/__init__.py +++ b/dplib/models/package/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .package import Package diff --git a/dplib/models/package/__spec__/__init__.py b/dplib/models/package/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/models/package/__spec__/__init__.py +++ b/dplib/models/package/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/models/package/__spec__/test_package.py b/dplib/models/package/__spec__/test_package.py index b844b47..ceedb04 100644 --- a/dplib/models/package/__spec__/test_package.py +++ b/dplib/models/package/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import pytest from pydantic import ValidationError diff --git a/dplib/models/package/package.py b/dplib/models/package/package.py index 31a70aa..2597816 100644 --- a/dplib/models/package/package.py +++ b/dplib/models/package/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/models/resource/__init__.py b/dplib/models/resource/__init__.py index c37a2ae..22af428 100644 --- a/dplib/models/resource/__init__.py +++ b/dplib/models/resource/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .resource import Resource diff --git a/dplib/models/resource/__spec__/__init__.py b/dplib/models/resource/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/models/resource/__spec__/__init__.py +++ b/dplib/models/resource/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/models/resource/__spec__/test_resource.py b/dplib/models/resource/__spec__/test_resource.py index 5e2d9da..575c9c6 100644 --- a/dplib/models/resource/__spec__/test_resource.py +++ b/dplib/models/resource/__spec__/test_resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from pathlib import Path import pytest diff --git a/dplib/models/resource/datatypes/__init__.py b/dplib/models/resource/datatypes/__init__.py index e69de29..6546d41 100644 --- a/dplib/models/resource/datatypes/__init__.py +++ b/dplib/models/resource/datatypes/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/models/resource/datatypes/table.py b/dplib/models/resource/datatypes/table.py index 6d8e5ea..0a318f9 100644 --- a/dplib/models/resource/datatypes/table.py +++ b/dplib/models/resource/datatypes/table.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + # TODO: implement (see `field`) diff --git a/dplib/models/resource/hash.py b/dplib/models/resource/hash.py index 6cc8ad1..2e85c25 100644 --- a/dplib/models/resource/hash.py +++ b/dplib/models/resource/hash.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from pydantic import BaseModel diff --git a/dplib/models/resource/resource.py b/dplib/models/resource/resource.py index e7ee96a..b944941 100644 --- a/dplib/models/resource/resource.py +++ b/dplib/models/resource/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, List, Optional, Union diff --git a/dplib/models/schema/__init__.py b/dplib/models/schema/__init__.py index cb3070b..777701c 100644 --- a/dplib/models/schema/__init__.py +++ b/dplib/models/schema/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .foreignKey import ForeignKey, ForeignKeyReference from .schema import Schema from .types import IFieldsMatch diff --git a/dplib/models/schema/__spec__/__init__.py b/dplib/models/schema/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/models/schema/__spec__/__init__.py +++ b/dplib/models/schema/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/models/schema/__spec__/test_schema.py b/dplib/models/schema/__spec__/test_schema.py index 3189baa..a58074e 100644 --- a/dplib/models/schema/__spec__/test_schema.py +++ b/dplib/models/schema/__spec__/test_schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import pytest from pydantic import ValidationError diff --git a/dplib/models/schema/foreignKey.py b/dplib/models/schema/foreignKey.py index fc0f253..3d29811 100644 --- a/dplib/models/schema/foreignKey.py +++ b/dplib/models/schema/foreignKey.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/models/schema/schema.py b/dplib/models/schema/schema.py index 8544f6b..4ab933a 100644 --- a/dplib/models/schema/schema.py +++ b/dplib/models/schema/schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/models/schema/types.py b/dplib/models/schema/types.py index b28da11..333296b 100644 --- a/dplib/models/schema/types.py +++ b/dplib/models/schema/types.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Union diff --git a/dplib/models/source.py b/dplib/models/source.py index 0d0611d..aa64135 100644 --- a/dplib/models/source.py +++ b/dplib/models/source.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Optional from ..system import Model diff --git a/dplib/plugins/__init__.py b/dplib/plugins/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/__init__.py +++ b/dplib/plugins/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/ckan/__init__.py b/dplib/plugins/ckan/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/ckan/__init__.py +++ b/dplib/plugins/ckan/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/ckan/models/__init__.py b/dplib/plugins/ckan/models/__init__.py index c046d68..d36c03e 100644 --- a/dplib/plugins/ckan/models/__init__.py +++ b/dplib/plugins/ckan/models/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .field import CkanField as CkanField from .package import CkanPackage as CkanPackage from .resource import CkanResource as CkanResource diff --git a/dplib/plugins/ckan/models/__spec__/__init__.py b/dplib/plugins/ckan/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/ckan/models/__spec__/__init__.py +++ b/dplib/plugins/ckan/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/ckan/models/__spec__/test_package.py b/dplib/plugins/ckan/models/__spec__/test_package.py index d372d07..8cf76ab 100644 --- a/dplib/plugins/ckan/models/__spec__/test_package.py +++ b/dplib/plugins/ckan/models/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import Package, Resource from dplib.plugins.ckan.models import CkanPackage diff --git a/dplib/plugins/ckan/models/field.py b/dplib/plugins/ckan/models/field.py index f8871c8..14149b0 100644 --- a/dplib/plugins/ckan/models/field.py +++ b/dplib/plugins/ckan/models/field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/ckan/models/organization.py b/dplib/plugins/ckan/models/organization.py index 1032d99..d0a46d2 100644 --- a/dplib/plugins/ckan/models/organization.py +++ b/dplib/plugins/ckan/models/organization.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.system import Model diff --git a/dplib/plugins/ckan/models/package.py b/dplib/plugins/ckan/models/package.py index 675b10c..02850ce 100644 --- a/dplib/plugins/ckan/models/package.py +++ b/dplib/plugins/ckan/models/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/ckan/models/resource.py b/dplib/plugins/ckan/models/resource.py index 8b7a9f2..225c752 100644 --- a/dplib/plugins/ckan/models/resource.py +++ b/dplib/plugins/ckan/models/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import os diff --git a/dplib/plugins/ckan/models/schema.py b/dplib/plugins/ckan/models/schema.py index 829c42a..7fb7226 100644 --- a/dplib/plugins/ckan/models/schema.py +++ b/dplib/plugins/ckan/models/schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List diff --git a/dplib/plugins/ckan/models/tag.py b/dplib/plugins/ckan/models/tag.py index 24eb23f..0cd61b1 100644 --- a/dplib/plugins/ckan/models/tag.py +++ b/dplib/plugins/ckan/models/tag.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/cli/__init__.py b/dplib/plugins/cli/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/cli/__init__.py +++ b/dplib/plugins/cli/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/cli/__main__.py b/dplib/plugins/cli/__main__.py index 0b9cc72..d7c1d01 100644 --- a/dplib/plugins/cli/__main__.py +++ b/dplib/plugins/cli/__main__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .commands.main import program if __name__ == "__main__": diff --git a/dplib/plugins/cli/commands/__init__.py b/dplib/plugins/cli/commands/__init__.py index cad6aac..cbc1b36 100644 --- a/dplib/plugins/cli/commands/__init__.py +++ b/dplib/plugins/cli/commands/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from . import version from .main import program diff --git a/dplib/plugins/cli/commands/__spec__/__init__.py b/dplib/plugins/cli/commands/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/cli/commands/__spec__/__init__.py +++ b/dplib/plugins/cli/commands/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/cli/commands/__spec__/test_version.py b/dplib/plugins/cli/commands/__spec__/test_version.py index 1853f61..db78421 100644 --- a/dplib/plugins/cli/commands/__spec__/test_version.py +++ b/dplib/plugins/cli/commands/__spec__/test_version.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typer.testing import CliRunner from dplib import __version__ diff --git a/dplib/plugins/cli/commands/dialect/__init__.py b/dplib/plugins/cli/commands/dialect/__init__.py index 120534c..51a106e 100644 --- a/dplib/plugins/cli/commands/dialect/__init__.py +++ b/dplib/plugins/cli/commands/dialect/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from . import check from .main import program diff --git a/dplib/plugins/cli/commands/dialect/check.py b/dplib/plugins/cli/commands/dialect/check.py index 29c5fef..018197a 100644 --- a/dplib/plugins/cli/commands/dialect/check.py +++ b/dplib/plugins/cli/commands/dialect/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.actions.dialect.check import check_dialect diff --git a/dplib/plugins/cli/commands/dialect/main.py b/dplib/plugins/cli/commands/dialect/main.py index e3beba3..1bbf0af 100644 --- a/dplib/plugins/cli/commands/dialect/main.py +++ b/dplib/plugins/cli/commands/dialect/main.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from ...program import Program diff --git a/dplib/plugins/cli/commands/main.py b/dplib/plugins/cli/commands/main.py index 841035f..7f541c8 100644 --- a/dplib/plugins/cli/commands/main.py +++ b/dplib/plugins/cli/commands/main.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from ..options.system import Debug diff --git a/dplib/plugins/cli/commands/package/__init__.py b/dplib/plugins/cli/commands/package/__init__.py index 8c5221f..597102c 100644 --- a/dplib/plugins/cli/commands/package/__init__.py +++ b/dplib/plugins/cli/commands/package/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from . import check, convert from .main import program diff --git a/dplib/plugins/cli/commands/package/check.py b/dplib/plugins/cli/commands/package/check.py index 8972a24..3c0645c 100644 --- a/dplib/plugins/cli/commands/package/check.py +++ b/dplib/plugins/cli/commands/package/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.actions.package.check import check_package diff --git a/dplib/plugins/cli/commands/package/convert.py b/dplib/plugins/cli/commands/package/convert.py index c22a7f2..221482d 100644 --- a/dplib/plugins/cli/commands/package/convert.py +++ b/dplib/plugins/cli/commands/package/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/cli/commands/package/main.py b/dplib/plugins/cli/commands/package/main.py index 64d0c54..1d62bcb 100644 --- a/dplib/plugins/cli/commands/package/main.py +++ b/dplib/plugins/cli/commands/package/main.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from ...program import Program diff --git a/dplib/plugins/cli/commands/resource/__init__.py b/dplib/plugins/cli/commands/resource/__init__.py index 8c5221f..597102c 100644 --- a/dplib/plugins/cli/commands/resource/__init__.py +++ b/dplib/plugins/cli/commands/resource/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from . import check, convert from .main import program diff --git a/dplib/plugins/cli/commands/resource/check.py b/dplib/plugins/cli/commands/resource/check.py index 89bf3a3..8706892 100644 --- a/dplib/plugins/cli/commands/resource/check.py +++ b/dplib/plugins/cli/commands/resource/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.actions.resource.check import check_resource diff --git a/dplib/plugins/cli/commands/resource/convert.py b/dplib/plugins/cli/commands/resource/convert.py index faabc50..406b853 100644 --- a/dplib/plugins/cli/commands/resource/convert.py +++ b/dplib/plugins/cli/commands/resource/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/cli/commands/resource/main.py b/dplib/plugins/cli/commands/resource/main.py index dfc2718..5ea14cb 100644 --- a/dplib/plugins/cli/commands/resource/main.py +++ b/dplib/plugins/cli/commands/resource/main.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from ...program import Program diff --git a/dplib/plugins/cli/commands/schema/__init__.py b/dplib/plugins/cli/commands/schema/__init__.py index 120534c..51a106e 100644 --- a/dplib/plugins/cli/commands/schema/__init__.py +++ b/dplib/plugins/cli/commands/schema/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from . import check from .main import program diff --git a/dplib/plugins/cli/commands/schema/check.py b/dplib/plugins/cli/commands/schema/check.py index 42680e1..46d5ea9 100644 --- a/dplib/plugins/cli/commands/schema/check.py +++ b/dplib/plugins/cli/commands/schema/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.actions.schema.check import check_schema diff --git a/dplib/plugins/cli/commands/schema/main.py b/dplib/plugins/cli/commands/schema/main.py index a4acde8..589b308 100644 --- a/dplib/plugins/cli/commands/schema/main.py +++ b/dplib/plugins/cli/commands/schema/main.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from ...program import Program diff --git a/dplib/plugins/cli/commands/version.py b/dplib/plugins/cli/commands/version.py index d1a20a9..ab57608 100644 --- a/dplib/plugins/cli/commands/version.py +++ b/dplib/plugins/cli/commands/version.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib import settings diff --git a/dplib/plugins/cli/helpers/__init__.py b/dplib/plugins/cli/helpers/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/cli/helpers/__init__.py +++ b/dplib/plugins/cli/helpers/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/cli/helpers/check.py b/dplib/plugins/cli/helpers/check.py index 160496a..9d70017 100644 --- a/dplib/plugins/cli/helpers/check.py +++ b/dplib/plugins/cli/helpers/check.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import List from rich.console import Console diff --git a/dplib/plugins/cli/options/__init__.py b/dplib/plugins/cli/options/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/cli/options/__init__.py +++ b/dplib/plugins/cli/options/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/cli/options/convert.py b/dplib/plugins/cli/options/convert.py index 7848d4e..29a9152 100644 --- a/dplib/plugins/cli/options/convert.py +++ b/dplib/plugins/cli/options/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typer import Option diff --git a/dplib/plugins/cli/options/path.py b/dplib/plugins/cli/options/path.py index 049b229..06b1e27 100644 --- a/dplib/plugins/cli/options/path.py +++ b/dplib/plugins/cli/options/path.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typer import Argument, Option diff --git a/dplib/plugins/cli/options/system.py b/dplib/plugins/cli/options/system.py index 1f0ef64..a1b5c0e 100644 --- a/dplib/plugins/cli/options/system.py +++ b/dplib/plugins/cli/options/system.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typer import Option diff --git a/dplib/plugins/cli/program.py b/dplib/plugins/cli/program.py index a3fce45..2c99a93 100644 --- a/dplib/plugins/cli/program.py +++ b/dplib/plugins/cli/program.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import sys diff --git a/dplib/plugins/datacite/__init__.py b/dplib/plugins/datacite/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/datacite/__init__.py +++ b/dplib/plugins/datacite/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/datacite/models/__init__.py b/dplib/plugins/datacite/models/__init__.py index ddecd57..ef4210a 100644 --- a/dplib/plugins/datacite/models/__init__.py +++ b/dplib/plugins/datacite/models/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .package import DatacitePackage as DatacitePackage diff --git a/dplib/plugins/datacite/models/__spec__/__init__.py b/dplib/plugins/datacite/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/datacite/models/__spec__/__init__.py +++ b/dplib/plugins/datacite/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/datacite/models/__spec__/test_package.py b/dplib/plugins/datacite/models/__spec__/test_package.py index 64423ce..c928b0d 100644 --- a/dplib/plugins/datacite/models/__spec__/test_package.py +++ b/dplib/plugins/datacite/models/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import Package from dplib.plugins.datacite.models import DatacitePackage diff --git a/dplib/plugins/datacite/models/contributor.py b/dplib/plugins/datacite/models/contributor.py index 9c4bb55..d74ff91 100644 --- a/dplib/plugins/datacite/models/contributor.py +++ b/dplib/plugins/datacite/models/contributor.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/datacite/models/description.py b/dplib/plugins/datacite/models/description.py index 961eb20..c0d2ca1 100644 --- a/dplib/plugins/datacite/models/description.py +++ b/dplib/plugins/datacite/models/description.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/datacite/models/identifier.py b/dplib/plugins/datacite/models/identifier.py index 913e29e..4fe61eb 100644 --- a/dplib/plugins/datacite/models/identifier.py +++ b/dplib/plugins/datacite/models/identifier.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.system import Model diff --git a/dplib/plugins/datacite/models/package.py b/dplib/plugins/datacite/models/package.py index b05bb26..4952768 100644 --- a/dplib/plugins/datacite/models/package.py +++ b/dplib/plugins/datacite/models/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/datacite/models/rights.py b/dplib/plugins/datacite/models/rights.py index 0ca8f19..bf78c30 100644 --- a/dplib/plugins/datacite/models/rights.py +++ b/dplib/plugins/datacite/models/rights.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/datacite/models/subject.py b/dplib/plugins/datacite/models/subject.py index 6107e89..b38d205 100644 --- a/dplib/plugins/datacite/models/subject.py +++ b/dplib/plugins/datacite/models/subject.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/datacite/models/title.py b/dplib/plugins/datacite/models/title.py index 194fd47..e203d93 100644 --- a/dplib/plugins/datacite/models/title.py +++ b/dplib/plugins/datacite/models/title.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/dcat/__init__.py b/dplib/plugins/dcat/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/dcat/__init__.py +++ b/dplib/plugins/dcat/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/dcat/models/__init__.py b/dplib/plugins/dcat/models/__init__.py index b464300..d2639c1 100644 --- a/dplib/plugins/dcat/models/__init__.py +++ b/dplib/plugins/dcat/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .package import DcatPackage as DcatPackage from .resource import DcatResource as DcatResource diff --git a/dplib/plugins/dcat/models/__spec__/__init__.py b/dplib/plugins/dcat/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/dcat/models/__spec__/__init__.py +++ b/dplib/plugins/dcat/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/dcat/models/__spec__/test_package.py b/dplib/plugins/dcat/models/__spec__/test_package.py index 8be7ac6..9038218 100644 --- a/dplib/plugins/dcat/models/__spec__/test_package.py +++ b/dplib/plugins/dcat/models/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import Package from dplib.plugins.dcat.models import DcatPackage diff --git a/dplib/plugins/dcat/models/dumpers.py b/dplib/plugins/dcat/models/dumpers.py index b3b158e..a6c9525 100644 --- a/dplib/plugins/dcat/models/dumpers.py +++ b/dplib/plugins/dcat/models/dumpers.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Any from rdflib import Graph, URIRef diff --git a/dplib/plugins/dcat/models/helpers.py b/dplib/plugins/dcat/models/helpers.py index 521e51e..5faf055 100644 --- a/dplib/plugins/dcat/models/helpers.py +++ b/dplib/plugins/dcat/models/helpers.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Any, Union from urllib.parse import quote diff --git a/dplib/plugins/dcat/models/loaders.py b/dplib/plugins/dcat/models/loaders.py index 261d508..2bd0e63 100644 --- a/dplib/plugins/dcat/models/loaders.py +++ b/dplib/plugins/dcat/models/loaders.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import List, Optional from rdflib import Graph, Literal, URIRef diff --git a/dplib/plugins/dcat/models/namespaces.py b/dplib/plugins/dcat/models/namespaces.py index 08e4604..a642343 100644 --- a/dplib/plugins/dcat/models/namespaces.py +++ b/dplib/plugins/dcat/models/namespaces.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from rdflib import Namespace from rdflib.namespace import FOAF, RDF diff --git a/dplib/plugins/dcat/models/package.py b/dplib/plugins/dcat/models/package.py index 9058989..c6ef618 100644 --- a/dplib/plugins/dcat/models/package.py +++ b/dplib/plugins/dcat/models/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, List, Optional diff --git a/dplib/plugins/dcat/models/resource.py b/dplib/plugins/dcat/models/resource.py index c5c13ce..348da36 100644 --- a/dplib/plugins/dcat/models/resource.py +++ b/dplib/plugins/dcat/models/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/dcat/models/types.py b/dplib/plugins/dcat/models/types.py index df27f04..12e55e4 100644 --- a/dplib/plugins/dcat/models/types.py +++ b/dplib/plugins/dcat/models/types.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Union from rdflib import BNode, Literal, URIRef diff --git a/dplib/plugins/github/__init__.py b/dplib/plugins/github/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/github/__init__.py +++ b/dplib/plugins/github/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/github/models/__init__.py b/dplib/plugins/github/models/__init__.py index 6c2af4b..e94dada 100644 --- a/dplib/plugins/github/models/__init__.py +++ b/dplib/plugins/github/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .package import GithubPackage as GithubPackage from .resource import GithubResource as GithubResource diff --git a/dplib/plugins/github/models/__spec__/__init__.py b/dplib/plugins/github/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/github/models/__spec__/__init__.py +++ b/dplib/plugins/github/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/github/models/__spec__/test_package.py b/dplib/plugins/github/models/__spec__/test_package.py index c648889..2bdd3cf 100644 --- a/dplib/plugins/github/models/__spec__/test_package.py +++ b/dplib/plugins/github/models/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import Package from dplib.plugins.github.models import GithubPackage, GithubResource diff --git a/dplib/plugins/github/models/license.py b/dplib/plugins/github/models/license.py index 6721fc1..0e269f4 100644 --- a/dplib/plugins/github/models/license.py +++ b/dplib/plugins/github/models/license.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/github/models/owner.py b/dplib/plugins/github/models/owner.py index db8541e..09e0e01 100644 --- a/dplib/plugins/github/models/owner.py +++ b/dplib/plugins/github/models/owner.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.system import Model diff --git a/dplib/plugins/github/models/package.py b/dplib/plugins/github/models/package.py index 6105031..1f0ac6d 100644 --- a/dplib/plugins/github/models/package.py +++ b/dplib/plugins/github/models/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/github/models/resource.py b/dplib/plugins/github/models/resource.py index 8764470..48baca2 100644 --- a/dplib/plugins/github/models/resource.py +++ b/dplib/plugins/github/models/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Literal, Optional diff --git a/dplib/plugins/pandas/__init__.py b/dplib/plugins/pandas/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/pandas/__init__.py +++ b/dplib/plugins/pandas/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/pandas/models/__init__.py b/dplib/plugins/pandas/models/__init__.py index d6129c7..ed2e13f 100644 --- a/dplib/plugins/pandas/models/__init__.py +++ b/dplib/plugins/pandas/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .field import PandasField as PandasField from .schema import PandasSchema as PandasSchema diff --git a/dplib/plugins/pandas/models/__spec__/__init__.py b/dplib/plugins/pandas/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/pandas/models/__spec__/__init__.py +++ b/dplib/plugins/pandas/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/pandas/models/field.py b/dplib/plugins/pandas/models/field.py index e87315c..06a9059 100644 --- a/dplib/plugins/pandas/models/field.py +++ b/dplib/plugins/pandas/models/field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import datetime diff --git a/dplib/plugins/pandas/models/schema.py b/dplib/plugins/pandas/models/schema.py index 378566a..b896def 100644 --- a/dplib/plugins/pandas/models/schema.py +++ b/dplib/plugins/pandas/models/schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, Dict, List diff --git a/dplib/plugins/polars/__init__.py b/dplib/plugins/polars/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/polars/__init__.py +++ b/dplib/plugins/polars/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/polars/models/__init__.py b/dplib/plugins/polars/models/__init__.py index fae2a38..0ff31e5 100644 --- a/dplib/plugins/polars/models/__init__.py +++ b/dplib/plugins/polars/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .field import PolarsField as PolarsField from .schema import PolarsSchema as PolarsSchema diff --git a/dplib/plugins/polars/models/__spec__/__init__.py b/dplib/plugins/polars/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/polars/models/__spec__/__init__.py +++ b/dplib/plugins/polars/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/polars/models/__spec__/test_schema.py b/dplib/plugins/polars/models/__spec__/test_schema.py index c855ba5..388184b 100644 --- a/dplib/plugins/polars/models/__spec__/test_schema.py +++ b/dplib/plugins/polars/models/__spec__/test_schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import polars as pl from dplib.models import Schema diff --git a/dplib/plugins/polars/models/field.py b/dplib/plugins/polars/models/field.py index 9b719ee..e21c989 100644 --- a/dplib/plugins/polars/models/field.py +++ b/dplib/plugins/polars/models/field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any diff --git a/dplib/plugins/polars/models/schema.py b/dplib/plugins/polars/models/schema.py index de0b499..93c4ba2 100644 --- a/dplib/plugins/polars/models/schema.py +++ b/dplib/plugins/polars/models/schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Dict, List diff --git a/dplib/plugins/sql/__init__.py b/dplib/plugins/sql/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/sql/__init__.py +++ b/dplib/plugins/sql/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/sql/models/__init__.py b/dplib/plugins/sql/models/__init__.py index d589e3c..cf3a027 100644 --- a/dplib/plugins/sql/models/__init__.py +++ b/dplib/plugins/sql/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .field import SqlField as SqlField from .schema import SqlSchema as SqlSchema diff --git a/dplib/plugins/sql/models/__spec__/__init__.py b/dplib/plugins/sql/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/sql/models/__spec__/__init__.py +++ b/dplib/plugins/sql/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/sql/models/__spec__/test_schema.py b/dplib/plugins/sql/models/__spec__/test_schema.py index 709cd42..cd13ed6 100644 --- a/dplib/plugins/sql/models/__spec__/test_schema.py +++ b/dplib/plugins/sql/models/__spec__/test_schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg diff --git a/dplib/plugins/sql/models/field.py b/dplib/plugins/sql/models/field.py index 3ad2438..54ec1d4 100644 --- a/dplib/plugins/sql/models/field.py +++ b/dplib/plugins/sql/models/field.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import random diff --git a/dplib/plugins/sql/models/schema.py b/dplib/plugins/sql/models/schema.py index e566b08..cefdabf 100644 --- a/dplib/plugins/sql/models/schema.py +++ b/dplib/plugins/sql/models/schema.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Any, Callable, List diff --git a/dplib/plugins/sql/models/settings.py b/dplib/plugins/sql/models/settings.py index 6a5663f..464782a 100644 --- a/dplib/plugins/sql/models/settings.py +++ b/dplib/plugins/sql/models/settings.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations # General diff --git a/dplib/plugins/zenodo/__init__.py b/dplib/plugins/zenodo/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/zenodo/__init__.py +++ b/dplib/plugins/zenodo/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/zenodo/models/__init__.py b/dplib/plugins/zenodo/models/__init__.py index ef874ee..82ed857 100644 --- a/dplib/plugins/zenodo/models/__init__.py +++ b/dplib/plugins/zenodo/models/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .package import ZenodoPackage as ZenodoPackage from .resource import ZenodoResource as ZenodoResource diff --git a/dplib/plugins/zenodo/models/__spec__/__init__.py b/dplib/plugins/zenodo/models/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/plugins/zenodo/models/__spec__/__init__.py +++ b/dplib/plugins/zenodo/models/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/plugins/zenodo/models/__spec__/test_package.py b/dplib/plugins/zenodo/models/__spec__/test_package.py index 41872a2..07f2543 100644 --- a/dplib/plugins/zenodo/models/__spec__/test_package.py +++ b/dplib/plugins/zenodo/models/__spec__/test_package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from dplib.models import Package, Resource from dplib.plugins.zenodo.models import ZenodoPackage diff --git a/dplib/plugins/zenodo/models/contributor.py b/dplib/plugins/zenodo/models/contributor.py index fce1bad..27a7c23 100644 --- a/dplib/plugins/zenodo/models/contributor.py +++ b/dplib/plugins/zenodo/models/contributor.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/zenodo/models/files.py b/dplib/plugins/zenodo/models/files.py index 6bf0688..2a3e921 100644 --- a/dplib/plugins/zenodo/models/files.py +++ b/dplib/plugins/zenodo/models/files.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Dict, Optional diff --git a/dplib/plugins/zenodo/models/metadata.py b/dplib/plugins/zenodo/models/metadata.py index 69438dd..95f66db 100644 --- a/dplib/plugins/zenodo/models/metadata.py +++ b/dplib/plugins/zenodo/models/metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import List, Optional diff --git a/dplib/plugins/zenodo/models/package.py b/dplib/plugins/zenodo/models/package.py index 2d37682..6bd987c 100644 --- a/dplib/plugins/zenodo/models/package.py +++ b/dplib/plugins/zenodo/models/package.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Dict, Optional diff --git a/dplib/plugins/zenodo/models/pid.py b/dplib/plugins/zenodo/models/pid.py index 2e1b485..8125e6b 100644 --- a/dplib/plugins/zenodo/models/pid.py +++ b/dplib/plugins/zenodo/models/pid.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/zenodo/models/resource.py b/dplib/plugins/zenodo/models/resource.py index 30c5aae..7eda557 100644 --- a/dplib/plugins/zenodo/models/resource.py +++ b/dplib/plugins/zenodo/models/resource.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import os diff --git a/dplib/plugins/zenodo/models/right.py b/dplib/plugins/zenodo/models/right.py index 13a97e6..0bd9e9f 100644 --- a/dplib/plugins/zenodo/models/right.py +++ b/dplib/plugins/zenodo/models/right.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from typing import Optional diff --git a/dplib/plugins/zenodo/models/subject.py b/dplib/plugins/zenodo/models/subject.py index 6eb853c..f090f89 100644 --- a/dplib/plugins/zenodo/models/subject.py +++ b/dplib/plugins/zenodo/models/subject.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations from dplib.system import Model diff --git a/dplib/profiles/1.0/datapackage.json.license b/dplib/profiles/1.0/datapackage.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/1.0/datapackage.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/1.0/dataresource.json.license b/dplib/profiles/1.0/dataresource.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/1.0/dataresource.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/1.0/tabledialect.json.license b/dplib/profiles/1.0/tabledialect.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/1.0/tabledialect.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/1.0/tableschema.json.license b/dplib/profiles/1.0/tableschema.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/1.0/tableschema.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/2.0/datapackage.json.license b/dplib/profiles/2.0/datapackage.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/2.0/datapackage.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/2.0/dataresource.json.license b/dplib/profiles/2.0/dataresource.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/2.0/dataresource.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/2.0/tabledialect.json.license b/dplib/profiles/2.0/tabledialect.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/2.0/tabledialect.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/profiles/2.0/tableschema.json.license b/dplib/profiles/2.0/tableschema.json.license new file mode 100644 index 0000000..6cf9f88 --- /dev/null +++ b/dplib/profiles/2.0/tableschema.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Open Knowledge Foundation + +SPDX-License-Identifier: MIT diff --git a/dplib/settings.py b/dplib/settings.py index b277c43..30b3ed6 100644 --- a/dplib/settings.py +++ b/dplib/settings.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import os # Version diff --git a/dplib/system/__init__.py b/dplib/system/__init__.py index a0f5a51..df2db2a 100644 --- a/dplib/system/__init__.py +++ b/dplib/system/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from .model import Model as Model diff --git a/dplib/system/__spec__/__init__.py b/dplib/system/__spec__/__init__.py index e69de29..6546d41 100644 --- a/dplib/system/__spec__/__init__.py +++ b/dplib/system/__spec__/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT diff --git a/dplib/system/__spec__/test_model.py b/dplib/system/__spec__/test_model.py index 78343a8..386c0d0 100644 --- a/dplib/system/__spec__/test_model.py +++ b/dplib/system/__spec__/test_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + import json from pathlib import Path diff --git a/dplib/system/model.py b/dplib/system/model.py index 2c89ed8..18ab1df 100644 --- a/dplib/system/model.py +++ b/dplib/system/model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from __future__ import annotations import pprint diff --git a/dplib/types.py b/dplib/types.py index 19b83fe..370f35f 100644 --- a/dplib/types.py +++ b/dplib/types.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Open Knowledge Foundation +# +# SPDX-License-Identifier: MIT + from typing import Any, Dict, Literal, Union IDict = Dict[str, Any] diff --git a/pyproject.toml b/pyproject.toml index 8c66acf..965ea93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ polars = ["polars-lts-cpu>=0.10"] sql = ["sqlalchemy>=1.4"] dev = [ "ruff", + "reuse", "hatch", "neovim", "pyright", @@ -96,6 +97,8 @@ format = [ "ruff format dplib", ] lint = [ + # https://reuse.readthedocs.io/en/stable/readme.html + "reuse --root dplib lint -q", "ruff check dplib", ] release = [