Skip to content

Commit

Permalink
included license header in source files
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoexe committed Sep 28, 2024
1 parent 1fb1c31 commit 1784239
Show file tree
Hide file tree
Showing 35 changed files with 672 additions and 50 deletions.
2 changes: 1 addition & 1 deletion sostituzioni/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

__author__ = "Niccolò Ragazzi"
__copyright__ = "Copyright 2023-present Niccolò Ragazzi"
__copyright__ = "Copyright 2023-present Niccolò Ragazzi <[email protected]>"
__credits__ = ["Niccolò Ragazzi", "Chiara Gandolfi"]
__license__ = " GNU Affero General Public License v3"
__version__ = "1.0.0"
Expand Down
19 changes: 18 additions & 1 deletion sostituzioni/__main__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
"""
durante la fase di sviluppo eseguire questo file tramite python -m sostituzioni
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from sostituzioni.app import app
from sostituzioni.view import socketio


# Per utilizzare il server di test / debug, eseguire questo file tramite `python -m sostituzioni`
if __name__ == "__main__":
socketio.run(app, use_reloader=True, log_output=False, debug=True)
20 changes: 20 additions & 0 deletions sostituzioni/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

try:
from sostituzioni.view import app

Expand Down
21 changes: 20 additions & 1 deletion sostituzioni/control/backup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from datetime import datetime
from googleapiclient.http import MediaFileUpload
from google.oauth2 import service_account
Expand Down Expand Up @@ -26,7 +46,6 @@ def backup():
logger.debug("Deleting old backups from local storage..")
delete_old_local_backups(local_backup_list)


# upload to Google Drive
drive_service = service_account_login()

Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/control/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from flask.cli import AppGroup
import click
import sqlite3
Expand Down
18 changes: 17 additions & 1 deletion sostituzioni/control/configurazione.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
"""
Gestione della configurazione del sistema tramite il file configurazione.json
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

import os
Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/control/cron.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from datetime import datetime
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
Expand Down
18 changes: 17 additions & 1 deletion sostituzioni/control/database.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
"""
database controller
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from beartype import beartype
Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/control/exporter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

import pandas as pd
import io
from datetime import datetime
Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/control/importer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from pathlib import Path
from io import BytesIO
import pandas as pd
Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/control/logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

import logging

logging.basicConfig(
Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/lib/searchablelist.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from beartype import beartype
from beartype.typing import List, Tuple, Any

Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/model/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from secrets import token_hex
from flask import Flask

Expand Down
20 changes: 20 additions & 0 deletions sostituzioni/model/auth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
"""
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from functools import wraps
from oauthlib import oauth2
import logging
Expand Down
18 changes: 17 additions & 1 deletion sostituzioni/model/model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
"""
descr
This file is part of ScuolaSync.
Copyright (C) 2023-present Niccolò Ragazzi <[email protected]>
ScuolaSync 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 ScuolaSync. If not, you can find a copy at
<https://www.gnu.org/licenses/agpl-3.0.html>.
"""

from beartype._decor.decormain import beartype
Expand Down
Loading

0 comments on commit 1784239

Please sign in to comment.