maintenance: cleanup .py file headers + automate boring copyright headers...

This commit is contained in:
Alexandre Aubin 2022-10-09 18:38:34 +02:00
parent f03b992c6a
commit bd7081baf2
47 changed files with 802 additions and 579 deletions

View file

@ -1,5 +1,4 @@
#! /usr/bin/python3 #! /usr/bin/python3
# -*- coding: utf-8 -*-
import os import os
import sys import sys

View file

@ -1,5 +1,4 @@
#! /usr/bin/python3 #! /usr/bin/python3
# -*- coding: utf-8 -*-
import argparse import argparse
import yunohost import yunohost

16
maintenance/agplv3.tpl Normal file
View file

@ -0,0 +1,16 @@
Copyright (c) ${years} ${owner}
This file is part of ${projectname} (see ${projecturl})
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

View file

@ -0,0 +1,12 @@
# To run this you'll need to:
#
# pip3 install licenseheaders
licenseheaders \
-o "YunoHost Contributors" \
-n "YunoHost" \
-u "https://yunohost.org" \
-t ./agplv3.tpl \
--current-year \
-f ../src/*.py ../src/{utils,diagnosers,authenticators}/*.py

View file

@ -1,5 +1,22 @@
#! /usr/bin/python #! /usr/bin/python
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import sys import sys

View file

@ -1,28 +1,22 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
""" License
Copyright (C) 2013 YunoHost
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses
"""
""" yunohost_app.py
Manage apps
"""
import glob import glob
import os import os
import toml import toml

View file

@ -1,3 +1,21 @@
#
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import re import re

View file

@ -1,5 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import logging import logging
import ldap import ldap

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_backup.py
Manage backups
"""
import os import os
import re import re
import json import json

View file

@ -1,27 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2016 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
yunohost_certificate.py
Manage certificates, in particular Let's encrypt
"""
import os import os
import sys import sys
import shutil import shutil

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import json import json
import subprocess import subprocess

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import re import re
import os import os
import random import random

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import re import re
from typing import List from typing import List

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
from typing import List from typing import List

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import random import random
import requests import requests

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import dns.resolver import dns.resolver
import re import re

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
from typing import List from typing import List

View file

@ -1,4 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import psutil import psutil
import datetime import datetime

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import re import re
from typing import List from typing import List

View file

@ -1,5 +1,21 @@
#!/usr/bin/env python #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
from typing import List from typing import List

View file

@ -0,0 +1,18 @@
#
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

View file

@ -1,29 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" diagnosis.py
Look for possible issues on the server
"""
import re import re
import os import os
import time import time

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_domain.py
Manage domains
"""
import os import os
import re import re
import time import time

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_domain.py
Manage domains
"""
import os import os
import time import time
from typing import List, Optional from typing import List, Optional

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_dyndns.py
Subscribe and Update DynDNS Hosts
"""
import os import os
import re import re
import json import json

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_firewall.py
Manage firewall rules
"""
import os import os
import yaml import yaml
import miniupnpc import miniupnpc

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_hook.py
Manage hooks
"""
import os import os
import re import re
import sys import sys

View file

@ -1,29 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_log.py
Manage debug logs
"""
import os import os
import re import re
import yaml import yaml

View file

@ -1,29 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2014 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_permission.py
Manage permissions
"""
import re import re
import copy import copy
import grp import grp

View file

@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2019 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import os import os
import yaml import yaml
import shutil import shutil

View file

@ -1,29 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_service.py
Manage services
"""
import re import re
import os import os
import time import time

View file

@ -1,3 +1,21 @@
#
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import subprocess import subprocess

View file

@ -1,4 +1,21 @@
# encoding: utf-8 #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import re import re
import os import os

View file

@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2013 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import re import re
import os import os
import subprocess import subprocess

View file

@ -1,28 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2014 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
""" yunohost_user.py
Manage users
"""
import os import os
import re import re
import pwd import pwd

View file

@ -0,0 +1,18 @@
#
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

View file

@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import glob import glob
import os import os
import re import re

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import dns.resolver import dns.resolver
from typing import List from typing import List

View file

@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
from moulinette.core import MoulinetteError, MoulinetteAuthenticationError from moulinette.core import MoulinetteError, MoulinetteAuthenticationError
from moulinette import m18n from moulinette import m18n

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
from moulinette import m18n from moulinette import m18n

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
""" License # Copyright (c) 2022 YunoHost Contributors
#
Copyright (C) 2019 YunoHost # This file is part of YunoHost (see https://yunohost.org)
#
This program is free software; you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published # it under the terms of the GNU Affero General Public License as
by the Free Software Foundation, either version 3 of the License, or # published by the Free Software Foundation, either version 3 of the
(at your option) any later version. # License, or (at your option) any later version.
#
This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details. # GNU Affero General Public License for more details.
#
You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses # along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
import os import os
import atexit import atexit
import logging import logging

View file

@ -1,3 +1,21 @@
#
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os import os
import re import re
import glob import glob

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2017 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import os import os
import re import re
import logging import logging

View file

@ -1,24 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2018 YunoHost #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import sys import sys
import os import os
import string import string

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2021 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import os import os
import copy import copy
import shutil import shutil

View file

@ -1,23 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
""" License #
# This file is part of YunoHost (see https://yunohost.org)
Copyright (C) 2015 YUNOHOST.ORG #
# This program is free software: you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as
it under the terms of the GNU Affero General Public License as published # published by the Free Software Foundation, either version 3 of the
by the Free Software Foundation, either version 3 of the License, or # License, or (at your option) any later version.
(at your option) any later version. #
# This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details.
GNU Affero General Public License for more details. #
# You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program; if not, see http://www.gnu.org/licenses #
"""
import re import re
import os import os
import logging import logging

View file

@ -1,5 +1,21 @@
# -*- coding: utf-8 -*- #
# Copyright (c) 2022 YunoHost Contributors
#
# This file is part of YunoHost (see https://yunohost.org)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import requests import requests
import json import json
import logging import logging