diff --git a/pydgraph/__init__.py b/pydgraph/__init__.py index 07051a9..8be0b82 100755 --- a/pydgraph/__init__.py +++ b/pydgraph/__init__.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 from pydgraph.client import * from pydgraph.client_stub import * diff --git a/pydgraph/client.py b/pydgraph/client.py index 17940b8..c01830b 100755 --- a/pydgraph/client.py +++ b/pydgraph/client.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Dgraph python client.""" diff --git a/pydgraph/client_stub.py b/pydgraph/client_stub.py index 18a2273..227e2ee 100644 --- a/pydgraph/client_stub.py +++ b/pydgraph/client_stub.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Stub for RPC request.""" diff --git a/pydgraph/convert.py b/pydgraph/convert.py index 3fdaa5e..195314d 100644 --- a/pydgraph/convert.py +++ b/pydgraph/convert.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Functions to transform data.""" diff --git a/pydgraph/errors.py b/pydgraph/errors.py index 08d1b62..a0d5cbd 100644 --- a/pydgraph/errors.py +++ b/pydgraph/errors.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Errors thrown by the Dgraph client.""" diff --git a/pydgraph/meta.py b/pydgraph/meta.py index 57a81ea..28280b0 100644 --- a/pydgraph/meta.py +++ b/pydgraph/meta.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Metadata about this package.""" diff --git a/pydgraph/proto/api.proto b/pydgraph/proto/api.proto index 90b11a0..78df31b 100644 --- a/pydgraph/proto/api.proto +++ b/pydgraph/proto/api.proto @@ -1,17 +1,6 @@ /* - * Copyright (C) 2023 Dgraph Labs, Inc. and Contributors - * - * 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. + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 */ // Style guide for Protocol Buffer 3. diff --git a/pydgraph/txn.py b/pydgraph/txn.py index 8ac2d9c..dcebcb7 100644 --- a/pydgraph/txn.py +++ b/pydgraph/txn.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Dgraph atomic transaction support.""" diff --git a/pydgraph/util.py b/pydgraph/util.py index f3c0e58..00855b1 100644 --- a/pydgraph/util.py +++ b/pydgraph/util.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Various utility functions.""" diff --git a/scripts/protogen.py b/scripts/protogen.py index 6b8a65d..7ca9cd6 100644 --- a/scripts/protogen.py +++ b/scripts/protogen.py @@ -1,16 +1,6 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 + """Runs protoc with the gRPC plugin to generate messages and gRPC stubs.""" import os diff --git a/tests/helper.py b/tests/helper.py index ca2922e..f391034 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Utilities used by tests.""" diff --git a/tests/test_acct_upsert.py b/tests/test_acct_upsert.py index 1bef233..21c0de5 100644 --- a/tests/test_acct_upsert.py +++ b/tests/test_acct_upsert.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests to verify upsert directive.""" diff --git a/tests/test_acl.py b/tests/test_acl.py index 5b833dd..7c4d7f6 100644 --- a/tests/test_acl.py +++ b/tests/test_acl.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests to verify ACL.""" import subprocess diff --git a/tests/test_async.py b/tests/test_async.py index 752f98f..71b8147 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests to verify async client methods.""" diff --git a/tests/test_client.py b/tests/test_client.py index 2f4c63d..5a2c14e 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests construction of Dgraph client.""" diff --git a/tests/test_client_stub.py b/tests/test_client_stub.py index 940160d..0c54a62 100644 --- a/tests/test_client_stub.py +++ b/tests/test_client_stub.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests client stub.""" diff --git a/tests/test_convert.py b/tests/test_convert.py index 2d9e8b0..c585cac 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests conversion functions.""" diff --git a/tests/test_essentials.py b/tests/test_essentials.py index 90d3ee4..354cb18 100644 --- a/tests/test_essentials.py +++ b/tests/test_essentials.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests mutation after query behavior.""" diff --git a/tests/test_queries.py b/tests/test_queries.py index baf259e..555074a 100755 --- a/tests/test_queries.py +++ b/tests/test_queries.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests behavior of queries after mutation in the same transaction.""" diff --git a/tests/test_txn.py b/tests/test_txn.py index 163d440..eaf8005 100644 --- a/tests/test_txn.py +++ b/tests/test_txn.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 __author__ = "Garvit Pahal" __maintainer__ = "Dgraph Labs " diff --git a/tests/test_type_system.py b/tests/test_type_system.py index 0c68b52..945e487 100644 --- a/tests/test_type_system.py +++ b/tests/test_type_system.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests to verify type system.""" __author__ = "Animesh Pathak " diff --git a/tests/test_upsert_block.py b/tests/test_upsert_block.py index eb5448d..2629462 100644 --- a/tests/test_upsert_block.py +++ b/tests/test_upsert_block.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests to verify upsert block.""" __author__ = "Animesh Pathak " diff --git a/tests/test_util.py b/tests/test_util.py index b143468..c0552de 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,16 +1,5 @@ -# Copyright 2023 Dgraph Labs, Inc. -# -# 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. +# SPDX-FileCopyrightText: © Hypermode Inc. +# SPDX-License-Identifier: Apache-2.0 """Tests utility functions."""