diff --git a/anonstream/config.py b/anonstream/config.py index 15ed3b0..0fdced9 100644 --- a/anonstream/config.py +++ b/anonstream/config.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import os import secrets diff --git a/anonstream/control/exceptions.py b/anonstream/control/exceptions.py index f1fdba5..a3676b7 100644 --- a/anonstream/control/exceptions.py +++ b/anonstream/control/exceptions.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + class ControlSocketExit(Exception): pass diff --git a/anonstream/control/parse.py b/anonstream/control/parse.py index 7924b62..f456b3d 100644 --- a/anonstream/control/parse.py +++ b/anonstream/control/parse.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + from anonstream.control.spec import ParseException, Parsed from anonstream.control.spec.common import Str from anonstream.control.spec.methods.chat import SPEC as SPEC_CHAT diff --git a/anonstream/control/server.py b/anonstream/control/server.py index caca535..181cf41 100644 --- a/anonstream/control/server.py +++ b/anonstream/control/server.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import asyncio from anonstream.control.exceptions import ControlSocketExit, CommandFailed diff --git a/anonstream/control/spec/__init__.py b/anonstream/control/spec/__init__.py index aa23898..4a6615c 100644 --- a/anonstream/control/spec/__init__.py +++ b/anonstream/control/spec/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + class ParseException(Exception): pass diff --git a/anonstream/control/spec/common.py b/anonstream/control/spec/common.py index 0ecd92f..7091dc0 100644 --- a/anonstream/control/spec/common.py +++ b/anonstream/control/spec/common.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import json from anonstream.control.spec import Spec, NoParse, Ambiguous, Parsed diff --git a/anonstream/control/spec/methods/chat.py b/anonstream/control/spec/methods/chat.py index a565602..a77f822 100644 --- a/anonstream/control/spec/methods/chat.py +++ b/anonstream/control/spec/methods/chat.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import itertools from anonstream.chat import delete_chat_messages diff --git a/anonstream/control/spec/methods/exit.py b/anonstream/control/spec/methods/exit.py index a409d17..30d4236 100644 --- a/anonstream/control/spec/methods/exit.py +++ b/anonstream/control/spec/methods/exit.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + from anonstream.control.spec.common import Str, End from anonstream.control.exceptions import ControlSocketExit diff --git a/anonstream/control/spec/methods/help.py b/anonstream/control/spec/methods/help.py index 25f6367..03a118f 100644 --- a/anonstream/control/spec/methods/help.py +++ b/anonstream/control/spec/methods/help.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + from anonstream.control.spec.common import Str, End async def cmd_help(): diff --git a/anonstream/control/spec/methods/title.py b/anonstream/control/spec/methods/title.py index f5d22bf..d099ee9 100644 --- a/anonstream/control/spec/methods/title.py +++ b/anonstream/control/spec/methods/title.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import json from anonstream.control.exceptions import CommandFailed diff --git a/anonstream/control/spec/methods/user.py b/anonstream/control/spec/methods/user.py index e7f70df..dc09359 100644 --- a/anonstream/control/spec/methods/user.py +++ b/anonstream/control/spec/methods/user.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import json from quart import current_app diff --git a/anonstream/control/spec/utils.py b/anonstream/control/spec/utils.py index 6d9468a..8ecc994 100644 --- a/anonstream/control/spec/utils.py +++ b/anonstream/control/spec/utils.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import json def get_item(index, words): diff --git a/anonstream/events.py b/anonstream/events.py index df24326..eb19fd6 100644 --- a/anonstream/events.py +++ b/anonstream/events.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 n9k +# SPDX-License-Identifier: AGPL-3.0-or-later + import asyncio import json diff --git a/anonstream/quart.py b/anonstream/quart.py index dfd5e16..c00fe86 100644 --- a/anonstream/quart.py +++ b/anonstream/quart.py @@ -1,3 +1,9 @@ +# This file is pretty much entirely based on a snippet from asgi.py in +# the Quart repository (MIT, see README.md). That means it takes on the +# MIT licence I guess(???) If not then it's the same as every other file +# by me: 2022 n9k , AGPL 3.0 or any later +# version. + import asyncio from werkzeug.wrappers import Response as WerkzeugResponse