[UPD] script: format script and add licence technolibre

This commit is contained in:
Mathieu Benoit 2024-08-26 14:55:36 -04:00
parent 818856db9a
commit 5b103eb457
44 changed files with 169 additions and 50 deletions

View file

@ -1,4 +1,6 @@
#!./.venv/bin/python #!/usr/bin/env python
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import psycopg2 import psycopg2
import sys import sys

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import configparser import configparser
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import configparser import configparser
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import astor import astor

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import os import os
import subprocess import subprocess

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import uuid import uuid
import subprocess import subprocess

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import csv import csv
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import subprocess import subprocess

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import configparser import configparser
import getpass import getpass

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from collections import defaultdict from collections import defaultdict
import pymysql import pymysql

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import requests import requests
r = requests.get(r"https://api.ipify.org") r = requests.get(r"https://api.ipify.org")

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,6 +1,6 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2020 TechnoLibre (http://www.technolibre.ca) # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import copy import copy
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,6 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2020 TechnoLibre (http://www.technolibre.ca) # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import os import os
import webbrowser import webbrowser
from collections import OrderedDict from collections import OrderedDict

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,6 +1,6 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021 TechnoLibre (http://www.technolibre.ca) # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import logging import logging
import os import os

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import csv import csv
import logging import logging

View file

@ -1,5 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import asyncio import asyncio
from collections import deque from collections import deque

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import json import json
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import ast import ast
import logging import logging

View file

@ -1,5 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import json import json
import requests import requests

View file

@ -1,4 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import sys import sys
import argparse import argparse
import web_login import web_login

View file

@ -1,4 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from randomwordfr import RandomWordFr from randomwordfr import RandomWordFr
import re import re
import os import os

View file

@ -1,5 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import os import os
import sys import sys

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import datetime import datetime
import logging import logging

View file

@ -1,4 +1,7 @@
#!./.venv/bin/python #!/usr/bin/env python3
# © 2021-2024 TechnoLibre (http://www.technolibre.ca)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import argparse import argparse
import asyncio import asyncio
import configparser import configparser