SPB Git

Repository Public

build_environnement.py 23.3 KB 523 lines python

1#!/usr/bin/env python32# -*- coding: utf-8 -*-3# =============================================================================4#                  SP BOUCHER | SOFTWARE & RESEARCH5#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING6# =============================================================================7#8# PROJECT METADATA9# -----------------------------------------------------------------------------10# Project          : Lou·Ka11# File             : scripts/build_environnement.py12# Description      : Construction de data/staging-environnement.db —13#                    enrichissement « environnement » des fiches Lou-Ka : îlots14#                    de chaleur (INSPQ), criminalité (SPVM), indice de gravité15#                    de la criminalité (Statistique Canada).16# Module           : scripts17# Repository       : https://git.spboucher.ai/lou-ka18# Created          : 2026-08-0819# Last Modified    : 2026-08-0820#21# =============================================================================22# AUTHOR & PROFESSIONAL AFFILIATION23# =============================================================================24#25# Author           : Simon-Pierre Boucher26# Position         : Professor of Finance27# Institution      : Université du Québec en Outaouais (UQO)28# Department       : Département des sciences administratives29# Organization     : SP Boucher30#31# Website          : https://spboucher.ai32# Git              : https://git.spboucher.ai33#34# =============================================================================35# OFFICIAL CONTACT DIRECTORY36# =============================================================================37#38# General          : info@spboucher.ai39# Professional     : contact@spboucher.ai40# Direct           : simon@spboucher.ai41# Research         : research@spboucher.ai42# Development      : dev@spboucher.ai43# Support          : support@spboucher.ai44# Security/Admin   : admin@spboucher.ai45# Notifications    : notifications@spboucher.ai46#47# Preferred Contact: contact@spboucher.ai48#49# =============================================================================50# COPYRIGHT & INTELLECTUAL PROPERTY51# =============================================================================52#53# Copyright (c) 202654# Simon-Pierre Boucher55#56# All rights reserved where applicable.57#58# This file is governed by the applicable project license,59# copyright notices, institutional agreements and relevant law.60#61# Unless expressly authorized by the applicable license or62# rights holder, copying, redistribution, sublicensing,63# publication and commercial exploitation are not permitted.64#65# Existing third-party rights and notices remain unaffected.66#67# =============================================================================68# CONFIDENTIALITY & SECURITY69# =============================================================================70#71# Classification   : Public72# Distribution     : Public repository; use is governed by the project license73# Security Contact : admin@spboucher.ai74#75# Access to this source does not independently grant permission76# to redistribute or disclose confidential materials.77#78# Do not embed credentials, private keys, access tokens,79# certificates or confidential personal information.80#81# =============================================================================82# LICENSE & MAINTENANCE83# =============================================================================84#85# License          : None specified (no license file in this repository)86# Maintainer       : Simon-Pierre Boucher87# Technical Contact: dev@spboucher.ai88#89# =============================================================================90# END OF SP BOUCHER SOURCE HEADER91# =============================================================================9293"""94Construction de data/staging-environnement.db — enrichissement « environnement »95des fiches Lou-Ka : îlots de chaleur (INSPQ), criminalité (SPVM), indice de96gravité de la criminalité (Statistique Canada).9798Tables produites (schéma contractuel — ne pas modifier) :99100  heat(coord_key TEXT PRIMARY KEY, classe INTEGER, ecart REAL)101      coord_key = "lat,lng" avec exactement 4 décimales, équivalent SQLite :102      printf('%.4f', ROUND(lat,4)) || ',' || printf('%.4f', ROUND(lng,4))103      classe : 1 à 9 (INSPQ ICFU 2020-2022). SENS VÉRIFIÉ dans les métadonnées104      du jeu Données Québec : classes 1-2-3 = îlots de FRAÎCHEUR urbains105      (1 = le plus frais), classes 8-9 = îlots de CHALEUR urbains (9 = le plus106      chaud). NULL si hors des centres de population couverts (nodata).107      ecart : écart de température relatif en °C par rapport à un boisé voisin108      (raster écoumène 2021). NULL si hors écoumène (nodata).109110  crime_mtl(id INTEGER PRIMARY KEY, lat REAL, lng REAL, ts REAL, categorie TEXT)111      Actes criminels SPVM des 24 derniers mois, coordonnées valides seulement.112      ts = epoch UTC (minuit) de la date de l'acte.113114  igc(service TEXT, annee INTEGER, indice REAL, taux REAL)115      indice = Indice de gravité de la criminalité (StatCan 35-10-0187 par116      corps de police ; 35-10-0026 pour le Canada).117      taux = taux de criminalité par 100 000 hab. (infractions au Code criminel118      sauf délits de la route, StatCan 35-10-0179 / 35-10-0177 via l'API WDS).119      5 dernières années disponibles.120121  meta(cle TEXT PRIMARY KEY, valeur TEXT) : sources, dates, attributions.122123Usage :124  .venv/bin/python scripts/build_environnement.py                 # tout reconstruire125  .venv/bin/python scripts/build_environnement.py --etapes crime  # rafraîchir la126      criminalité seulement (à relancer mensuellement)127  .venv/bin/python scripts/build_environnement.py --etapes chaleur \128      --coords nouvelles.txt   # échantillonner UNIQUEMENT une liste de nouvelles129      coordonnées (une paire "lat,lng" par ligne) et les upserter dans heat130  .venv/bin/python scripts/build_environnement.py --garder-cache  # ne pas131      supprimer les GeoTIFF téléchargés (~9,6 Go) après l'exécution132133Dépendances : rasterio, pyproj (pip install rasterio pyproj).134Licences : INSPQ/CERFO CC-BY 4.0 ; Ville de Montréal CC-BY 4.0 ;135Statistique Canada — licence ouverte.136"""137138import argparse139import calendar140import csv141import io142import json143import shutil144import sqlite3145import sys146import urllib.request147import zipfile148from datetime import date, datetime, timedelta149from pathlib import Path150151RACINE = Path(__file__).resolve().parent.parent152DB_LOUKA = RACINE / "data" / "louka.db"153DB_STAGING = RACINE / "data" / "staging-environnement.db"154CACHE_DEFAUT = Path("/tmp/louka-env")155156# --- Sources -----------------------------------------------------------------157URL_TIF_CLASSES = ("https://dq-prd-bucket1.s3.ca-central-1.amazonaws.com/inspq/"158                   "ICFU2022_CentresPopulation2021_buf2000m_9cl.tif")159URL_TIF_ECART = ("https://dq-prd-bucket1.s3.ca-central-1.amazonaws.com/inspq/"160                 "EcartTemperatureRelatif2022_Ecoumene2021.tif")161URL_CRIME_CSV = ("https://donnees.montreal.ca/dataset/"162                 "5829b5b0-ea6f-476f-be94-bc2b8797769a/resource/"163                 "c6f482bf-bf0f-4960-8b2f-9982c211addd/download/actes-criminels.csv")164URL_STATCAN_ZIP = "https://www150.statcan.gc.ca/n1/tbl/csv/{pid}-fra.zip"165URL_WDS = ("https://www150.statcan.gc.ca/t1/wds/rest/"166           "getDataFromCubePidCoordAndLatestNPeriods")167168# Le portail donnees.montreal.ca refuse les clients sans User-Agent navigateur.169UA = ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) "170      "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 Safari/537.36")171172MOIS_CRIME = 24        # fenêtre criminalité (24 derniers mois)173ANNEES_IGC = 5         # nombre d'années IGC conservées174175# Corps de police retenus.176#  - code_geo : identifiant entre crochets dans la colonne GÉO des CSV StatCan177#    35-10-0187 (indice) et 35-10-0026 (Canada).178#  - pid_taux / geo_taux : cube et memberId Géographie pour le taux de179#    criminalité via l'API WDS (35-10-0179 = services de police au Québec,180#    35-10-0177 = Canada/provinces/RMR). Coordonnée = geo.infraction.stat.0*7181#    avec infraction 3 = « Total des infractions au Code criminel (sauf les182#    délits de la route) » et statistique 2 = « Taux pour 100 000 habitants ».183SERVICES = [184    # (nom_affiché, code_geo, pid_indice, pid_taux, geo_taux)185    ("SPVQ (Ville de Québec)",     "24215", 35100187, 35100179, 107),186    ("Ville de Lévis",             "24219", 35100187, 35100179, 109),187    ("SPVM (Montréal)",            "24175", 35100187, 35100179, 82),188    ("Laval",                      "24141", 35100187, 35100179, 59),189    ("Longueuil (agglomération)",  "24231", 35100187, 35100179, 115),190    ("Québec (province)",          "24",    35100187, 35100179, 1),191    ("Canada",                     "CAN",   35100026, 35100177, 1),192]193194195# --- Utilitaires ---------------------------------------------------------------196def telecharger(url: str, dest: Path, description: str) -> None:197    """Télécharge url vers dest (flux, pas de chargement en mémoire)."""198    if dest.exists() and dest.stat().st_size > 0:199        print(f"  [cache] {description} déjà présent : {dest}")200        return201    print(f"  téléchargement {description} …")202    req = urllib.request.Request(url, headers={"User-Agent": UA})203    tmp = dest.with_suffix(dest.suffix + ".part")204    with urllib.request.urlopen(req, timeout=120) as rep, open(tmp, "wb") as f:205        shutil.copyfileobj(rep, f, length=1 << 20)206    tmp.rename(dest)207    print(f"  ok ({dest.stat().st_size / 1e6:.1f} Mo)")208209210def coord_key(lat: float, lng: float) -> str:211    """Clé "lat,lng" à 4 décimales — identique à212    printf('%.4f',ROUND(lat,4))||','||printf('%.4f',ROUND(lng,4)) en SQLite."""213    return f"{lat:.4f},{lng:.4f}"214215216def ouvrir_staging() -> sqlite3.Connection:217    DB_STAGING.parent.mkdir(parents=True, exist_ok=True)218    conn = sqlite3.connect(DB_STAGING)219    conn.executescript("""220        CREATE TABLE IF NOT EXISTS heat(221            coord_key TEXT PRIMARY KEY, classe INTEGER, ecart REAL);222        CREATE TABLE IF NOT EXISTS crime_mtl(223            id INTEGER PRIMARY KEY, lat REAL, lng REAL, ts REAL, categorie TEXT);224        CREATE INDEX IF NOT EXISTS idx_crime_lat ON crime_mtl(lat);225        CREATE TABLE IF NOT EXISTS igc(226            service TEXT, annee INTEGER, indice REAL, taux REAL);227        CREATE TABLE IF NOT EXISTS meta(cle TEXT PRIMARY KEY, valeur TEXT);228    """)229    return conn230231232def poser_meta(conn: sqlite3.Connection, cle: str, valeur: str) -> None:233    conn.execute("INSERT OR REPLACE INTO meta(cle, valeur) VALUES(?,?)",234                 (cle, valeur))235236237# --- Étape 1 : îlots de chaleur -------------------------------------------------238def coords_depuis_louka() -> list[tuple[float, float]]:239    """Coordonnées uniques (arrondies à 4 décimales par SQLite) des immeubles actifs."""240    conn = sqlite3.connect(f"file:{DB_LOUKA}?mode=ro", uri=True)241    lignes = conn.execute(242        "SELECT DISTINCT ROUND(lat,4), ROUND(lng,4) FROM listings "243        "WHERE active=1 AND lat IS NOT NULL AND lng IS NOT NULL").fetchall()244    conn.close()245    return [(la, lo) for la, lo in lignes]246247248def coords_depuis_fichier(chemin: Path) -> list[tuple[float, float]]:249    """Fichier texte : une paire « lat,lng » par ligne (les valeurs sont250    ré-arrondies à 4 décimales)."""251    paires = []252    for ligne in chemin.read_text().splitlines():253        ligne = ligne.strip()254        if not ligne or ligne.startswith("#"):255            continue256        la, lo = ligne.split(",")257        paires.append((round(float(la), 4), round(float(lo), 4)))258    return paires259260261def echantillonner_raster(chemin_tif: Path, coords: list[tuple[float, float]]):262    """Échantillonne un GeoTIFF aux points (lat,lng) WGS84, par fenêtres263    (rasterio.sample), sans jamais charger le raster entier. On reprojette les264    POINTS vers le CRS du raster (EPSG:32198 Québec Lambert pour les deux265    rasters INSPQ), jamais le raster. Renvoie une liste de valeurs (None si266    nodata ou hors emprise)."""267    import math268269    import rasterio270    from pyproj import Transformer271272    with rasterio.open(chemin_tif) as ds:273        transfo = Transformer.from_crs("EPSG:4326", ds.crs, always_xy=True)274        xy = [transfo.transform(lo, la) for la, lo in coords]275        valeurs = []276        for echantillon in ds.sample(xy, indexes=1, masked=True):277            v = echantillon[0]278            if v is None or getattr(v, "mask", False) or math.isnan(float(v)) \279                    or (ds.nodata is not None and float(v) == float(ds.nodata)):280                valeurs.append(None)281            else:282                valeurs.append(float(v))283    return valeurs284285286def etape_chaleur(conn: sqlite3.Connection, cache: Path,287                  coords: list[tuple[float, float]] | None) -> None:288    print("== Étape chaleur (INSPQ ICFU 2020-2022) ==")289    if coords is None:290        coords = coords_depuis_louka()291    print(f"  {len(coords)} coordonnées à échantillonner")292    if not coords:293        return294295    tif_classes = cache / "ICFU2022_CentresPopulation2021_buf2000m_9cl.tif"296    tif_ecart = cache / "EcartTemperatureRelatif2022_Ecoumene2021.tif"297    telecharger(URL_TIF_CLASSES, tif_classes, "raster classes ICFU (≈34 Mo)")298    telecharger(URL_TIF_ECART, tif_ecart, "raster écarts de température (≈9,6 Go)")299300    print("  échantillonnage classes (9 niveaux) …")301    classes = echantillonner_raster(tif_classes, coords)302    print("  échantillonnage écarts de température …")303    ecarts = echantillonner_raster(tif_ecart, coords)304305    lignes = []306    for (la, lo), cl, ec in zip(coords, classes, ecarts):307        lignes.append((coord_key(la, lo),308                       int(cl) if cl is not None else None,309                       round(ec, 2) if ec is not None else None))310    conn.executemany(311        "INSERT OR REPLACE INTO heat(coord_key, classe, ecart) VALUES(?,?,?)",312        lignes)313314    poser_meta(conn, "heat.source",315               "INSPQ/CERFO — Îlots de chaleur/fraîcheur urbains et écarts de "316               "température relatifs 2020-2022 (Données Québec)")317    poser_meta(conn, "heat.url_classes", URL_TIF_CLASSES)318    poser_meta(conn, "heat.url_ecart", URL_TIF_ECART)319    poser_meta(conn, "heat.licence", "CC-BY 4.0 — attribution : INSPQ et CERFO")320    poser_meta(conn, "heat.sens_classes",321               "Vérifié dans les métadonnées Données Québec : classes 1-2-3 = "322               "îlots de fraîcheur urbains (1 = le plus frais), classes 8-9 = "323               "îlots de chaleur urbains (9 = le plus chaud). Classement des "324               "écarts de température par centre de population (2021), "325               "buffer 2 km, résolution 15 m, EPSG:32198.")326    poser_meta(conn, "heat.ecart_unite",327               "°C, écart relatif à un boisé de proximité (écoumène 2021) ; "328               "NULL = hors écoumène / hors centres de population (nodata)")329    poser_meta(conn, "heat.coord_key",330               "printf('%.4f',ROUND(lat,4))||','||printf('%.4f',ROUND(lng,4))")331    poser_meta(conn, "heat.telecharge_le", datetime.now().isoformat(timespec="seconds"))332    conn.commit()333    total, avec_classe = conn.execute(334        "SELECT COUNT(*), COUNT(classe) FROM heat").fetchone()335    print(f"  heat : {total} lignes ({avec_classe} avec classe)")336337338# --- Étape 2 : criminalité SPVM --------------------------------------------------339def etape_crime(conn: sqlite3.Connection, cache: Path) -> None:340    print("== Étape criminalité (actes criminels SPVM) ==")341    fichier = cache / "actes-criminels.csv"342    # Toujours rafraîchir : le jeu est mis à jour quotidiennement.343    if fichier.exists():344        fichier.unlink()345    telecharger(URL_CRIME_CSV, fichier, "CSV actes criminels (≈30 Mo)")346347    seuil = date.today() - timedelta(days=MOIS_CRIME * 365 // 12)348    lignes = []349    ecartees = 0350    with open(fichier, encoding="utf-8-sig", newline="") as f:351        for rang in csv.DictReader(f):352            try:353                d = datetime.strptime(rang["DATE"].strip(), "%Y-%m-%d").date()354                la = float(rang["LATITUDE"])355                lo = float(rang["LONGITUDE"])356            except (ValueError, KeyError, TypeError):357                ecartees += 1358                continue359            if d < seuil:360                continue361            # bornes de validité : île de Montréal et environs362            if not (44.5 <= la <= 46.5 and -75.0 <= lo <= -72.5):363                ecartees += 1364                continue365            ts = float(calendar.timegm(d.timetuple()))  # epoch UTC (minuit)366            lignes.append((la, lo, ts, rang["CATEGORIE"].strip()))367368    conn.execute("DELETE FROM crime_mtl")369    conn.executemany(370        "INSERT INTO crime_mtl(lat, lng, ts, categorie) VALUES(?,?,?,?)", lignes)371    poser_meta(conn, "crime.source",372               "Ville de Montréal (SPVM) — Actes criminels, "373               "https://donnees.montreal.ca/dataset/actes-criminels")374    poser_meta(conn, "crime.licence", "CC-BY 4.0 — attribution : Ville de Montréal")375    poser_meta(conn, "crime.fenetre", f"{MOIS_CRIME} derniers mois (depuis {seuil})")376    poser_meta(conn, "crime.telecharge_le", datetime.now().isoformat(timespec="seconds"))377    conn.commit()378    n = conn.execute("SELECT COUNT(*) FROM crime_mtl").fetchone()[0]379    print(f"  crime_mtl : {n} actes conservés (fenêtre ≥ {seuil}), "380          f"{ecartees} lignes écartées (coordonnées/date invalides)")381382383# --- Étape 3 : indice de gravité de la criminalité (StatCan) ---------------------384def lire_igc_csv(cache: Path, pid: int) -> dict[tuple[str, int], float]:385    """Extrait {(code_geo, annee): IGC} du CSV complet d'un tableau StatCan."""386    zip_path = cache / f"statcan_{pid}.zip"387    telecharger(URL_STATCAN_ZIP.format(pid=pid), zip_path, f"tableau StatCan {pid}")388    valeurs: dict[tuple[str, int], float] = {}389    with zipfile.ZipFile(zip_path) as z, \390            io.TextIOWrapper(z.open(f"{pid}.csv"), encoding="utf-8-sig") as f:391        for rang in csv.DictReader(f, delimiter=";"):392            if rang["Statistiques"] != "Indice de gravité de la criminalité":393                continue394            if not rang["VALEUR"]:395                continue396            geo = rang["GÉO"]397            code = geo.rsplit("[", 1)[-1].rstrip("]") if "[" in geo else \398                ("CAN" if geo == "Canada" else geo)399            valeurs[(code, int(rang["PÉRIODE DE RÉFÉRENCE"]))] = float(rang["VALEUR"])400    return valeurs401402403def taux_via_wds(requetes: list[tuple[int, int]]) -> dict[tuple[int, int], dict[int, float]]:404    """Taux de criminalité (Code criminel sauf délits de la route, /100 000 hab.)405    via l'API WDS. requetes = [(pid, geo_member)] ; renvoie406    {(pid, geo): {annee: taux}}."""407    charge = [{"productId": pid,408               "coordinate": f"{geo}.3.2.0.0.0.0.0.0.0",409               "latestN": ANNEES_IGC}410              for pid, geo in requetes]411    req = urllib.request.Request(412        URL_WDS, data=json.dumps(charge).encode(),413        headers={"Content-Type": "application/json", "User-Agent": UA})414    with urllib.request.urlopen(req, timeout=120) as rep:415        reponses = json.load(rep)416    resultat: dict[tuple[int, int], dict[int, float]] = {}417    for rep_item in reponses:418        if rep_item.get("status") != "SUCCESS":419            continue420        obj = rep_item["object"]421        geo = int(obj["coordinate"].split(".")[0])422        serie = {}423        for pt in obj["vectorDataPoint"]:424            if pt.get("value") is None:425                continue426            serie[int(pt["refPer"][:4])] = float(pt["value"])427        resultat[(obj["productId"], geo)] = serie428    return resultat429430431def etape_igc(conn: sqlite3.Connection, cache: Path) -> None:432    print("== Étape IGC (StatCan 35-10-0187 / 35-10-0026 + taux WDS) ==")433    igc_187 = lire_igc_csv(cache, 35100187)434    igc_026 = lire_igc_csv(cache, 35100026)435    indices = {**igc_026, **igc_187}436437    annees = sorted({a for (_, a) in igc_187})[-ANNEES_IGC:]438    print(f"  années retenues : {annees}")439440    try:441        taux = taux_via_wds(sorted({(s[3], s[4]) for s in SERVICES}))442    except Exception as exc:  # le taux est optionnel (NULL si indisponible)443        print(f"  avertissement : taux WDS indisponible ({exc}) — taux=NULL")444        taux = {}445446    conn.execute("DELETE FROM igc")447    for nom, code_geo, _pid_ind, pid_taux, geo_taux in SERVICES:448        for annee in annees:449            indice = indices.get((code_geo, annee))450            t = taux.get((pid_taux, geo_taux), {}).get(annee)451            conn.execute("INSERT INTO igc(service, annee, indice, taux) "452                         "VALUES(?,?,?,?)", (nom, annee, indice, t))453454    poser_meta(conn, "igc.source",455               "Statistique Canada, tableaux 35-10-0187 (IGC par service de "456               "police), 35-10-0026 (IGC Canada/provinces), 35-10-0179 et "457               "35-10-0177 (taux de criminalité — Code criminel sauf délits "458               "de la route, par 100 000 hab., via l'API WDS)")459    poser_meta(conn, "igc.licence",460               "Licence ouverte de Statistique Canada — adapté de Statistique "461               "Canada ; cela ne constitue pas une approbation par Statistique "462               "Canada de ce produit")463    poser_meta(conn, "igc.telecharge_le", datetime.now().isoformat(timespec="seconds"))464    conn.commit()465    n = conn.execute("SELECT COUNT(*) FROM igc").fetchone()[0]466    print(f"  igc : {n} lignes")467468469# --- Point d'entrée ---------------------------------------------------------------470def principal() -> int:471    ap = argparse.ArgumentParser(472        description="Construit data/staging-environnement.db (chaleur, "473                    "criminalité, IGC).")474    ap.add_argument("--etapes", default="chaleur,crime,igc",475                    help="étapes à exécuter, séparées par des virgules "476                         "(chaleur, crime, igc) — défaut : toutes")477    ap.add_argument("--coords", type=Path, default=None,478                    help="fichier de nouvelles coordonnées (« lat,lng » par "479                         "ligne) à échantillonner et upserter dans heat, au "480                         "lieu de relire louka.db")481    ap.add_argument("--cache", type=Path, default=CACHE_DEFAUT,482                    help=f"répertoire de cache des téléchargements "483                         f"(défaut : {CACHE_DEFAUT})")484    ap.add_argument("--garder-cache", action="store_true",485                    help="ne pas supprimer les GeoTIFF (~9,6 Go) à la fin")486    args = ap.parse_args()487488    etapes = {e.strip() for e in args.etapes.split(",")}489    inconnues = etapes - {"chaleur", "crime", "igc"}490    if inconnues:491        ap.error(f"étapes inconnues : {inconnues}")492493    args.cache.mkdir(parents=True, exist_ok=True)494    conn = ouvrir_staging()495    poser_meta(conn, "generation.script", "scripts/build_environnement.py")496    poser_meta(conn, "generation.date", datetime.now().isoformat(timespec="seconds"))497    poser_meta(conn, "attributions",498               "Îlots de chaleur : INSPQ et CERFO (CC-BY 4.0) ; Actes "499               "criminels : Ville de Montréal (CC-BY 4.0) ; IGC et taux de "500               "criminalité : Statistique Canada (licence ouverte)")501502    coords = coords_depuis_fichier(args.coords) if args.coords else None503    if "chaleur" in etapes:504        etape_chaleur(conn, args.cache, coords)505    if "crime" in etapes:506        etape_crime(conn, args.cache)507    if "igc" in etapes:508        etape_igc(conn, args.cache)509    conn.commit()510    conn.close()511512    if not args.garder_cache:513        for tif in args.cache.glob("*.tif"):514            print(f"  nettoyage : suppression {tif}")515            tif.unlink()516517    print("Terminé :", DB_STAGING)518    return 0519520521if __name__ == "__main__":522    sys.exit(principal())523
Files main
Menu

Theme