From c063021d5fd667535e79966dbceafdea67a1f556 Mon Sep 17 00:00:00 2001 From: taoying <2474671424@qq.com> Date: Sat, 15 Feb 2025 14:24:41 +0800 Subject: [PATCH] add copyright for pgvector --- opengauss_sqlalchemy/usertype/__init__.py | 9 +++++++++ opengauss_sqlalchemy/usertype/bit.py | 9 +++++++++ opengauss_sqlalchemy/usertype/sparsevec.py | 9 +++++++++ opengauss_sqlalchemy/usertype/vector.py | 9 +++++++++ opengauss_sqlalchemy/utils/__init__.py | 9 +++++++++ opengauss_sqlalchemy/utils/bit.py | 9 +++++++++ opengauss_sqlalchemy/utils/sparsevec.py | 9 +++++++++ opengauss_sqlalchemy/utils/vector.py | 9 +++++++++ test/test_utils.py | 9 +++++++++ 9 files changed, 81 insertions(+) diff --git a/opengauss_sqlalchemy/usertype/__init__.py b/opengauss_sqlalchemy/usertype/__init__.py index feaa60b..b5d3a91 100644 --- a/opengauss_sqlalchemy/usertype/__init__.py +++ b/opengauss_sqlalchemy/usertype/__init__.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + from .bit import BIT from .sparsevec import SPARSEVEC from .vector import VECTOR diff --git a/opengauss_sqlalchemy/usertype/bit.py b/opengauss_sqlalchemy/usertype/bit.py index 0f83f3c..bcfc11b 100644 --- a/opengauss_sqlalchemy/usertype/bit.py +++ b/opengauss_sqlalchemy/usertype/bit.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + from sqlalchemy.dialects.postgresql.base import ischema_names from sqlalchemy.types import UserDefinedType, Float diff --git a/opengauss_sqlalchemy/usertype/sparsevec.py b/opengauss_sqlalchemy/usertype/sparsevec.py index 370f5d1..defc719 100644 --- a/opengauss_sqlalchemy/usertype/sparsevec.py +++ b/opengauss_sqlalchemy/usertype/sparsevec.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + from sqlalchemy.dialects.postgresql.base import ischema_names from sqlalchemy.types import UserDefinedType, Float, String from ..utils import SparseVector diff --git a/opengauss_sqlalchemy/usertype/vector.py b/opengauss_sqlalchemy/usertype/vector.py index f57a045..683f055 100644 --- a/opengauss_sqlalchemy/usertype/vector.py +++ b/opengauss_sqlalchemy/usertype/vector.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + from sqlalchemy.dialects.postgresql.base import ischema_names from sqlalchemy.types import UserDefinedType, Float, String from ..utils import Vector diff --git a/opengauss_sqlalchemy/utils/__init__.py b/opengauss_sqlalchemy/utils/__init__.py index 4ba1ea1..2516c81 100644 --- a/opengauss_sqlalchemy/utils/__init__.py +++ b/opengauss_sqlalchemy/utils/__init__.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + from .bit import Bit from .sparsevec import SparseVector from .vector import Vector diff --git a/opengauss_sqlalchemy/utils/bit.py b/opengauss_sqlalchemy/utils/bit.py index 652c92f..a63ba5c 100644 --- a/opengauss_sqlalchemy/utils/bit.py +++ b/opengauss_sqlalchemy/utils/bit.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + import numpy as np from struct import pack, unpack_from diff --git a/opengauss_sqlalchemy/utils/sparsevec.py b/opengauss_sqlalchemy/utils/sparsevec.py index 8df2dfd..7a3feec 100644 --- a/opengauss_sqlalchemy/utils/sparsevec.py +++ b/opengauss_sqlalchemy/utils/sparsevec.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + import numpy as np from struct import pack, unpack_from diff --git a/opengauss_sqlalchemy/utils/vector.py b/opengauss_sqlalchemy/utils/vector.py index ebbcafd..0772403 100644 --- a/opengauss_sqlalchemy/utils/vector.py +++ b/opengauss_sqlalchemy/utils/vector.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + import numpy as np from struct import pack, unpack_from diff --git a/test/test_utils.py b/test/test_utils.py index 5a031f7..8071c55 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,3 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021-2025 Andrew Kane +# +# +# Copyright (C) 2021-2022 Huawei Technologies Co.,Ltd. +# +# This module is part of pgvector-python and is released under +# the MIT License: https://www.opensource.org/licenses/mit-license.php + import numpy as np from struct import pack from scipy.sparse import coo_array -- Gitee