Repository Public
1# =============================================================================2# SP BOUCHER | SOFTWARE & RESEARCH3# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4# =============================================================================5#6# PROJECT METADATA7# -----------------------------------------------------------------------------8# Project : Valo-Plex9# File : moteur/plexmoteur/__main__.py10# Description : Ligne de commande du moteur : ./moteur/vx <commande>.11# Module : moteur12# Repository : https://git.spboucher.ai/valo-plex13# Project Website : https://www.valo-plex.com14# Created : 2026-12-0115# Last Modified : 2026-12-0316#17# =============================================================================18# AUTHOR & PROFESSIONAL AFFILIATION19# =============================================================================20#21# Author : Simon-Pierre Boucher22# Position : Professor of Finance23# Institution : Université du Québec en Outaouais (UQO)24# Department : Département des sciences administratives25# Organization : SP Boucher26#27# Website : https://spboucher.ai28# Git : https://git.spboucher.ai29#30# =============================================================================31# OFFICIAL CONTACT DIRECTORY32# =============================================================================33#34# General : info@spboucher.ai35# Professional : contact@spboucher.ai36# Direct : simon@spboucher.ai37# Research : research@spboucher.ai38# Development : dev@spboucher.ai39# Support : support@spboucher.ai40# Security/Admin : admin@spboucher.ai41# Notifications : notifications@spboucher.ai42#43# Preferred Contact: contact@spboucher.ai44#45# =============================================================================46# COPYRIGHT & INTELLECTUAL PROPERTY47# =============================================================================48#49# Copyright (c) 202650# Simon-Pierre Boucher51#52# All rights reserved where applicable.53#54# This file is governed by the applicable project license,55# copyright notices, institutional agreements and relevant law.56#57# Unless expressly authorized by the applicable license or58# rights holder, copying, redistribution, sublicensing,59# publication and commercial exploitation are not permitted.60#61# Existing third-party rights and notices remain unaffected.62#63# =============================================================================64# CONFIDENTIALITY & SECURITY65# =============================================================================66#67# Classification : Public68# Distribution : Public repository; use is governed by the project license69# Security Contact : admin@spboucher.ai70#71# Access to this source does not independently grant permission72# to redistribute or disclose confidential materials.73#74# Do not embed credentials, private keys, access tokens,75# certificates or confidential personal information.76#77# =============================================================================78# LICENSE & MAINTENANCE79# =============================================================================80#81# License : None specified (no license file in this repository)82# Maintainer : Simon-Pierre Boucher83# Technical Contact: dev@spboucher.ai84#85# =============================================================================86# END OF SP BOUCHER SOURCE HEADER87# =============================================================================8889"""Ligne de commande du moteur : ./moteur/vx <commande>."""90from __future__ import annotations9192import sys939495def main(argv: list[str]) -> int:96 cmd = argv[0] if argv else "aide"97 reste = argv[1:]98 if cmd == "socle":99 from . import socle100 socle.construire(loyers="--sans-loyers" not in reste)101 elif cmd == "loyers":102 from . import loyers103 loyers.entrainer(verbose=True)104 elif cmd in ("entrainer", "essai"):105 from . import modele, typologie106 marches = [m for m in typologie.MARCHES if m in reste] or list(typologie.marches_actifs())107 for marche in marches:108 if cmd == "essai":109 modele.entrainer(verbose=True, n_plis=12, ecrire=False, marche=marche)110 else:111 modele.entrainer(verbose=True, marche=marche)112 elif cmd == "estimer":113 from . import estimer114 estimer.estimer(verbose=True)115 elif cmd == "passe":116 from . import passe117 return passe.passe(verbose=True, forcer="--forcer" in reste)118 else:119 print("commandes : socle [--sans-loyers] | loyers | entrainer [residentiel|commercial] | essai [marché] | "120 "estimer | passe [--forcer]")121 return 0 if cmd == "aide" else 2122 return 0123124125if __name__ == "__main__":126 sys.exit(main(sys.argv[1:]))127