-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
included license header in source files
- Loading branch information
Showing
35 changed files
with
672 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.